On Wed, Nov 20, 2024 at 7:57 PM Tom Lane <tgl@xxxxxxxxxxxxx> wrote: > but I wonder if you could be failing to close out the SELECT statement before issuing ALTER. Thanks! This led me to check some debug details, and in fact we don't close the portal, only the statement. (Besides a bug in the debug log...) Now I know what to fix :). Thanks, Istvan