pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
ECPGttype/OID
2+ messages / 2 participants
[nested] [flat]

* ECPGttype/OID
@ 2006-11-28 10:15 Pawel Hudak <pawel.hudak@nagler-company.com>
  2006-12-03 13:26 ` Re: ECPGttype/OID Michael Meskes <meskes@postgresql.org>
  0 siblings, 1 reply; 2+ messages in thread

From: Pawel Hudak @ 2006-11-28 10:15 UTC (permalink / raw)
  To: pgsql-interfaces

Hi *,

I'm newbie in PostgreSQL. I'm using C interface.

I'm a little confused regarding type enumerations/defines.

There is set of OID defines in pg_type.h.

But there is also file ecpgtype.h which contains enumeration ECPGttype.

Is there any mapping between OID and ECPGttype?

What are usecases of those types?

Thanks

----

Pawel Hudak

e-mail:  <mailto:pawel.hudak@nagler-company.com>
pawel.hudak@nagler-company.com

 

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: ECPGttype/OID
  2006-11-28 10:15 ECPGttype/OID Pawel Hudak <pawel.hudak@nagler-company.com>
@ 2006-12-03 13:26 ` Michael Meskes <meskes@postgresql.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Michael Meskes @ 2006-12-03 13:26 UTC (permalink / raw)
  To: Pawel Hudak <pawel.hudak@nagler-company.com>; +Cc: pgsql-interfaces

On Tue, Nov 28, 2006 at 11:15:49AM +0100, Pawel Hudak wrote:
> I'm a little confused regarding type enumerations/defines.
> 
> There is set of OID defines in pg_type.h.

These define the OIDs used in the database itself.

> But there is also file ecpgtype.h which contains enumeration ECPGttype.

These define the numbers used by ecpg to define its datatypes.

> Is there any mapping between OID and ECPGttype?

No. Well not really. ECPG does have a few conversion routines it needs
internally, but a full fledged mapping doesn't really exist. But then
you probably don't need one because the client-server conversation is
done in ascii most of the time and ecpg takes care of all the
conversions needed.

Michael
-- 
Michael Meskes
Email: Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: meskes@jabber.org
Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2006-12-03 13:26 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-11-28 10:15 ECPGttype/OID Pawel Hudak <pawel.hudak@nagler-company.com>
2006-12-03 13:26 ` Michael Meskes <meskes@postgresql.org>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox