summaryrefslogtreecommitdiff
path: root/scripts/make_errors.py
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2024-10-11 02:39:20 +0200
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2024-10-11 02:41:31 +0200
commit5283a835dc57f0a8419957a867dbb41594904176 (patch)
treec1efb8bf502c829b6df840f44a2fbe9f155e97ce /scripts/make_errors.py
parenteaeeb76944eac950e301bca8a482b2d799cd5a42 (diff)
chore: add TransactionTimeout error, added in PostgreSQL 17
Url to fetch source changed from the official Postgres one to the Github mirror because the former throttled us.
Diffstat (limited to 'scripts/make_errors.py')
-rwxr-xr-xscripts/make_errors.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/scripts/make_errors.py b/scripts/make_errors.py
index 59b1b2b7..d231c3ad 100755
--- a/scripts/make_errors.py
+++ b/scripts/make_errors.py
@@ -29,8 +29,7 @@ def main():
os.path.dirname(__file__), "../psycopg/sqlstate_errors.h")
# If you add a version to the list fix the docs (in errors.rst)
- classes, errors = fetch_errors(
- '9.1 9.2 9.3 9.4 9.5 9.6 10 11 12 13 14 15'.split())
+ classes, errors = fetch_errors("11 12 13 14 15 16 17".split())
f = open(filename, "w")
print("/*\n * Autogenerated by 'scripts/make_errors.py'.\n */\n", file=f)
@@ -74,8 +73,8 @@ def parse_errors_txt(url):
errors_txt_url = \
- "http://git.postgresql.org/gitweb/?p=postgresql.git;a=blob_plain;" \
- "f=src/backend/utils/errcodes.txt;hb=%s"
+ "https://raw.githubusercontent.com/postgres/postgres/refs/heads/%s" \
+ "/src/backend/utils/errcodes.txt"
def fetch_errors(versions):