Skip to content

Upgrade Postgres driver #407

@c0c0n3

Description

@c0c0n3

Is your feature request related to a problem? Please describe.
Starting from version 1.16.6, pg8000 has dropped the PGJsonb class. This breaks the Timescale translator so we pinned the pg8000 version in the Pipfile to 1.16.5---the last version to ship with the PGJsonb class. Also, pg8000 doesn't come with connection pooling.

Describe the solution you'd like
See how difficult it'd be to switch to Psycopg. It shouldn't be hard actually. Notice Psycopg has built-in connection pooling.

Describe alternatives you've considered
Stick with pg8000, just replace PGJsonb with json.dump. Quick solution, but then we'd still need a solution for connection pooling...

Additional context
See also: crate/crate-python#397

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions