-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
postgres connector: replace pgxpool.Pool with pgx.Conn (#1163)
Pools make sense when shared across application (eg, CatalogPool) It doesn't make sense creating a pool per connector, & it turns out with a bit of modification we can get by with connections This comes with some restrictions: Connections require exclusion So when using a goroutine, a 2nd connection may be necessary (this was transparently handled by pool before) Similarly, rows must be closed before executing another query
- Loading branch information
Showing
25 changed files
with
520 additions
and
524 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.