Re: race condition in pg_class - Mailing list pgsql-hackers

From Alexander Lakhin
Subject Re: race condition in pg_class
Date
Msg-id e4b40a88-c134-6926-3196-bc4501cb87a2@gmail.com
Whole thread Raw
In response to Re: race condition in pg_class  (Noah Misch <noah@leadboat.com>)
Responses Re: race condition in pg_class
List pgsql-hackers
Hello Noah,

28.06.2024 08:13, Noah Misch wrote:
> Pushed. ...

Please look also at another anomaly, I've discovered.

An Assert added with d5f788b41 may be falsified with:
CREATE TABLE t(a int PRIMARY KEY);
INSERT INTO t VALUES (1);
CREATE VIEW v AS SELECT * FROM t;

MERGE INTO v USING (VALUES (1)) AS va(a) ON v.a = va.a
   WHEN MATCHED THEN DO NOTHING
   WHEN NOT MATCHED THEN DO NOTHING;

TRAP: failed Assert("resultRelInfo->ri_TrigDesc"), File: "nodeModifyTable.c", Line: 2891, PID: 1590670

Best regards,
Alexander



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: iso-8859-1 annotation '-cim' in source code
Next
From: Tatsuo Ishii
Date:
Subject: Re: Fix a comment on PQcancelErrorMessage