Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wNgyB-000zZL-2E for pgsql-admin@arkaria.postgresql.org; Fri, 15 May 2026 01:04:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wNgyA-00FekV-1R for pgsql-admin@arkaria.postgresql.org; Fri, 15 May 2026 01:04:02 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wNgyA-00FekN-0N for pgsql-admin@lists.postgresql.org; Fri, 15 May 2026 01:04:02 +0000 Received: from mail-oa1-x34.google.com ([2001:4860:4864:20::34]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wNgy8-00000000chK-2DyC for pgsql-admin@lists.postgresql.org; Fri, 15 May 2026 01:04:01 +0000 Received: by mail-oa1-x34.google.com with SMTP id 586e51a60fabf-439a8366831so1760669fac.3 for ; Thu, 14 May 2026 18:04:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1778807039; cv=none; d=google.com; s=arc-20240605; b=GhtDtlPkIPQW/NXbQ/wTqlRWyNy/05CsLj0q0UnEJ0NhaOzVMHpsTMNm/aHTqtMYGG XXhuLagwABs8zN+1np4JfPqarTgt7weTLMqx0JOHR8m95U0/ZFp0xUDnM7QWWuIIW63I VXS6ajUtI28Pnb7dWqbFN4q6PcWs7VK/P2yvzC/esad+ta2yO4JPQRtB4u5h40Q9P5DH 6a2lKSmRLVqWsF5nm6R88JN+0c6PWEWP958f4GMIU2NgMT7+Z+SU7fTs6s7z5HQmn7bm 6BQq+6aoxHYP5vP2SjsxuW1d5U/oLQvhOIzPk34AXw9/BaAniMrvtzdo/fQzZNhAn4yr 4lWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=L3OOJhh/RMvMqRvvTbAOKPTKm8gkVaVo+u11OcEYin4=; fh=druxZHa2fk4e6MLibibygn9AWWgeaAPo4m8Gpo2MBXU=; b=VCJyJ4XMIyWCyJK2ic/xQiGg92nuARfgFUp9AbqxsQUyROJHMzetTgpkKugGw6D6yd kqlwOY79xk9XlwhW4DtRprauZO9qWinn/uz8DpqlVGkl5HZESHuKnoX7R9wD0OUHUz4B 9iqNAwRWYDMR4HbGcnKKa9ijV/5R9BuwAufPylwVcK41XUDZboZZR9A5HdKGnNj2PHIm UXCMtNDRWqDYqkw4jOhQehaQ4fxIe98Nnxca/4mCSnvgZm1/RYRrUidpimr9FLin3X5s Hhb7eYouE5rL7oCHFPJ5UjJ8jsBucln8wA/LF83hJZIMZivV+oEfS0+DAiU4QkOOd3Mr pxgA==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1778807039; x=1779411839; darn=lists.postgresql.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=L3OOJhh/RMvMqRvvTbAOKPTKm8gkVaVo+u11OcEYin4=; b=CCWOrEQyqyw9voKHR9XCBoIVWjyzzPM6qgSX5x7ZqwOOuzqnyYc9cZxKMZSK7W0J5i j14MKz+DMwMAqApYQuV65CkMM1GL2a+rf+0vmEW5VkJRg6ZIVz4vrd+ThMnb3Bl+Qdjk 7edAQGJ7/iggVqSQrnCh59VvUhYg051eiADYc3TVo41mDWpqZRes2t4R05sBOrsfgmTf JlsUyJDt5HQ71F1szNUVAZwqI15DGHCVvOKllhY++a67MR2eaFfmOSLLBe+mX4eN+E8F 1PYWwytKeDQlTvpP5zwqtJVqc0cnRpdJZe5WuLznC/BvEB7xQE87222Hm+gEd0bBm4IX XhDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778807039; x=1779411839; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=L3OOJhh/RMvMqRvvTbAOKPTKm8gkVaVo+u11OcEYin4=; b=tArkK3HFmL9rXRzqSf8SV5GiGDl/qqp7jpvWrKfww/EbMH5EbTJjnSncVRXKWMYQox OSy/x8sjsrvyE2bua7nVtvT0HnCaNLFjJisfHoOg+zgz68sHhTkLH7wDMBG/iegGc0MM hyJNZOKarE37It4SBKUbWs49kyf4kcXMDPfba46NkY4NO1BNbadIK/d9zynQF7e1hIVX c1IR25MAMmZYeDCnYx6XM9P6Y+rg8zdVw3PWY5CFO7Nsfra2o894khKg0ZvAnNsCCj6C s4yhAJtFJlKTq2RZk7LnDSEL8KgIks8RNtvwHbA9aLX98n6Z2d4NDu8ruxB2SSxNPDL7 RAgQ== X-Gm-Message-State: AOJu0YxJv/j/jKMW2x9DPIObdqWZWwVNeExreLLj7tvywROG4syFSTPp N01vrlNOQ0YUbWDHts0gay25xSnPTfx9LBYaJakOQtP2/yQV6o63rNAyEz7/H4/CALvJXU/EpQB xPdSEDvrrWS6wDa+n0KSdQVhEwWoD0a3DYc2B X-Gm-Gg: Acq92OFCTEQ6bvCAUewMLwn5EZgriyiKsfYjz2CpR+IAbvfvtg7wiPC/dPnNY0h7vgS gRGBZaUQY/QYZQRg4lW5RjMH5yOUU7f3mtmacOSsG5rtdq7/WJgx+mL4LDsSDGREIrTmv+0O9Mz MhTWbCHLSdmizuclUUIrU+sz42FRnEiom7hr1oMl5mZ78tgFuda7LFGu9pK9CKx1pFdPuhptoTC BxN70LI6febtGYSvp5e0Pjacs564N/6AMh34QfEYwAykfXNeSOLU4ArZbaonUoLr3jzcv1ipXzg qIDt/Pyv X-Received: by 2002:a05:6820:2982:b0:69b:9232:4111 with SMTP id 006d021491bc7-69c953de198mr1143932eaf.47.1778807039499; Thu, 14 May 2026 18:03:59 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Ron Johnson Date: Thu, 14 May 2026 21:03:47 -0400 X-Gm-Features: AVHnY4I-ZjfjqHkdzf8rb_Y0rbCLZBe3RXCm40Doxhmzp6rApy8xPbAH32ciXd0 Message-ID: Subject: Re: Are these metadata ALTER TABLE commands transactionally safe? To: Pgsql-admin Content-Type: multipart/alternative; boundary="000000000000b6a3b30651d0c9bb" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000b6a3b30651d0c9bb Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, May 14, 2026 at 5:26=E2=80=AFPM David G. Johnston < david.g.johnston@gmail.com> wrote: > On Thursday, May 14, 2026, Ron Johnson 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 =E2=80=9Ctransactionally safe=E2=80=9D. > 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. --=20 Death to , and butter sauce. Don't boil me, I'm still alive. lobster! --000000000000b6a3b30651d0c9bb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Thu, May 14, 2026 at 5:26=E2=80=AFPM D= avid G. Johnston <david.g.= johnston@gmail.com> wrote:
On Thursday,= May 14, 2026, Ron Johnson <ronljohnsonjr@gmail.com> wrote:
PG 17.9
<= br>
BEGIN;
ALTER TABLE x RENAME TO x_hold;
ALTER TABLE y.x SET SCHEM= A a;
ALTER TABLE x OWNER TO foo;
COMMIT;


Define =E2=80=9Ctransactionally safe=E2=80=9D.
Any open transactions will still see the original tables.
=
=C2=A0
=C2= =A0
I don't trust the validity of synthetic tests when Prod is ill-be= haved 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.=C2=A0 Sorry for the ambiguity.

--
Death to <Redacte= d>, and butter sauce.
Don't boil me, I'm still alive.
<Redacted> lobster!
--000000000000b6a3b30651d0c9bb--