Re: BUG #17877: Referencing a system column in a foreign key leads to incorrect memory access

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: BUG #17877: Referencing a system column in a foreign key leads to incorrect memory access
Дата
Msg-id 20230330095740.irhck6e5zbt3jqer@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: BUG #17877: Referencing a system column in a foreign key leads to incorrect memory access  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: BUG #17877: Referencing a system column in a foreign key leads to incorrect memory access  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
On 2023-Mar-29, Tom Lane wrote:

> PG Bug reporting form <noreply@postgresql.org> writes:
> > The following query:
> > CREATE TABLE pt(tid oid, id int, PRIMARY KEY(tid, id));
> > CREATE TABLE ft(id int, FOREIGN KEY (tableoid, id) REFERENCES pt);
> > produces a valgrind-detected error:
> 
> We should probably just disallow system columns as foreign keys.
> There was a legitimate use-case for that with OID columns, but
> no more.

+1

-- 
Álvaro Herrera        Breisgau, Deutschland  —  https://www.EnterpriseDB.com/



В списке pgsql-bugs по дате отправления:

Предыдущее
От: Mats Kindahl
Дата:
Сообщение: Re: BUG #17876: Function width_bucket() for float8 input returns value out of range
Следующее
От: David Rowley
Дата:
Сообщение: Re: BUG #17879: ERROR: unrecognized node type: 2139062143