diff options
| author | Bruce Momjian <bruce@momjian.us> | 1999-05-17 06:15:31 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 1999-05-17 06:15:31 +0000 |
| commit | e55213a5a8ff7ecad60e81ae476f31f5d0ab8e51 (patch) | |
| tree | 3f3687dbc43ebf002f480f5dcada48baa43cb565 /src/interfaces/python/mkdefines | |
| parent | 716b8e2dba9b098fb6b9bf6e7304aa238e820f69 (diff) | |
| download | postgresql-e55213a5a8ff7ecad60e81ae476f31f5d0ab8e51.tar.gz | |
Re-add python.
Diffstat (limited to 'src/interfaces/python/mkdefines')
| -rwxr-xr-x | src/interfaces/python/mkdefines | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/interfaces/python/mkdefines b/src/interfaces/python/mkdefines new file mode 100755 index 0000000000..fd5eb6f4cd --- /dev/null +++ b/src/interfaces/python/mkdefines @@ -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, |
