Re: C where are oids defined?

From: "frank ernest" <doark(at)mail(dot)com>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: C where are oids defined?
Date: 2014-07-15 16:19:53
Message-ID: trinity-f3623c30-e87a-4223-981f-918fe27a620b-1405441192531@3capp-mailcom-lxa07
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Browse pgsql-interfaces by date

  From Date Subject
Next Message Thomas Heller 2014-08-11 14:03:58 Protocol Question
Previous Message Jeff Davis 2014-07-15 16:09:43 Re: C where are oids defined?