1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-27 23:21:58 +03:00

Upgrade to Pygress 2.2.

This commit is contained in:
Bruce Momjian
1998-12-17 01:43:04 +00:00
parent c13a64d7fb
commit e9491eb91c
12 changed files with 1975 additions and 375 deletions

11
src/interfaces/python/mkdefines Executable file
View File

@ -0,0 +1,11 @@
#! /usr/local/bin/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'):
print l,