mirror of
https://github.com/postgres/postgres.git
synced 2025-05-06 19:59:18 +03:00
make sure that we are using the right #defines in pgmodule.c but the OIDs are never actually expected to change.
12 lines
357 B
Python
Executable File
12 lines
357 B
Python
Executable File
#! /usr/bin/env python
|
|
|
|
import string
|
|
|
|
# change this if you have it somewhere else
|
|
for l in open("/usr/local/pgsql/src/include/catalog/pg_type.h").readlines():
|
|
tokens = string.split(l)
|
|
if len(tokens) == 0 or tokens[0] != "#define": continue
|
|
|
|
if tokens[1] in ('CASHOID', 'INT2OID', 'INT4OID', 'OIDOID', 'FLOAT4OID', 'FLOAT8OID', 'NUMERICOID'):
|
|
print l,
|