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 1upgg0-00A8Sb-Ue for pgsql-hackers@arkaria.postgresql.org; Sat, 23 Aug 2025 05:20:30 +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 1upgfy-00CjYe-He for pgsql-hackers@arkaria.postgresql.org; Sat, 23 Aug 2025 05:20:27 +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 1upgfx-00CjYS-Us for pgsql-hackers@lists.postgresql.org; Sat, 23 Aug 2025 05:20:26 +0000 Received: from mail-pf1-x436.google.com ([2607:f8b0:4864:20::436]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1upgfv-001Im9-0I for pgsql-hackers@postgresql.org; Sat, 23 Aug 2025 05:20:25 +0000 Received: by mail-pf1-x436.google.com with SMTP id d2e1a72fcca58-76e2ea933b7so2644994b3a.1 for ; Fri, 22 Aug 2025 22:20:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; t=1755926422; x=1756531222; darn=postgresql.org; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=kIcRV/cpzIlvtcpI2IDaH6wrP3p5eF4ge7A+UgNMS0I=; b=cFgJ4tM1QoxuhhO765OoP5Gk15USHgJFffDzXnwdNSAcSoKsUfJ+Nr2u7U5rA9Sele FVLnSPbiDNAhAXWgNOzuM+4leFG1faOQd78TAwNyHhHYeqUEpn3zamStrjBaALjADUtq W1nzhSC3fCRgUUEioxp849O3UPjRQLTrIFSeQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755926422; x=1756531222; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kIcRV/cpzIlvtcpI2IDaH6wrP3p5eF4ge7A+UgNMS0I=; b=kL6Q9cKHHmjy/oeZXiU7/1EqSjPe/OStO9tMx68fxFmYV+Wr1orKl6Uj890SIVRomN BF/sQqd4OHxmAEGmvc/f4nY5eMap87vksphDTT1/cZ5gIOujNBcV2cX0cDIPbiWIMTbI eftqLyKNGq+couf0q2UQ17I3OK2BZCBN6ieXRpj954IWSMfJD8Rwu3TUdEDYHY/VOqUL JyVh6QRlGKYvMN2Y1/0aNr9m57SqpHgBn5yWCiaACDw9J/6llLlLPssVv1AB+BF374FK ReZBRPp3HzHHpmTQGbpn0LzIECIyyhuJY/zEYHm5rbL0YSRZKTzbdrL2I/zMGdInq7e5 F6tA== X-Forwarded-Encrypted: i=1; AJvYcCUx3Vn+qOwc9UY5SC6tXKU6fOCYoQuOQReQT7vp766LKaMLs2uuRoKNof+HgDzbZbgESI2NQqRm/QvaBPvR@postgresql.org X-Gm-Message-State: AOJu0YzYqfU34q1ebPku71Wm3cPDN0nnX7DECIUFW9sV8J4PJA8hzolc Ebt7wPjeudbHlgUsokzqByhcnSREOBQ9OKCfmQyGQoqsxPojSR45W+fd9nmNqBJXHw== X-Gm-Gg: ASbGncsZSDORCbPY3/eEL2t9pfZw/mh7SI5lJvZCmOadfLvC1BANg+PF6s81sNf0oF9 JhRkTpmFOaumH9//sNSueZ053chgdSjgoMG2Is2wG3J66mDkWxCNkkvqEWLJrGWIhsSiuIM0jlY Ow3PF6bJEmaxT8nWd6GVMR581daN8+qikL52OijPu6wpQvXSVEWe7BpxC4OHNzTB5NGJR89CzRn m3UoxFEExjX45zkJujCCQ64GV/7LlLDIHWH9cTXpKqCHBEFuBozuaeKP5yrEG0+tmV2pjnmv39M SvHtLXgKoNkbv7AyrVkO0cjKLJbe1kkrX3mWHo4Cn4HrwSXlV+LzhN+iwM09XGyNYJjFBHC7HH1 uVrHHqmkVfM2rtQteXIIpgDjt4GaSc59g1A2wvh3mMxRo5aOFJDk= X-Google-Smtp-Source: AGHT+IEyk8T9MZipa7xgALlqFL4SeTt0fQZ9N0xf1P0VTGXMc94hYOsz6pLkgTeDmcRmlctsohCiTw== X-Received: by 2002:a05:6a00:391f:b0:76c:5781:2c01 with SMTP id d2e1a72fcca58-7703022e609mr6478036b3a.0.1755926421937; Fri, 22 Aug 2025 22:20:21 -0700 (PDT) Received: from google.com (c-73-15-160-255.hsd1.ca.comcast.net. [73.15.160.255]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7703ffb48a0sm1528280b3a.8.2025.08.22.22.20.20 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Aug 2025 22:20:21 -0700 (PDT) Date: Fri, 22 Aug 2025 22:20:19 -0700 From: Noah Misch To: Kirill Reshke Cc: Alexander Lakhin , pgsql-hackers@postgresql.org, Robert Haas Subject: Re: Test instability when pg_dump orders by OID Message-ID: <20250823052019.43.nmisch@google.com> References: <20250718191702.45.nmisch@google.com> <20250725022740.30.nmisch@google.com> <20250804000321.8b.nmisch@google.com> <20250810163659.71.nmisch@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/2.2.12 (2023-09-09) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, Aug 11, 2025 at 12:20:09AM +0500, Kirill Reshke wrote: > On Sun, 10 Aug 2025 at 21:37, Noah Misch wrote: > > Thanks. Could you make src/test/regress create regression database objects so > > the code addition has coverage? Using pg_signal_backend and > > pg_read_all_settings as the default ACL role names should avoid that suite's > > limitations. (The suite must run under any role name and must drop any roles > > it creates, so it can't assume any particular non-system role name survives > > the suite.) > > Here is my attempt at implementing necessary legwork. It's v3 because > I accidentally cleared the CC list in my previous attempt. Noah kindly > explained to me how additions to the regress test will cause pg_dump > logic to be tested as well. > TIL 002_pg_upgarde.pl runs a regression suite, so if we create any > database objects in it, it will end up being dumped and restored in > that test. > So, I checked that without changes in pg_dump_sort.c, 002_pg_upgarde > fails and with changes it does not. Great. > PFA. I am not horribly sure about my additions to the > `src/test/regress/sql/privileges.sql` file, maybe appending SQL to the > end of the file is not the best option and there is a better place. I like how src/test/regress/sql/collate.icu.utf8.sql puts that kind of thing just after cleanup, so I put it there. Pushed as b61a5c4 with a few other cosmetic changes. Thanks.