EXPLAIN statement can also apply to SELECT INTO. - Mailing list pgsql-general

From jian he
Subject EXPLAIN statement can also apply to SELECT INTO.
Date
Msg-id CACJufxFseXwR9RK31eHgGaVM3uQFpCpeb1m3ZEk2mWHEgG+K+A@mail.gmail.com
Whole thread Raw
Responses Re: EXPLAIN statement can also apply to SELECT INTO.
List pgsql-general
hi.

https://www.postgresql.org/docs/current/sql-explain.html
>>>
Any SELECT, INSERT, UPDATE, DELETE, MERGE, VALUES, EXECUTE, DECLARE,
CREATE TABLE AS, or CREATE MATERIALIZED VIEW AS statement, whose
execution plan you wish to see.
>>>

seems you can use it with SELECT INTO.

explain (ANALYZE, BUFFERS, TIMING, VERBOSE ON, BUFFERS ON, WAL ON,SETTINGS ON)
select count(*) as cnt INTO s from tenk1;



pgsql-general by date:

Previous
From: Ron
Date:
Subject: Re: Will PostgreSQL 16 supports native transparent data encryption ?
Next
From: "David G. Johnston"
Date:
Subject: Re: EXPLAIN statement can also apply to SELECT INTO.