Re: BUG #16758: create temporary table with the same name loses defaults, indexes

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Marc Boeren <m.boeren@guidance.nl>, pgsql-bugs@lists.postgresql.org
Date: 2020-12-17T07:19:45Z
Lists: pgsql-bugs
On Tue, Dec 01, 2020 at 12:07:41PM -0500, Tom Lane wrote:
> No, it's definitely a bug IMO.  The change in behavior was not
> intentional.

Please note that this bug has been fixed by 5f9b05ad, so there will be
a fix in 12.6.
--
Michael

Commits

  1. Ensure that expandTableLikeClause() re-examines the same table.