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: Wed, 18 Sep 2024 10:17:47 -0500
Message-ID: <ZurvG45F3lQHLw4G@nathan> (raw)
In-Reply-To: <Zt-V90bS4diq4e0Q@paquier.xyz>
References: <ZjMte53zQpZNfTWv@paquier.xyz>
	<Zs4-xnNDMEdiKQXo@nathan>
	<ZtAY3ZkRVAIp3sxG@paquier.xyz>
	<ZtCKiJZaoYBHBv05@nathan>
	<ZtZW4gEJOPmeP-nT@paquier.xyz>
	<ZtZn0-JVQuBUbpWw@nathan>
	<Zta_CFeFCx7bMBL8@paquier.xyz>
	<ZtcsLnUSuALqEyE-@nathan>
	<Zt6cDnwSvnuLLnak@paquier.xyz>
	<Zt-V90bS4diq4e0Q@paquier.xyz>

On Tue, Sep 10, 2024 at 09:42:31AM +0900, Michael Paquier wrote:
> On Mon, Sep 09, 2024 at 03:56:14PM +0900, Michael Paquier wrote:
>> How about inventing a new ATT_PARTITIONED_TABLE and make a clean split
>> between both relkinds?  I'd guess that blocking both SET LOGGED and
>> UNLOGGED for partitioned tables is the best move, even if it is
>> possible to block only one or the other, of course.
> 
> I gave it a try, and while it is much more invasive, it is also much
> more consistent with the rest of the file.

This looks reasonable to me.  Could we also use ATT_PARTITIONED_TABLE to
remove the partitioned table check in ATExecAddIndexConstraint()?

-- 
nathan





view thread (37+ messages)  latest in thread

Message-ID: <ZurvG45F3lQHLw4G@nathan>
Permalink:  ../ZurvG45F3lQHLw4G@nathan/
Also on:    postgresql.org/message-id/ZurvG45F3lQHLw4G@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: <ZurvG45F3lQHLw4G@nathan>
  References: <ZjMte53zQpZNfTWv@paquier.xyz> <Zs4-xnNDMEdiKQXo@nathan> <ZtAY3ZkRVAIp3sxG@paquier.xyz> <ZtCKiJZaoYBHBv05@nathan> <ZtZW4gEJOPmeP-nT@paquier.xyz> <ZtZn0-JVQuBUbpWw@nathan> <Zta_CFeFCx7bMBL8@paquier.xyz> <ZtcsLnUSuALqEyE-@nathan> <Zt6cDnwSvnuLLnak@paquier.xyz> <Zt-V90bS4diq4e0Q@paquier.xyz> <ZurvG45F3lQHLw4G@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