From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | pg_type questions |
Date: | 1999-10-16 14:48:56 |
Message-ID: | Pine.LNX.4.10.9910161641460.591-100000@peter-e.yi.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
I'm working on psql printing routines here and want to do alignment by
datatype. Two questions arose:
1) What is the difference between/merit of "line" vs. "_line", "cidr" vs.
"_cidr", etc.? Do I have to worry about them?
2) Can I assume that the Oids for the datatypes are always the same
(barring a developer changing them, of course)? Where are they defined?
What would be the best way to digest the output of libpq's PQftype()?
(Perhaps a char * PQftypetext() would be of general use?)
(The issue here is that I do _not_ want to have to query pg_type for that
information, since psql has no business contacting the database server
when not asked to do so.)
Thanks,
Peter
--
Peter Eisentraut Sernanders vaeg 10:115
peter_e(at)gmx(dot)net 75262 Uppsala
http://yi.org/peter-e/ Sweden
From | Date | Subject | |
---|---|---|---|
Next Message | Oliver Elphick | 1999-10-16 16:27:40 | Re: [HACKERS] to_char(), md5() (long) |
Previous Message | Oleg Bartunov | 1999-10-16 14:26:38 | RE: [HACKERS] vacuum of permanently updating database |