Re: [HACKERS] SPI_fnumber can't see oid

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: admin <admin(at)wtbwts(dot)com>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] SPI_fnumber can't see oid
Date: 2000-01-14 06:26:30
Message-ID: 28740.947831190@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

admin <admin(at)wtbwts(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Ansley, Michael 2000-01-14 06:34:12 RE: Multiple Spindles ( Was: Re: [HACKERS] [hackers]development suggestion needed )
Previous Message Tom Lane 2000-01-14 06:22:46 Re: [HACKERS] Why must -N be >= 16?