Skip to content

Commit

Permalink
avoid future breaking change in psycopg ConnectionPool (#299)
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentsarago authored Sep 5, 2024
1 parent 5b9580e commit 858a984
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,20 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## Unreleased
## [Unreleased]

### Added

- Add limited support for free-text search in the search functions. (Fixes #293)
- the `q` parameter is converted from the
[OGC API - Features syntax](https://docs.ogc.org/DRAFTS/24-031.html) into a `tsquery`
statement which is used to compare to the description, title, and keywords fields in items or collection_search
- the text search is un-indexed and will be very slow for item-level searches!

### Fixed

- Add `open=True` in `psycopg.ConnectionPool` to avoid future behavior change

## [v0.9.1]

### Fixed
Expand Down Expand Up @@ -516,6 +522,8 @@ _TODO_

- Fixed issue with pypgstac loads which caused some writes to fail ([#18](https://github.com/stac-utils/pgstac/pull/18))

[Unreleased]: https://github.com/stac-utils/pgstac/compare/v0.9.1...main
[v0.9.1]: https://github.com/stac-utils/pgstac/compare/v0.9.0...v0.9.1
[v0.9.0]: https://github.com/stac-utils/pgstac/compare/v0.8.5...v0.9.0
[v0.8.5]: https://github.com/stac-utils/pgstac/compare/v0.8.4...v0.8.5
[v0.8.4]: https://github.com/stac-utils/pgstac/compare/v0.8.3...v0.8.4
Expand Down
1 change: 1 addition & 0 deletions src/pypgstac/python/pypgstac/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ def get_pool(self) -> ConnectionPool:
max_waiting=settings.db_max_queries,
max_idle=settings.db_max_idle,
num_workers=settings.db_num_workers,
open=True,
)
return self.pool

Expand Down

0 comments on commit 858a984

Please sign in to comment.