Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sZ3N6-00G61X-A5 for pgsql-hackers@arkaria.postgresql.org; Wed, 31 Jul 2024 07:03:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sZ3N4-002FIE-Q0 for pgsql-hackers@arkaria.postgresql.org; Wed, 31 Jul 2024 07:03:38 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sZ3N4-002FI6-GR for pgsql-hackers@lists.postgresql.org; Wed, 31 Jul 2024 07:03:38 +0000 Received: from mail-lj1-x233.google.com ([2a00:1450:4864:20::233]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sZ3N1-002OKG-Qy for pgsql-hackers@postgresql.org; Wed, 31 Jul 2024 07:03:37 +0000 Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2f032cb782dso59244231fa.3 for ; Wed, 31 Jul 2024 00:03:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722409414; x=1723014214; darn=postgresql.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=ykH7wwea7RnLWzvu9LGLR/gts2r3i7Vy2UF0i0SZx5A=; b=Zgrjle090OrsGZHYP9xje5NdSFfCjgTaEQgPm4q4XeBPC7d13u4bRh0L386JEtFqcG gUcbUWjijuEokW9AwnvGSyZ+eSA0bk5jJs4ZrH9sE13yNHYeLML+Ea8xjoM1jcQLpPWD cMvFLwOWfgd8tj3psx+fxrF/4uBx7GoSrL+uFqfoG2gadttNGbKXRwqS3OpHzfRHWtl/ FT5gS0rFI7E9GS+3CjQjppt+ogG6ZLn5j/2sXSjOQ1VfnAwlvwz/qqauIXycyF9OP+Y2 YpbcIADjrDy8K3gYlUAT84cA8FYjLUFOIxuLQr9C31gJejjGAc4CZamt5sasnhvWv0Cx BBxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722409414; x=1723014214; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=ykH7wwea7RnLWzvu9LGLR/gts2r3i7Vy2UF0i0SZx5A=; b=Ubl6rwwbk1aSx+Ij+L2L8fz0T6hdx/7KDzhFL8VahZXBlWmrtvG9u0sG7JPTNpfm+6 3YKx0KPcuS0muv/nyZjaQXoRpEUw/ON+AnMGZCYT8eA0I2s+ELKSe5+//oM1vhrZTvFY OFj9i+4+U4bKO6kzNSft8UPXiJqo9GImZaVcyhCi0Wdu/gyPOjXhxccJOvqavvmgyQy9 Omz7E9agsP1pWI+IyB4iTW6HbpvBlRp7FL8sIOKlD9qp1RjIoFzoAx96/LCdzG7r7zsN W0d53wqs4VnRlIJSjlNCDNw3x14sjN1vAFYIX01IfVGqJb9Bkf0oecrQ7/APp/er5nV0 Y5jw== X-Gm-Message-State: AOJu0YwesVO1Fx4MOO6IxHFCo6gyFbxCdcGLC7IuCdJ0ynx+PsUuFPyJ u8SEoi2/HQBD/LitoO15sR9vtGXAkfLyitbaUyXgiCJ+X7dt9TLKduxv5zrTer9qiEuE+DqxQJe mUewrbYCGIhS/LSHUS3V9wSFLIMTk4vFT X-Google-Smtp-Source: AGHT+IGGLKe2nPqjkV6o8+LWii2YS/k1i2EcmM5MjQqlrF3dhh7znqCVkb8K28f6P8cznd1BspNecrroF3kv+8AF6qQ= X-Received: by 2002:a2e:9e89:0:b0:2ef:3292:4bdf with SMTP id 38308e7fff4ca-2f12ee066bfmr87277971fa.17.1722409414002; Wed, 31 Jul 2024 00:03:34 -0700 (PDT) MIME-Version: 1.0 From: Kirill Reshke Date: Wed, 31 Jul 2024 12:03:23 +0500 Message-ID: Subject: Lack of possibility to specify CTAS TAM To: pgsql-hackers Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk I have noticed $subj while working with other unrelated patches. The question is, why there is no CREATE TABLE AS .... USING (some_access_method)? This feature looks straightforward, and lack of it is a bit of inconsistency from my point of view. Maybe there are some unobvious caveats with implementing it? I have done a little research reading related threads [1][2], but these do not address $subj, if i'm not missing anything. Neither can I find an open CF entry/thread implementing this (Im looking here http://cfbot.cputube.org/) . The same storage specification feature can actually be supported for CTAE (like CTAS but execute) and CREATE MATERIALIZED VIEW. I can try to propose a POC patch implementing $subj if there are no objections to having this functionality in the core. [1] https://www.postgresql.org/message-id/flat/20180703070645.wchpu5muyto5n647%40alap3.anarazel.de [2] https://www.postgresql.org/message-id/flat/20160812231527.GA690404%40alvherre.pgsql