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 1uMqmE-005N4A-FT for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Jun 2025 16:15:42 +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 1uMqmC-00EEur-B9 for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Jun 2025 16:15:40 +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 1uMqmC-00EEui-1s for pgsql-hackers@lists.postgresql.org; Wed, 04 Jun 2025 16:15:40 +0000 Received: from mail-il1-x131.google.com ([2607:f8b0:4864:20::131]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uMqmB-000Ceo-02 for pgsql-hackers@lists.postgresql.org; Wed, 04 Jun 2025 16:15:40 +0000 Received: by mail-il1-x131.google.com with SMTP id e9e14a558f8ab-3ddb5f6f008so645525ab.0 for ; Wed, 04 Jun 2025 09:15:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1749053736; x=1749658536; darn=lists.postgresql.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=aoW/reL7wCXnhb37ujMNUjZItJkxbZ5ihsjelkNGHBM=; b=FDsoRITVHh2NM+1Z2eqPoIMAlP4EaZ4seZygoVuhhuceHMhFlbrVT+Nz874f5+UJrK ptktN+n0Ed8aFaMuAnrq+aUqurnT4XiM5mMZQtHMTlytmVUYuDJGmHB4KTRMml2Xu1ZL 1ZFYZ/TVM7BWbhv3BTjVKUyTRFcjsaNola5qeCnf/ZMiC7p5uDpZOpzAYQMdNI1xtgW5 nlRuHBSz9HTKf/Csc6I6H7rcKzaq2bojwc+EqPj7kv6FL0ysMjiLP4HmtR0pVYiFa0s5 jR5ijsxa0Vx4PK4pz3VaDTAjIh9svADM2N87HwjskNvb1LNAgivSk8q4evYhSkfcHTic BftQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749053736; x=1749658536; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=aoW/reL7wCXnhb37ujMNUjZItJkxbZ5ihsjelkNGHBM=; b=vMzq2BC9pmp4Y36NVuPLh8syF5IwvNJJ8ZGY6LRFtdz9PdY1SNuh3++HyoPJEkjFNg FO3glw3DO1t0jueqSwJLkV6s6bdKHmxFaWc93c5REwqyCzSiv1XP3QUaNlujzs+FGeFr zIiZ+wEVfSxVFjw+c+WAIIQl2fQ2hCf74Z7oTT80k+5VUNVzrmqoKK/CdG3VUa/QGMas vlVdMO0J6sjX1fhu1lp2gljAAvAe1OfdUU5HHP32Kf2OvDZrHpMx3WcpUfMO61aySyzi wMnDE2O2NIYVj2PuUG0dUWh49JxVPhiyOBFOnxgpMkDzFLjbolApVS6gqaQHZaQ8l3dX sG7g== X-Forwarded-Encrypted: i=1; AJvYcCVWNOH2vNBkJ7I4kmJcJJm4acL5gVB1Z7VW2o4/N8wmYWtLn3Y0GTciG2gASNIebN1/di6hDBp8HmTmRnsA@lists.postgresql.org X-Gm-Message-State: AOJu0YxSujHQRar7EUO0wSQQ1h/7yhwjLOkpkHfpN6u5ELLrM9LIjO6X 3AWEyQjRtHMJCqYXKVkvMG1lM81zeVt2CObLHHkGyhruty0J/nlaQ1YD X-Gm-Gg: ASbGncsNAQ/asm+ar2VFMUCIW+SE25L40PxlRQsT8qq+/yZzFfOiZOEmhZx4ngRJwun CzeBx+ZYSKvEhu7Qbba8CZPOEyRpBl180b4s0jkyB3nRNbtle9pN9UnrqxEx90lvauqJwFBaEsf D2y/LurQ0xjRRE1xjrEAgD74nLLB1Fsj/6ntm44HftSD0feKoJNYX6vQwaHixR4d+fUPDisHxAv CdheyThvURs6fM5BEH7tlDmXXy5SwiofJSeYDEOCqzZWeXx4xu37+TSXOL1Yi8WW4ib/iOzOgAd yfoo7FS8ZKHNXtc/ApVpsT6VwPi5Y7VeKy/ExEgJit5rmp+KR2975Rs1GOUEbba7pD/TPZmd9IX Bnud8Ig9XK6AktOK/BccKEvthkl7MXoOsvK16BHfctw== X-Google-Smtp-Source: AGHT+IG87SBhEiknAAQVbFLnRjwUjBwy7BDEhTPDQxDjO0LyRbp2dN3djlVdJxx//70jdShpijUmbg== X-Received: by 2002:a05:6e02:1807:b0:3dc:857c:c61e with SMTP id e9e14a558f8ab-3ddbedc5a0bmr40335105ab.15.1749053731464; Wed, 04 Jun 2025 09:15:31 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id e9e14a558f8ab-3ddb9f7c915sm7913875ab.9.2025.06.04.09.15.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Jun 2025 09:15:30 -0700 (PDT) Date: Wed, 4 Jun 2025 11:15:29 -0500 From: Nathan Bossart To: Shinya Kato Cc: Michael Paquier , "David G. Johnston" , Postgres hackers Subject: Re: Partitioned tables and [un]loggedness Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Jun 04, 2025 at 07:05:20PM +0900, Shinya Kato wrote: > On Wed, Jun 4, 2025 at 6:55 PM Shinya Kato wrote: >> Should we consider preventing tab completion for PARTITION BY >> immediately after CREATE TABLE name (...)? Or is it fine to leave it >> as is, given that it's syntactically correct? > > Sorry. > CREATE TABLE name (...) -> CREATE UNLOGGED TABLE name (...) I see no benefit in recommending things that are guaranteed to error. In commit 5c1ce1b, we removed tab completion for CREATE UNLOGGED MATERIALIZED VIEW even though it is supported by the grammar. The partitioned table case sounds like roughly the same situation. -- nathan