pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Cc: Vik Fearing <vik@postgresfriends.org>
Cc: Justin Pryzby <pryzby@telsasoft.com>
Cc: Simon Riggs <simon@2ndquadrant.com>
Cc: pgsql-hackers@postgresql.org, Jacob Champion <pchampion@vmware.com>
Cc: Heikki Linnakangas <hlinnaka@iki.fi>
Cc: Ashwin Agrawal <aagrawal@pivotal.io>
Cc: Ashutosh Sharma <ashu.coek88@gmail.com>
Cc: Andres Freund <andres@anarazel.de>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Amit Kapila <amit.kapila16@gmail.com>
Cc: Alvaro Herrera <alvherre@alvh.no-ip.org>
Subject: Re: create table like: ACCESS METHOD
Date: Fri, 1 Oct 2021 17:01:33 +0900
Message-ID: <YVbAXQc9oaIYfkN1@paquier.xyz> (raw)
In-Reply-To: <8b530d40-1e85-e3b4-774f-b9cb4e2b7ca2@enterprisedb.com>
References: <20201209201328.GT24052@telsasoft.com>
	<X+WJqu4X4EniF6xT@paquier.xyz>
	<20201229230805.GE25152@telsasoft.com>
	<CANP8+j+UihfCrudMprFaTxXFzGw_1W5yHHFSHpRB7xRigOBeww@mail.gmail.com>
	<20210119210331.GN8560@telsasoft.com>
	<20210323003926.GV4203@telsasoft.com>
	<b6102f5b-0753-3f96-071d-5c2b99795159@postgresfriends.org>
	<8b530d40-1e85-e3b4-774f-b9cb4e2b7ca2@enterprisedb.com>

On Thu, Sep 09, 2021 at 02:30:51PM +0200, Peter Eisentraut wrote:
> Hmm.  The problem is that the LIKE clause is really a macro that expands to
> the column definitions of the other table.  So there is, so far, no such as
> thing as two LIKE clauses contradicting.  Whereas the access method is a
> table property.  So I don't think this syntax is the right approach for this
> feature.
> 
> You might think about something like
> 
> CREATE TABLE t2 (...) USING (LIKE t1);
> 
> At least in terms of how the syntax should be structured.

Good point.  I have marked the patch as RwF.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (14+ messages)

Message-ID: <YVbAXQc9oaIYfkN1@paquier.xyz>
Permalink:  ../YVbAXQc9oaIYfkN1@paquier.xyz/
Also on:    postgresql.org/message-id/YVbAXQc9oaIYfkN1@paquier.xyz

 · 

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: pgsql-hackers@postgresql.org
  Cc: michael@paquier.xyz, peter.eisentraut@enterprisedb.com, vik@postgresfriends.org, pryzby@telsasoft.com, simon@2ndquadrant.com, pchampion@vmware.com, hlinnaka@iki.fi, aagrawal@pivotal.io, ashu.coek88@gmail.com, andres@anarazel.de, robertmhaas@gmail.com, amit.kapila16@gmail.com, alvherre@alvh.no-ip.org
  Subject: Re: create table like: ACCESS METHOD
  In-Reply-To: <YVbAXQc9oaIYfkN1@paquier.xyz>

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

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