pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nathan Bossart <nathandbossart@gmail.com>
To: 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: Thu, 29 Aug 2024 09:49:44 -0500
Message-ID: <ZtCKiJZaoYBHBv05@nathan> (raw)
In-Reply-To: <ZtAY3ZkRVAIp3sxG@paquier.xyz>
References: <ZiiyGFTBNkqcMQi_@paquier.xyz>
	<20240424202640.GB861150@nathanxps13>
	<CAKFQuwY3RTTrp7x4OmEruMmOghdorhq4=eC0ZfG0NM+HnBWFsw@mail.gmail.com>
	<ZimXRKOSHMjQjAy3@paquier.xyz>
	<CAKFQuwZwMOkw-7112u1-gXEhRWuXiZe9otp801Z3dPVvarKdsA@mail.gmail.com>
	<Zimb7xfc79Har77d@paquier.xyz>
	<ZjMte53zQpZNfTWv@paquier.xyz>
	<Zs4-xnNDMEdiKQXo@nathan>
	<ZtAY3ZkRVAIp3sxG@paquier.xyz>

On Thu, Aug 29, 2024 at 03:44:45PM +0900, Michael Paquier wrote:
> On Tue, Aug 27, 2024 at 04:01:58PM -0500, Nathan Bossart wrote:
>> My current thinking is that it would be better to disallow marking
>> partitioned tables as LOGGED/UNLOGGED and continue to have users explicitly
>> specify what they want for each partition.  It'd still probably be good to
>> expand the documentation, but a clear ERROR when trying to set a
>> partitioned table as UNLOGGED would hopefully clue folks in.
> 
> The addition of the new LOGGED keyword is not required if we limit
> ourselves to an error when defining UNLOGGED, so if we drop this
> proposal, let's also drop this part entirely and keep DefineRelation()
> simpler.

+1

> Actually, is really issuing an error the best thing we can
> do after so many years allowing this grammar flavor to go through,
> even if it is perhaps accidental?  relpersistence is marked correctly
> for partitioned tables, it's just useless.  Expanding the
> documentation sounds fine to me, one way or the other, to tell what
> happens with partitioned tables.

IMHO continuing to allow partitioned tables to be marked UNLOGGED just
preserves the illusion that it does something.  An ERROR could help dispel
that misconception.

-- 
nathan





view thread (37+ messages)  latest in thread

Message-ID: <ZtCKiJZaoYBHBv05@nathan>
Permalink:  ../ZtCKiJZaoYBHBv05@nathan/
Also on:    postgresql.org/message-id/ZtCKiJZaoYBHBv05@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, michael@paquier.xyz, david.g.johnston@gmail.com
  Subject: Re: Partitioned tables and [un]loggedness
  In-Reply-To: <ZtCKiJZaoYBHBv05@nathan>
  References: <ZiiyGFTBNkqcMQi_@paquier.xyz> <20240424202640.GB861150@nathanxps13> <CAKFQuwY3RTTrp7x4OmEruMmOghdorhq4=eC0ZfG0NM+HnBWFsw@mail.gmail.com> <ZimXRKOSHMjQjAy3@paquier.xyz> <CAKFQuwZwMOkw-7112u1-gXEhRWuXiZe9otp801Z3dPVvarKdsA@mail.gmail.com> <Zimb7xfc79Har77d@paquier.xyz> <ZjMte53zQpZNfTWv@paquier.xyz> <Zs4-xnNDMEdiKQXo@nathan> <ZtAY3ZkRVAIp3sxG@paquier.xyz> <ZtCKiJZaoYBHBv05@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