blob: f023b3c748a3eaeb7a55f02669d8fa0cd1bca178 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
 | #! /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'):
		print l,
 |