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.94.2) (envelope-from ) id 1tlakN-000OcF-D8 for pgsql-bugs@arkaria.postgresql.org; Fri, 21 Feb 2025 21:39:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tlakM-00GqKl-2I for pgsql-bugs@arkaria.postgresql.org; Fri, 21 Feb 2025 21:39:46 +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.94.2) (envelope-from ) id 1tlakL-00GqDH-OT for pgsql-bugs@lists.postgresql.org; Fri, 21 Feb 2025 21:39:45 +0000 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tlakI-0001wH-0A for pgsql-bugs@lists.postgresql.org; Fri, 21 Feb 2025 21:39:44 +0000 Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-5e033c2f106so3319247a12.3 for ; Fri, 21 Feb 2025 13:39:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1740173981; x=1740778781; darn=lists.postgresql.org; h=mime-version:user-agent:references:in-reply-to:date:cc:to:from :subject:message-id:from:to:cc:subject:date:message-id:reply-to; bh=K8sS0NgGSeqYaRH0dJ432c3tnaZ0RxFGH8uwyc2XoUE=; b=SnblDXXYDdTODrnIQx4MuBhSXtcN+Trsb2AO+WkRdkPgOWopXnTye/Zh+C7O5rxkee fHAhoD4jqeXAQo6948eMTDSjFcWrW4YC7lnfB5vOOIkFXg0Yu7kxxxhYqWiBquLWFVDx wbFgrDOOQ/M45C7JuwDDnRNPvf0V7qL4bAPf99t5NjUQ2tbz57IaMhYvx1q5ASjOg3zj Fr6QBF5eM4ijwzLKUjcyo1qRhnO9oZmv50VAY/jDcLP6RMRcmOkdznKquEbE915N7bNK SDbhXrFz4EeOfVPvf4Stp+1cVdLAcmSs052XWhAQhPwmMFFKE8jIsu4NMpyv3Ra8Vkw+ wkKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740173981; x=1740778781; h=mime-version:user-agent:references:in-reply-to:date:cc:to:from :subject:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=K8sS0NgGSeqYaRH0dJ432c3tnaZ0RxFGH8uwyc2XoUE=; b=rFuUEnL+1+Zk9oxouYK8tvXgj+1AlPVW9dlWpqo+H1u5K7Skkm8Qu/pEXpkD3ottRC i8FdNJoJ92vd0E2ofL+qyDUxJmj7L92aTNTUbsSErhxlDyQdG8sa1hnQotma3Eh6nvJ5 CPNlH8qxGLyjwYyiSIYtpkojCiWi8piBGNhFlpKooLJIkpEMN7lPTHR8fG+vZeuCBSbG TuP9Rke8H2zX4lrIrhntcZFBhQBCwKxlWUXId8Ub44Cx1jm3i6fdPiRrN3wVpe+b12Y+ sZRYkrf5wo1Tvmv+djU9C1Gn0yF8mefnuySi+XEYujHr8W2Cq3Y1/+LdFIRU9ZG0TviI 49xQ== X-Forwarded-Encrypted: i=1; AJvYcCXsJQxyDR88umguKRU8QtWdTQR1GKJoHb2IGeLEQBbRwWJKa+r733YTdAAbW96sd91e+0UB+jNsnjp/@lists.postgresql.org X-Gm-Message-State: AOJu0YzgN+GMOJFGCCX4Zr5fGwKnXw+aF72wTJNDHK3aIZEqIzqZ5pfj PipY7S196k2wLuZgQouzimlvyLZM4aoBgQUJJJ13JCYM1GZKALtfyM6+UZYmUG2kdWj3Mbrr1Jx 0S0q4esIy1gmdsN2bCtaS+oKqTjK9CSyis4steV5MUlA1W5rtRaUmAaQmi00E X-Gm-Gg: ASbGncuK3gsCdi354dSMqhzKzbU0K9q9idazFq1OQh7wFpIqXZqn5Cco7rmixgXPUSV NvWItSW3Ni3qZME13o/s6MZXE5/JJvJZ2O94L3CQ223ZBeBccXh3Q5ZVehvTtfRzVIx7hTdTPD2 jSfT6p1uV6QaqZJlf48ti+mpIUauDmPMVxRynopS6EfgIOWLukIjgs+esSCaMc9rcpGuQ2SGj9u MNe/FlFOChdO0GwcLQ4LBZn6ZlWc4r67sD0I9y+9dgrI0bhddf+jK7sS1JZLS9jAs4UotjqLzT1 Vp1fyh0niJVj9fYgInX2UmJ0Q0PbSstFrk0b4YMW/o1kF8c= X-Google-Smtp-Source: AGHT+IGCM7Kp8Jve4Gl7KbBW6vvBjs5CgcakOutsit5BlVkKzbfAzKO7+4K0HVj2Rg59yEnbeLvpdw== X-Received: by 2002:a05:6402:e02:b0:5dc:7374:261d with SMTP id 4fb4d7f45d1cf-5e0b70c0b31mr9858770a12.7.1740173981196; Fri, 21 Feb 2025 13:39:41 -0800 (PST) Received: from localhost.localdomain ([2001:871:260:8267:c285:8f1e:dbf7:2a9f]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5dece2709ffsm14187288a12.60.2025.02.21.13.39.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Feb 2025 13:39:40 -0800 (PST) Message-ID: <94e25cc06968f0fa2813d7bac541be848b81369c.camel@cybertec.at> Subject: Re: Major Version Upgrade failure due to orphan roles entries in catalog From: Laurenz Albe To: Tom Lane Cc: =?ISO-8859-1?Q?=C1lvaro?= Herrera , Virender Singla , pgsql-bugs@lists.postgresql.org, Aniket Jha Date: Fri, 21 Feb 2025 22:39:40 +0100 In-Reply-To: <3137106.1740155469@sss.pgh.pa.us> References: <202502131716.7mgkcnrem2hn@alvherre.pgsql> <2939991.1740089974@sss.pgh.pa.us> <3073713.1740148903@sss.pgh.pa.us> <58e47d097ed2a1512f47891293a7102d573fc970.camel@cybertec.at> <3137106.1740155469@sss.pgh.pa.us> User-Agent: Evolution 3.54.3 (3.54.3-1.fc41) MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, 2025-02-21 at 11:31 -0500, Tom Lane wrote: > Laurenz Albe writes: > > Thanks for the explanation. That might be worth a comment. > > The adjacent comment already says > > /* > * Advance command counter so we can see new record; else tests in > * AddRoleMems may fail. > */ > > so I didn't see anything to add there. Maybe "We can skip this in > cases where we will not call AddRoleMems"? Or maybe the better answer > is to conclude that the whole idea of not calling > CommandCounterIncrement unconditionally is too fragile and not worth > expending brain cells on, and just rip out the if-test. Both the extra sentence and the simplification feel like an improvement. I am fine with either. Yours, Laurenz Albe -- *E-Mail Disclaimer* Der Inhalt dieser E-Mail ist ausschliesslich fuer den bezeichneten Adressaten bestimmt. Wenn Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein sollten, so beachten Sie bitte, dass jede Form der Kenntnisnahme, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail unzulaessig ist. Wir bitten Sie, sich in diesem Fall mit dem Absender der E-Mail in Verbindung zu setzen. *CONFIDENTIALITY NOTICE & DISCLAIMER *This message and any attachment are confidential and may be privileged or otherwise protected from disclosure and solely for the use of the person(s) or entity to whom it is intended. If you have received this message in error and are not the intended recipient, please notify the sender immediately and delete this message and any attachment from your system. If you are not the intended recipient, be advised that any use of this message is prohibited and may be unlawful, and you must not copy this message or attachment or disclose the contents to any other person.