Re: for libpq which include defines the type oids

From: "Pavel Stehule" <pavel(dot)stehule(at)gmail(dot)com>
To: "Samantha Atkins" <sjatkins(at)mac(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: for libpq which include defines the type oids
Date: 2007-11-06 07:33:35
Message-ID: 162867790711052333t4bde0b20r97b8e48969760b19@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 06/11/2007, Samantha Atkins <sjatkins(at)mac(dot)com> wrote:
> I am probably overlooking something but where exactly are these found
> for inclusion is libpq based programs? Poking around my installation
> doesn't make it obvious.
>
> - samantha
>
>

Get oids dynamically. Use static oids on client part isn't good idea.
They can by changed and than you have to recompile your application.,

postgres=# select 'integer'::regtype::int;
int4
------
23
(1 row)

Regards
Pavel Stehule

In response to

Browse pgsql-general by date

  From Date Subject
Next Message rihad 2007-11-06 07:38:29 any way for ORDER BY x to imply NULLS FIRST in 8.3?
Previous Message Samantha Atkins 2007-11-06 07:12:21 for libpq which include defines the type oids