public inbox for pgsql-admin@postgresql.org  
help / color / mirror / Atom feed
From: David G. Johnston <david.g.johnston@gmail.com>
To: Ron Johnson <ronljohnsonjr@gmail.com>
Cc: Pgsql-admin <pgsql-admin@lists.postgresql.org>
Subject: Re: Are these metadata ALTER TABLE commands transactionally safe?
Date: Thu, 14 May 2026 14:26:05 -0700
Message-ID: <CAKFQuwbZQ6nquZaw3Xoa2GyFa0_kGzmuVAH71LN7tO-z+sAoAA@mail.gmail.com> (raw)
In-Reply-To: <CANzqJaB2NCCvyigAWH3=1G=2A-oybCo-oQXxWF4UuniCebqhPQ@mail.gmail.com>
References: <CANzqJaB2NCCvyigAWH3=1G=2A-oybCo-oQXxWF4UuniCebqhPQ@mail.gmail.com>

On Thursday, May 14, 2026, Ron Johnson <ronljohnsonjr@gmail.com> wrote:

> PG 17.9
>
> BEGIN;
> ALTER TABLE x RENAME TO x_hold;
> ALTER TABLE y.x SET SCHEMA a;
> ALTER TABLE x OWNER TO foo;
> COMMIT;
>
>
Define “transactionally safe”.


> I don't trust the validity of synthetic tests when Prod is ill-behaved
> JDBC connections.
>
>
Then do them over a local connection using psql?

David J.


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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: david.g.johnston@gmail.com, ronljohnsonjr@gmail.com, pgsql-admin@lists.postgresql.org
  Subject: Re: Are these metadata ALTER TABLE commands transactionally safe?
  In-Reply-To: <CAKFQuwbZQ6nquZaw3Xoa2GyFa0_kGzmuVAH71LN7tO-z+sAoAA@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox