public inbox for [email protected]  
help / color / mirror / Atom feed
From: David G. Johnston <[email protected]>
To: Kirill Reshke <[email protected]>
Cc: pgsql-hackers <[email protected]>
Subject: Re: Lack of possibility to specify CTAS TAM
Date: Wed, 31 Jul 2024 00:15:18 -0700
Message-ID: <CAKFQuwai4_dfAGP-MOM+bQegeUhS9v6B-rxv3DPAvTqNpne-qg@mail.gmail.com> (raw)
In-Reply-To: <CALdSSPgV8xXopOUBkvseVQTx7kNbd1w7++YCqvQaurMHdZ_=KQ@mail.gmail.com>
References: <CALdSSPgV8xXopOUBkvseVQTx7kNbd1w7++YCqvQaurMHdZ_=KQ@mail.gmail.com>

On Wednesday, July 31, 2024, Kirill Reshke <[email protected]> wrote:

> I have noticed $subj while working with other unrelated patches.
> The question is, why there is no CREATE TABLE AS .... USING
> (some_access_method)?


The syntax is documented…

CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } | UNLOGGED ] TABLE [
IF NOT EXISTS ] *table_name*
    [ (*column_name* [, ...] ) ]
    [ USING *method* ]

… AS query

https://www.postgresql.org/docs/current/sql-createtableas.html

David J.


view thread (2+ messages)

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: Lack of possibility to specify CTAS TAM
  In-Reply-To: <CAKFQuwai4_dfAGP-MOM+bQegeUhS9v6B-rxv3DPAvTqNpne-qg@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox