On 2026-Aug-19, PG Bug reporting form wrote:
> Reproducer:
>
> CREATE TABLE t (a int);
> INSERT INTO t VALUES (1);
> CREATE RULE t_del AS ON DELETE TO t
> DO INSTEAD UPDATE t SET a = -1 WHERE a = OLD.a RETURNING *;
>
> -- All of these crash with XX000:
> DELETE FROM t WHERE a = 1 RETURNING old.tableoid;
> -- ERROR: XX000: could not find replacement targetlist entry for attno -6
This is not a "crash". The server is still running, no process has been
restarted, so what you see here is an ordinary error with no further
interesting symptoms. This report is a bit alarmist.
--
Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/