Re: C where are oids defined?

"frank ernest" <[email protected]> Tue, 15 Jul 2014 18:19:53 +0200
Newsgroups gmane.comp.db.postgresql.interfaces
Message-ID <trinity-f3623c30-e87a-4223-981f-918fe27a620b-1405441192531@3capp-mailcom-lxa07>
> 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


-- 
Sent via pgsql-interfaces mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-interfaces