Skip to content

Commit 858a984

Browse files
avoid future breaking change in psycopg ConnectionPool (#299)
1 parent 5b9580e commit 858a984

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,20 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8-
## Unreleased
8+
## [Unreleased]
9+
10+
### Added
911

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

18+
### Fixed
19+
20+
- Add `open=True` in `psycopg.ConnectionPool` to avoid future behavior change
21+
1622
## [v0.9.1]
1723

1824
### Fixed
@@ -516,6 +522,8 @@ _TODO_
516522

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

525+
[Unreleased]: https://github.com/stac-utils/pgstac/compare/v0.9.1...main
526+
[v0.9.1]: https://github.com/stac-utils/pgstac/compare/v0.9.0...v0.9.1
519527
[v0.9.0]: https://github.com/stac-utils/pgstac/compare/v0.8.5...v0.9.0
520528
[v0.8.5]: https://github.com/stac-utils/pgstac/compare/v0.8.4...v0.8.5
521529
[v0.8.4]: https://github.com/stac-utils/pgstac/compare/v0.8.3...v0.8.4

src/pypgstac/python/pypgstac/db.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ def get_pool(self) -> ConnectionPool:
8989
max_waiting=settings.db_max_queries,
9090
max_idle=settings.db_max_idle,
9191
num_workers=settings.db_num_workers,
92+
open=True,
9293
)
9394
return self.pool
9495

0 commit comments

Comments
 (0)