Re: [HACKERS] pg_type questions - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [HACKERS] pg_type questions
Date
Msg-id 199910170148.VAA17973@candle.pha.pa.us
Whole thread Raw
In response to pg_type questions  (Peter Eisentraut <peter_e@gmx.net>)
List 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?

_line is for line arrays.

> 
> 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?)

src/include/catalog.  There is an unused_oid script in there too.


--  Bruce Momjian                        |  http://www.op.net/~candle maillist@candle.pha.pa.us            |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-hackers by date:

Previous
From: Tatsuo Ishii
Date:
Subject: Re: [HACKERS] Different BLKSZ
Next
From: Bruce Momjian
Date:
Subject: Marc's initial request to start Postgres95 development