Re: Partitioned tables and [un]loggedness

From: Nathan Bossart <nathandbossart(at)gmail(dot)com>
To: Michael Paquier <michael(at)paquier(dot)xyz>
Cc: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>, Postgres hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Partitioned tables and [un]loggedness
Date: 2024-09-03 01:35:15
Message-ID: ZtZn0-JVQuBUbpWw@nathan
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Sep 03, 2024 at 09:22:58AM +0900, Michael Paquier wrote:
> On Thu, Aug 29, 2024 at 09:49:44AM -0500, Nathan Bossart wrote:
>> 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.
>
> Okay. This is going to be disruptive if we do nothing about pg_dump,
> unfortunately. How about tweaking dumpTableSchema() so as we'd never
> issue UNLOGGED for a partitioned table? We could filter that out as
> there is tbinfo->relkind.

That's roughly what I had in mind.

--
nathan

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Munro 2024-09-03 01:47:34 Re: macOS prefetching support
Previous Message Michael Paquier 2024-09-03 01:08:46 Re: Flush pgstats file during checkpoints