Re: C where are oids defined? - Mailing list pgsql-interfaces

From frank ernest
Subject Re: C where are oids defined?
Date
Msg-id trinity-f3623c30-e87a-4223-981f-918fe27a620b-1405441192531@3capp-mailcom-lxa07
Whole thread Raw
In response to C where are oids defined?  ("frank ernest" <doark@mail.com>)
List pgsql-interfaces
> You can just use NULL for the paramTypes argument, and normally postgres
> will figure out the type and everything will be fine. Specifying the
> types might catch certain kinds of mistakes and might save postgres a
> small amount of work.

I like being type safe whenever possible, it's the first thing you [should] learn in C and one less variable when
debugging.

> For user-defined types, the OID might be different on different servers,
> so it's quite awkward to specify the OID for a user-defined type.

The server is going to be run locally so that's not a problem.

Thanks



pgsql-interfaces by date:

Previous
From: Jeff Davis
Date:
Subject: Re: C where are oids defined?
Next
From: Thomas Heller
Date:
Subject: Protocol Question