Re: libpq / SQL3 - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: libpq / SQL3
Date
Msg-id 200007081818.OAA17011@candle.pha.pa.us
Whole thread Raw
In response to Re: libpq / SQL3  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
> What might be the best bet is for this translation function to return
> "short" as in the spec, with the spec-defined values for the datatypes
> known to the spec, and a single "UNKNOWN" value for everything else.
> Apps that need to tell the difference among user-defined types could
> look at either the type OID or the type name, taking a binary-
> compatibility risk if they insist on using the OID in binary form
> (as long as they treat it as an ASCII string they probably aren't
> affected by 4 vs 8 bytes...)  But a bog-standard app would never look
> at either, because it's only using bog-standard datatypes, no?

So you are saying map to the standard-defined values.  Good idea.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@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: Tom Lane
Date:
Subject: Re: libpq / SQL3
Next
From: Peter Eisentraut
Date:
Subject: SSL