Re: [HACKERS] SPI_fnumber can't see oid

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] SPI_fnumber can't see oid
Дата
Msg-id 28740.947831190@sss.pgh.pa.us
обсуждение исходный текст
Ответ на SPI_fnumber can't see oid  (admin <admin@wtbwts.com>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] Why must -N be >= 16?
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] [hackers]development suggestion needed