Skip to content

Commit 898d40e

Browse files
committed
Merge branch 'pg18'
2 parents ec257ad + 5539c9d commit 898d40e

File tree

5 files changed

+18
-11
lines changed

5 files changed

+18
-11
lines changed

.github/workflows/tests.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@ jobs:
1616
fail-fast: false
1717
matrix:
1818
include:
19-
- {python: "3.9", postgres: "13"}
20-
- {python: "3.10", postgres: "14"}
21-
- {python: "3.11", postgres: "15"}
22-
- {python: "3.12", postgres: "16"}
23-
- {python: "3.13", postgres: "17"}
19+
- {python: "3.9", postgres: "14"}
20+
- {python: "3.10", postgres: "15"}
21+
- {python: "3.11", postgres: "16"}
22+
- {python: "3.12", postgres: "17"}
23+
- {python: "3.13", postgres: "18"}
2424

2525
# Opposite extremes of the supported Py/PG range, other architecture
26-
- {python: "3.9", postgres: "17", architecture: "x86"}
27-
- {python: "3.10", postgres: "16", architecture: "x86"}
28-
- {python: "3.11", postgres: "15", architecture: "x86"}
29-
- {python: "3.12", postgres: "14", architecture: "x86"}
26+
- {python: "3.9", postgres: "18", architecture: "x86"}
27+
- {python: "3.10", postgres: "17", architecture: "x86"}
28+
- {python: "3.11", postgres: "16", architecture: "x86"}
29+
- {python: "3.12", postgres: "15", architecture: "x86"}
3030
- {python: "3.13", postgres: "13", architecture: "x86"}
3131

3232
env:

NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ Current release
44
What's new in psycopg 2.9.11
55
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66

7+
- `~psycopg2.errorcodes` map and `~psycopg2.errors` classes updated to
8+
PostgreSQL 18.
79
- Drop support for Python 3.8.
810

911

doc/src/install.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ The current `!psycopg2` implementation supports:
132132
NOTE: keep consistent with setup.py and the /features/ page.
133133
134134
- Python versions from 3.9 to 3.13
135-
- PostgreSQL server versions from 7.4 to 17
135+
- PostgreSQL server versions from 7.4 to 18
136136
- PostgreSQL client library version from 9.1
137137

138138
.. note::

lib/errorcodes.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ def lookup(code, _cache={}):
6969
CLASS_INVALID_GRANTOR = '0L'
7070
CLASS_INVALID_ROLE_SPECIFICATION = '0P'
7171
CLASS_DIAGNOSTICS_EXCEPTION = '0Z'
72+
CLASS_XQUERY_ERROR = '10'
7273
CLASS_CASE_NOT_FOUND = '20'
7374
CLASS_CARDINALITY_VIOLATION = '21'
7475
CLASS_DATA_EXCEPTION = '22'
@@ -154,6 +155,9 @@ def lookup(code, _cache={}):
154155
DIAGNOSTICS_EXCEPTION = '0Z000'
155156
STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER = '0Z002'
156157

158+
# Class 10 - XQuery Error
159+
INVALID_ARGUMENT_FOR_XQUERY = '10608'
160+
157161
# Class 20 - Case Not Found
158162
CASE_NOT_FOUND = '20000'
159163

@@ -400,6 +404,7 @@ def lookup(code, _cache={}):
400404
IO_ERROR = '58030'
401405
UNDEFINED_FILE = '58P01'
402406
DUPLICATE_FILE = '58P02'
407+
FILE_NAME_TOO_LONG = '58P03'
403408

404409
# Class 72 - Snapshot Failure
405410
SNAPSHOT_TOO_OLD = '72000'

scripts/make_errorcodes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def main():
3333

3434
file_start = read_base_file(filename)
3535
# If you add a version to the list fix the docs (in errorcodes.rst)
36-
classes, errors = fetch_errors("11 12 13 14 15 16 17".split())
36+
classes, errors = fetch_errors("11 12 13 14 15 16 17 18".split())
3737

3838
disambiguate(errors)
3939

0 commit comments

Comments
 (0)