HomeSolus

Update Psycopg to 2.9.2

Authored by silke on Tue, Nov 16, 7:32 AM.

Description

Update Psycopg to 2.9.2

Summary:
Changelog:

  • Raise ValueError for dates >= Y10k.
  • ~psycopg2.errorcodes map and ~psycopg2.errors classes updated to PostgreSQL 14.
  • Add preliminary support for Python 3.11.

Depends on D12300

Test Plan:
Connect to, and query, an existing Pagila database:

python3
import psycopg2
conn = psycopg2.connect("dbname=pagila")
cur = conn.cursor()
cur.execute("SELECT title, description FROM film WHERE fulltext @@ to_tsquery('saga&india');")
for i in cur.fetchall():
    print(f"Title: {i[0]}, description: {i[1]}")

Reviewers: Triage Team, JoshStrobl

Reviewed By: Triage Team, JoshStrobl

Subscribers: JoshStrobl

Differential Revision: https://dev.getsol.us/D12301

Details

Committed
JoshStroblTue, Nov 16, 7:33 AM
Pushed
JoshStroblTue, Nov 16, 7:33 AM
Reviewer
Triage Team
Differential Revision
D12301: Update Psycopg to 2.9.2
Parents
R2488:b5fc55c92b3c: Update psycopg2 to 2.9.1 and remove Python2 build
Branches
Unknown
Tags
Unknown
References
HEAD -> master, tag: psycopg2-2.9.2-10