Re: constants for return value from PQftype?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Adam Haberlach <adam(at)newsnipple(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: constants for return value from PQftype?
Date: 2002-01-08 14:22:04
Message-ID: 23304.1010499724@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Adam Haberlach <adam(at)newsnipple(dot)com> writes:
> First, I had to modify PoPy.h so that it would not include
> <postgres.h> and <catalog/pg_type.h>, which don't seem to be
> moved into the normal include path by the install.

See "make install-all-headers". You definitely need pg_type.h
for those constants.

This line looks pretty darn fragile:

ftype = (ftype>1000 && ftype < 1028?PG_ARRAY:ftype);

A hardwired test on type OID range might or might not be wrong today,
but it will assuredly be wrong in future.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Thomas Lockhart 2002-01-08 14:47:16 Re: constants for return value from PQftype?
Previous Message Roderick A. Anderson 2002-01-08 12:50:53 sequential scans and the like operator