Re: [HACKERS] pg_type questions

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [HACKERS] pg_type questions
Date: 1999-10-17 01:48:18
Message-ID: 199910170148.VAA17973@candle.pha.pa.us
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?

_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(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 1999-10-17 03:01:13 Marc's initial request to start Postgres95 development
Previous Message Tom Lane 1999-10-16 20:29:21 Re: [HACKERS] sort on huge table