Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mWDUI-0002D6-Be for pgsql-hackers@arkaria.postgresql.org; Fri, 01 Oct 2021 08:01:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mWDUH-0004Zj-AY for pgsql-hackers@arkaria.postgresql.org; Fri, 01 Oct 2021 08:01:45 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mWDUH-0004Za-2v for pgsql-hackers@lists.postgresql.org; Fri, 01 Oct 2021 08:01:45 +0000 Received: from new3-smtp.messagingengine.com ([66.111.4.229]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mWDUF-0005i7-3g for pgsql-hackers@postgresql.org; Fri, 01 Oct 2021 08:01:44 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id CC185580FE3; Fri, 1 Oct 2021 04:01:41 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Fri, 01 Oct 2021 04:01:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=2FQQehLOzVF4jZ115HDhzW6tWU+ XDU19VJsCiDxpXaM=; b=KdnhmGPxWML4XOQFtGydNui9+Z11KoCkxgUNPVAlVXE aBL5d0aUO42bFDirARJGkeUMW6Oy0jU0Tnbddwb6Q2z9w1DUjt/Qbxlcv/jWA9ng PNcX9cR41AXXtfpGZMjGMoezl3iUCpVgUZmQnJLTK7+h8Sp2F85UnZBl0jaAZSJM eVLAURij1BabotzMr6fxBs8V6q3tmVq+Nk+1GtznkDwTq0ddAUTVfqSzmZqn1s3r kA5DVtkIkWCi4K7vwTZGPvLa4MFJPHyq7KuZJ/Aqp7zvprB3xcNGkvCISVi3rX+l sD0saRiWYqTakB/I6ryhA9p3Cpd+Ti644NFtiYeP75A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=2FQQeh LOzVF4jZ115HDhzW6tWU+XDU19VJsCiDxpXaM=; b=TgyyNmT/DZSxk/4eYHzqv4 L1ly/vqYsuYnU06cGSjbIQNg59yM8s6PlXsWeThW1RYZhgQucKyTDql5TZh/FKxy aOZ+KT4ynD0yt62mzQXwrJR7zwLCewuJdsySPgxvUValmRk1Z0Lyyxv0G11u8A/4 O8mHSdvaYodRolVsFglih2JI71x7Nilf8P1k+ciT/88L63UO/RmOlVGQTjcKZ5jI 0USndU+iWpxzK6Jit7V5c0m5CrMdHZeXYUUfadAhD9KEKbQWuhHgHF18JJW6UlrN YLHrWTbXU3NedlBMbO13x8cywv5HQwwAiSLBLhAVgEWluI+OHw0koDU28bqxvlbg == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudekhedguddvgecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enfghrlhcuvffnffculdejtddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepvdegudeuhfdtueeltedtveej heehieevueeigeelteegleejleeiueeiheegvefhnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiih ii X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 1 Oct 2021 04:01:37 -0400 (EDT) Date: Fri, 1 Oct 2021 17:01:33 +0900 From: Michael Paquier To: Peter Eisentraut Cc: Vik Fearing , Justin Pryzby , Simon Riggs , pgsql-hackers@postgresql.org, Jacob Champion , Heikki Linnakangas , Ashwin Agrawal , Ashutosh Sharma , Andres Freund , Robert Haas , Amit Kapila , Alvaro Herrera Subject: Re: create table like: ACCESS METHOD Message-ID: References: <20201209201328.GT24052@telsasoft.com> <20201229230805.GE25152@telsasoft.com> <20210119210331.GN8560@telsasoft.com> <20210323003926.GV4203@telsasoft.com> <8b530d40-1e85-e3b4-774f-b9cb4e2b7ca2@enterprisedb.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="TQfc+m1+ZxWu6ZQ0" Content-Disposition: inline In-Reply-To: <8b530d40-1e85-e3b4-774f-b9cb4e2b7ca2@enterprisedb.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --TQfc+m1+ZxWu6ZQ0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 t= his > feature. >=20 > You might think about something like >=20 > CREATE TABLE t2 (...) USING (LIKE t1); >=20 > At least in terms of how the syntax should be structured. Good point. I have marked the patch as RwF. -- Michael --TQfc+m1+ZxWu6ZQ0 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmFWwF0ACgkQnvQgOdby QH0y1g/9GJUjzo7WHKRzQwWJS7zeYjISBJ4LdOJF3YRj0vJhRLayx3ewl6CORaE8 tK9QB3IGnvtkMz39tslUwUbuRu2gyQhbLq0a206q/+iatweOJF6TnTYEEhXCUdaT FDaC9/0mY+dEwU38yj1gZN6VoNvj9u4ldCoVJxRKSUnYZcPxvD6j+b4t4eu+v6Te BE5+SA0xMu2m1jLNpNt+Za0I8PSB7rFYiPZpuqTPGCaGw8Tt0KQ5bdyfnZoghBj/ Xrj8u34vh0yfvhHY+dFicAgBHGQafK6n53roY0PUwkxJWCpHqiMdYCl8B/ZNFX9s wf2mRedjkTzrVr33SlXGIib4U8I3Ig5kpjzXdm3B3WwjTKwMaoFhVyNVWpkHRHAk bOcL/4CVWF0QDx3NxYtOY2c6gex4cxQtN16Fp6J5S1oN+MmU6bgwrsCzwW4fKUvf Senhyz9NcViSum12AGjrRQDHu/O6zynJXuC8yr6QpI6qYTlESPcmwOpKp58SL7Gi ZxluahMRIStzrw8TjZ1NeghS59T04axzX1UkMfYvAkDwuxNm0v7LD5bJZgI3VtSg joToOsGtRwUUt6EGuSr4v80k2JnslRi//jWuAXE0DWljl9qZ7UwUGKTn0Io0K3Bo BLll25iLbp0tZDfvbeR0sskX2FuGA3+ce1fyEfdGjwNDiwSdC7o= =nBZA -----END PGP SIGNATURE----- --TQfc+m1+ZxWu6ZQ0--