# Use tools/update_oids.py to update this data.
for t in [
# autogenerated: start
- # Generated from PostgreSQL 13.0
+ # Generated from PostgreSQL 13.4
TypeInfo("aclitem", 1033, 1034),
TypeInfo("bit", 1560, 1561),
TypeInfo("bool", 16, 1000, alt_name="boolean"),
TypeInfo("oid", 26, 1028),
TypeInfo("oidvector", 30, 1013),
TypeInfo("path", 602, 1019),
+ TypeInfo("pg_lsn", 3220, 3221),
TypeInfo("point", 600, 1017),
TypeInfo("polygon", 604, 1027),
TypeInfo("record", 2249, 2287),
"""
# Note: "record" is a pseudotype but still a useful one to have.
+# "pg_lsn" is a documented public type and useful in streaming replication
py_types_sql = """
select
'TypeInfo('
where
oid < 10000
and (typtype = 'b' or typname = 'record')
- and typname !~ '^(_|pg_)'
+ and (typname !~ '^(_|pg_)' or typname = 'pg_lsn')
order by typname
"""
where
oid < 10000
and typtype = 'r'
- and typname !~ '^(_|pg_)'
+ and (typname !~ '^(_|pg_)' or typname = 'pg_lsn')
order by typname
"""
where
oid < 10000
and (typtype = any('{b,r}') or typname = 'record')
- and typname !~ '^(_|pg_)'
+ and (typname !~ '^(_|pg_)' or typname = 'pg_lsn')
order by typname
"""
def update_cython_oids() -> None:
queries = [version_sql, cython_oids_sql]
- fn = ROOT / "psycopg/psycopg/_psycopg/oids.pxd"
+ fn = ROOT / "psycopg_c/psycopg_c/_psycopg/oids.pxd"
update_file(fn, queries)