Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avoid future breaking change in psycopg ConnectionPool #299

Merged
merged 1 commit into from
Sep 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading