Re: [HACKERS] SPI_fnumber can't see oid - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [HACKERS] SPI_fnumber can't see oid
Date
Msg-id 28740.947831190@sss.pgh.pa.us
Whole thread Raw
In response to SPI_fnumber can't see oid  (admin <admin@wtbwts.com>)
List pgsql-hackers
admin <admin@wtbwts.com> writes:
> ERROR: check_foreign_key: there is no attribute oid in relation product

> Looking at src/backend/executor/spi.c, I noticed SPI_fnumber started
> counting at 0. Is this normal or should it be -1, assuming oid might be
> just before 0?

I think the SPI code is deliberately set up to prevent access to
the system attributes.  Jan Wieck is probably the only one who knows
exactly why, but I'll bet that something will break if you bypass
that restriction :-(
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [HACKERS] Why must -N be >= 16?
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] [hackers]development suggestion needed