Re: EXPLAIN ANALYZE CREATE TABLE AS EXECUTE runs non-SELECT prepared statements

From: Zsolt Parragi <zsolt(dot)parragi(at)percona(dot)com>
To: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org, Bertrand Drouvot <bertranddrouvot(dot)pg(at)gmail(dot)com>
Subject: Re: EXPLAIN ANALYZE CREATE TABLE AS EXECUTE runs non-SELECT prepared statements
Date: 2026-12-01 23:32:01
Message-ID: CAN4CZFNM3FP6_FJSSecX5xKJUPKj7frvY7WUFFHj9qus9fR=kQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, 01 Dec 2026, Fujii Masao <masao(dot)fujii(at)gmail(dot)com> wrote:
> +SELECT count(*) FROM ctas_exec_src;
> +SELECT relname FROM pg_class
> + WHERE relname IN ('ctas_exec_tbl', 'ctas_exec_inner');
>
> Similar error cases in select_into.sql don't check the resulting database
> state either. So I'm thinking to remove these checks and commit the patch,
> barring any objections.

Agree, it should be fine without it, that part was more useful as a
demonstration of the bug without the patch.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Chao Li 2026-12-01 23:36:39 Re: REPACK (CONCURRENTLY) fails during parallel build of exclusion constraint indexes
Previous Message Zsolt Parragi 2026-12-01 23:28:30 Re: Trying to break online checksums with LLMs