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 1wPgfB-000xAt-2c for pgsql-bugs@arkaria.postgresql.org; Wed, 20 May 2026 13:08:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wPgeA-007jby-1l for pgsql-bugs@arkaria.postgresql.org; Wed, 20 May 2026 13:07:39 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wPgeA-007jbp-0i for pgsql-bugs@lists.postgresql.org; Wed, 20 May 2026 13:07:39 +0000 Received: from mail-ot1-x336.google.com ([2607:f8b0:4864:20::336]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wPge8-00000000YNF-3dyU for pgsql-bugs@lists.postgresql.org; Wed, 20 May 2026 13:07:38 +0000 Received: by mail-ot1-x336.google.com with SMTP id 46e09a7af769-7dcd9061b1aso4376854a34.2 for ; Wed, 20 May 2026 06:07:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1779282454; cv=none; d=google.com; s=arc-20240605; b=ElhbS5clTIjFeP6NqxOMMqivosjzo/pgCNICPPVexvUhHE+0Rdwx2nLnKWsYQjNCXj H3tByFV4IrJA8aWl8OjhcdzUFF7Is8eHDiCu64cr6pj72TznF0BWacvf7Xgg8/tLU5LJ oEXQcAKI2s5mnxFS9/8Gm4oftHxaHZEGs/6vYfMigcWeFS2n73Detlg8x/o6c5ZLKR4Q gM7av4gwhNsiRkK7/d/GTp96VJGT1KWyaR9BL6dNUbkXcoPqvOB9vR3/FRLest0S+KGU mv++BI+K6hKxxGgW6ghkcw1I5KVG6FwXGsAvb66eOe3/UDELshW01GMZnaGA3xouxniy DWig== 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=EHtugjc/Zo9eFiSkq88NoHR4Cn9OjOPrrJuwAPRvc+I=; fh=T5LBpvK6cnEHxRKFZK554qwCxLCjuhQ8ANMbUyIBM+s=; b=JAOMezeW9PpKIw6N/yrZ9Ap5ulvrF6ShuRBzuk8DKcDzordfuGVnbHgEeFB4tWFlKf P22t/oWNYfCOfY7XdJUCCFr9SV62ZrlHWiYXHhXdXpXP+vwonBc+zotLD1+Ki/mx4qwV xL9OxeEWIyzMjMo9FXbUhS7pkHHK3+132nQx1OvBPQBXx0SL0b8KeZSq6B/tsYc16JTn fN0307Zv1Q0xQ/1gcBHbh8u9YYId40tKLMU0RtPZ3KdQjiLRkmUx9Xsw0K3DR5jb1aKa GV8RyHkCKbgKYDbncwPzI3CyjsklybFvWC75pyAxxP9BfMuuhxvQeSGS0q1YhaonngNA IQeQ==; 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=1779282454; x=1779887254; 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=EHtugjc/Zo9eFiSkq88NoHR4Cn9OjOPrrJuwAPRvc+I=; b=ZewAmre3Hod4kg7dwCFdX8T0sUIxFZ49L+M6MhrkV3VrooGloPLq99P+9nv5vuuS60 /JIljzTVuCByzNdUi2jcMftexJj72adohUvgfOP6MR5kV3dXJTExNIM7GF6x5a8nnVMC dtCqqkdwvZlNLE/MdIia0jpE3Rjy/U+9iV9YocxGXV/sbEoim1xmYSfJPqx2IsekLorP vw8Fy57pDBT1Q4mmWh/5NK8aCLVtDMixObXd6tEyALSxHvkgPAw4+agScKqWC8Yoru3q dmIMttINs6AX/ytwwgP/JDnRyOKFJH+GUbDmX9p+41cypuC1ffiHqkMvh2T8B2xVxhC7 +Rew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779282454; x=1779887254; 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=EHtugjc/Zo9eFiSkq88NoHR4Cn9OjOPrrJuwAPRvc+I=; b=Roz6tAnKajABc1Jjt6R+vPsfNWet6bL8lOG6T/H/qX3/ldozDIsUxrW9VR9X0rsAKY DXABqm44l+HEfsgVtAKzrrRSCvpza0JGUCEQyHYWFsor50eirLlxEHTuMoGynPH7Isow y8XICa4RMTq+R8/QtaW98ly4bvsq8YdQ4PSV1lfNHytX0auUQs2hqm1lCqiHSm2LxGBW qyrvawyy7xseXIbbG054+Z9kEBN3C3vuVPlX6rI+jmPTErCZJDFbABJvRoJqD1hSgDg7 yw1BPtizdqQnNjOXllv1YMwb8vaa75gcLzUnu8E9w2hTjGykCkw0vsl4A0fmoPbsCYPx TkmQ== X-Forwarded-Encrypted: i=1; AFNElJ/Z89yKDNX0BexGORJPRL9u/SGawpnuoyA4oiBsHwDa2ZvvjFVWSYFbABOlStm0JY4zJQ9QketPcP70@lists.postgresql.org X-Gm-Message-State: AOJu0YzAFVQGbxDjd33eV+Mc2iaTGbluZiLk4OXxIMipxe0D3VUTEsGI o9FT6dcDN/Z+uPtOr0eIIVz1XSdP5e2d5FiNGSC9Zq1H85tZPHg01DenT4mu9t/EWQMkFOfBxzc MDfAwgglcccmHVvjyJmAtHNlypknvljc= X-Gm-Gg: Acq92OEke3lnvqu4b4LIFaRhSeON4MfvCznvPggZgN8jhWgbT1zckCdtsUAp+Rcy6F4 gASHboxCD/jwrDKnCr525IUVMtXmqE4lf/uVdcXVukdTqmkFrPGYNzIQrJCVAK3hDMbCwCsX0ua Cg008CBxWjkWUpx7izK+MF/PymU7ad9E7cHxQFuM/jiJtPBarDfaANeS3pUlEwovD5AtZvDWbS0 qsuQ6gXEtvKqS1AKBrVE7c6sG35a8NoQ3lPjVqgc3jn4FOQ0mC1spmLH7ncXKDvsSn9SIQqr5ix YAJELtckfGHc8Xl//+Nq5EKWDC8jjKayv8CFdNQZ9E6mPbPtFp4bbBjU34NG+/3GmUpVg74CYic 221TD1mNeHFuZxcgG1QrO93NMEUg= X-Received: by 2002:a05:6830:61cd:b0:7de:5612:d420 with SMTP id 46e09a7af769-7e4f2bdc0e7mr16898889a34.18.1779282454362; Wed, 20 May 2026 06:07:34 -0700 (PDT) MIME-Version: 1.0 References: <19483-80de42dc4e62cfd6@postgresql.org> In-Reply-To: <19483-80de42dc4e62cfd6@postgresql.org> From: Greg Sabino Mullane Date: Wed, 20 May 2026 09:06:58 -0400 X-Gm-Features: AVHnY4KAZOgEr4ueqhdkqQabkHxgWb3HuouTP46boo0gOX_IkTslIzGtmGSeAE0 Message-ID: Subject: Re: BUG #19483: pg_upgrade fails with orphan records in pg_init_priv catalog table To: huseyin.d3r@gmail.com, pgsql-bugs@lists.postgresql.org Content-Type: multipart/alternative; boundary="000000000000a5c0ae06523f7a95" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000a5c0ae06523f7a95 Content-Type: text/plain; charset="UTF-8" > > PostgreSQL version: 18.3 > ... 5. Verify orphan records remain in pg_init_privs:erprise Postgres Software > Products & Tech Support > Thanks for providing a failing use case. I ran this on a 18.3 server and found no orphaned rows - but I used the pg_stat_statements extension instead of pg_wait_sampling. Could you try your experiment using pg_stat_statements? And could you also show us the contents of the errant rows in pg_init_privs for the failing case? --000000000000a5c0ae06523f7a95 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
PostgreSQL version: 18.3
...
5. Verify orpha= n records remain in pg_init_privs:erprise Postgres Software Products & = Tech Support

Thanks for providing a fai= ling use case. I ran this on a 18.3 server and found no orphaned rows - but= I used the pg_stat_statements extension instead of pg_wait_sampling. Could= you try your experiment using pg_stat_statements? And could you also show = us the contents of the errant rows in pg_init_privs for the failing case?

=C2=A0

--000000000000a5c0ae06523f7a95--