Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian1998-12-17 01:43:04 +0000
committerBruce Momjian1998-12-17 01:43:04 +0000
commite9491eb91c268166d3694ff3289b43ff5acb1892 (patch)
treeb338bf03b83a1a2c49acc7fd71dcab66bbce4568 /src/interfaces/python/mkdefines
parentc13a64d7fb3002f437fdf9ab28120c00d0853d04 (diff)
Upgrade to Pygress 2.2.
Diffstat (limited to 'src/interfaces/python/mkdefines')
-rwxr-xr-xsrc/interfaces/python/mkdefines11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/interfaces/python/mkdefines b/src/interfaces/python/mkdefines
new file mode 100755
index 00000000000..fd5eb6f4cd7
--- /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,