| From: | Ron Johnson <ronljohnsonjr(at)gmail(dot)com> |
|---|---|
| To: | Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: Are these metadata ALTER TABLE commands transactionally safe? |
| Date: | 2026-05-15 01:03:47 |
| Message-ID: | CANzqJaAqg37Q7HM6uo=BRE2c6_==kawD8EBO6og_MbTp-ayo4w@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-admin |
On Thu, May 14, 2026 at 5:26 PM David G. Johnston <
david(dot)g(dot)johnston(at)gmail(dot)com> wrote:
> On Thursday, May 14, 2026, Ron Johnson <ronljohnsonjr(at)gmail(dot)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”.
>
Any open transactions will still see the original tables.
>
>
>> 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?
>
The applications which I don't want to throw errors are ill-behaved JDBC
connections. Sorry for the ambiguity.
--
Death to <Redacted>, and butter sauce.
Don't boil me, I'm still alive.
<Redacted> lobster!
| From | Date | Subject | |
|---|---|---|---|
| Next Message | David G. Johnston | 2026-05-15 01:13:03 | Re: Are these metadata ALTER TABLE commands transactionally safe? |
| Previous Message | Laurenz Albe | 2026-05-14 21:35:46 | Re: Pgbouncer |