Re: can't drop table due to reference from orphaned temp function

Andres Freund <andres@anarazel.de>

From: Andres Freund <andres@anarazel.de>
To: Miles Delahunty <miles.delahunty@gmail.com>, Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@lists.postgresql.org, Robert Haas <robertmhaas@gmail.com>
Date: 2022-02-21T18:36:58Z
Lists: pgsql-bugs
Hi,

On 2022-02-19 13:31:39 -0800, Andres Freund wrote:
> Proposed bugfix and test attached.

Pushed test + fix to all branches, assertion to HEAD.

Miles, thanks for the report!

Greetings,

Andres Freund



Commits

  1. Fix temporary object cleanup failing due to toast access without snapshot.

  2. Assert in init_toast_snapshot() that some snapshot registered or active.

  3. Rearrange libpq's error reporting to avoid duplicated error text.