pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Karsten Hilbert <Karsten.Hilbert@gmx.net>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: pg_dump/pg_restore vs default_transaction_read_only under PG 13.2
Date: Fri, 25 Jun 2021 11:50:09 +0200
Message-ID: <YNWm0dARbCfEgV+c@hermes.hilbert.loc> (raw)
In-Reply-To: <YNWkYgA+f4lfXvUw@hermes.hilbert.loc>
References: <YM9xKBUhojhlOLuP@hermes.hilbert.loc>
	<1511776.1624211267@sss.pgh.pa.us>
	<YM+YVXfEZyRP9PLl@hermes.hilbert.loc>
	<3d842ba4-13c1-cd95-8ef9-b69a06eeb6c1@aklaver.com>
	<YM+nxjszK2LAB9Ll@hermes.hilbert.loc>
	<002748a5-5258-26b4-a7b4-d8f15c914d5c@aklaver.com>
	<YNWkYgA+f4lfXvUw@hermes.hilbert.loc>

Am Fri, Jun 25, 2021 at 11:39:46AM +0200 schrieb Karsten Hilbert:

> I would be happy to hope that pg_dump might
...
> gain a --do-not-alter-database-to-read-only

or even a --(pre|post)-dump-sql=(pre|post).sql allowing for
(here) temporarily altering a role to
default_transaction_read_only=off/on while dumping. If both
pre and post SQL are idempotent they can be applied by
pg_dump regardless of dump failure/success.

But then I can see how that might aggravate remote debugging
by people going "uh, like, we are going to shell out and
temporarily relocate tablespaces to faster storage during
dump" or some such.

Karsten
--
GPG  40BE 5B0E C98E 1713 AFA6  5BC0 3BEA AC80 7D4F C89B





view thread (14+ messages)

Message-ID: <YNWm0dARbCfEgV+c@hermes.hilbert.loc>
Permalink:  ../YNWm0dARbCfEgV+c@hermes.hilbert.loc/
Also on:    postgresql.org/message-id/YNWm0dARbCfEgV+c@hermes.hilbert.loc

 · 

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-general@postgresql.org
  Cc: Karsten.Hilbert@gmx.net, adrian.klaver@aklaver.com, tgl@sss.pgh.pa.us
  Subject: Re: pg_dump/pg_restore vs default_transaction_read_only under PG 13.2
  In-Reply-To: <YNWm0dARbCfEgV+c@hermes.hilbert.loc>
  References: <YM9xKBUhojhlOLuP@hermes.hilbert.loc> <1511776.1624211267@sss.pgh.pa.us> <YM+YVXfEZyRP9PLl@hermes.hilbert.loc> <3d842ba4-13c1-cd95-8ef9-b69a06eeb6c1@aklaver.com> <YM+nxjszK2LAB9Ll@hermes.hilbert.loc> <002748a5-5258-26b4-a7b4-d8f15c914d5c@aklaver.com> <YNWkYgA+f4lfXvUw@hermes.hilbert.loc> <YNWm0dARbCfEgV+c@hermes.hilbert.loc>

* 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