pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nathan Bossart <nathandbossart@gmail.com>
To: Shinya Kato <shinya11.kato@gmail.com>
Cc: Michael Paquier <michael@paquier.xyz>
Cc: David G. Johnston <david.g.johnston@gmail.com>
Cc: Postgres hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: Partitioned tables and [un]loggedness
Date: Wed, 4 Jun 2025 11:15:29 -0500
Message-ID: <aEBxIcAiiDVlQvdx@nathan> (raw)
In-Reply-To: <CAOzEurRRfPaZn_ZGmoDz2C3+74SAhk+FUZo_9oB1Zg_rQNGkYA@mail.gmail.com>
References: <ZtcsLnUSuALqEyE-@nathan>
	<Zt6cDnwSvnuLLnak@paquier.xyz>
	<Zt-V90bS4diq4e0Q@paquier.xyz>
	<ZurvG45F3lQHLw4G@nathan>
	<Zur4qqhABOXtZS8h@nathan>
	<Zutc67q6my4AXOt2@paquier.xyz>
	<ZuujwbHFor1zLufJ@paquier.xyz>
	<Zv36cbgluA_oZPYq@paquier.xyz>
	<CAOzEurQZ1a+6d1K8b=+Ww1NFQVwAt9KSCQsBWXYBaPnYCenK3g@mail.gmail.com>
	<CAOzEurRRfPaZn_ZGmoDz2C3+74SAhk+FUZo_9oB1Zg_rQNGkYA@mail.gmail.com>

On Wed, Jun 04, 2025 at 07:05:20PM +0900, Shinya Kato wrote:
> On Wed, Jun 4, 2025 at 6:55 PM Shinya Kato <shinya11.kato@gmail.com> 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





view thread (37+ messages)  latest in thread

Message-ID: <aEBxIcAiiDVlQvdx@nathan>
Permalink:  ../aEBxIcAiiDVlQvdx@nathan/
Also on:    postgresql.org/message-id/aEBxIcAiiDVlQvdx@nathan

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: nathandbossart@gmail.com, shinya11.kato@gmail.com, michael@paquier.xyz, david.g.johnston@gmail.com
  Subject: Re: Partitioned tables and [un]loggedness
  In-Reply-To: <aEBxIcAiiDVlQvdx@nathan>
  References: <ZtcsLnUSuALqEyE-@nathan> <Zt6cDnwSvnuLLnak@paquier.xyz> <Zt-V90bS4diq4e0Q@paquier.xyz> <ZurvG45F3lQHLw4G@nathan> <Zur4qqhABOXtZS8h@nathan> <Zutc67q6my4AXOt2@paquier.xyz> <ZuujwbHFor1zLufJ@paquier.xyz> <Zv36cbgluA_oZPYq@paquier.xyz> <CAOzEurQZ1a+6d1K8b=+Ww1NFQVwAt9KSCQsBWXYBaPnYCenK3g@mail.gmail.com> <CAOzEurRRfPaZn_ZGmoDz2C3+74SAhk+FUZo_9oB1Zg_rQNGkYA@mail.gmail.com> <aEBxIcAiiDVlQvdx@nathan>

* 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