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 1wI26P-007j8R-2I for pgsql-hackers@arkaria.postgresql.org; Wed, 29 Apr 2026 10:25:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wI26O-002xrd-0P for pgsql-hackers@arkaria.postgresql.org; Wed, 29 Apr 2026 10:25:08 +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 1wI26N-002xrV-2V for pgsql-hackers@lists.postgresql.org; Wed, 29 Apr 2026 10:25:07 +0000 Received: from mail-ej1-x633.google.com ([2a00:1450:4864:20::633]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wI26L-00000003mXs-2VbO for pgsql-hackers@lists.postgresql.org; Wed, 29 Apr 2026 10:25:07 +0000 Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-ba51e69988aso1709492566b.0 for ; Wed, 29 Apr 2026 03:25:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1777458303; cv=none; d=google.com; s=arc-20240605; b=HfV5xJV9W6yY2KJkdxQcId4ESUmmd0EGvB3HO7SJIhDlmNQ9gTx6VFMWRW7R9XH9Gr yTqTK1i2rmHmqRp49Kj7KPh93vIFT3YvbPS+1ZO0VV1xJIPlI2i86ZYKZlieYcU8oLmi dbgwL/nUWSzWDEHskWWfmK4Ntv0v8s9eFHwZMl6cauhozgkMRpmCtzESH6PqoRCLhLoT UqlYcP2ThY+mFTnE5YZ3jlJl2qY3Ji5oMhPWwJq54QSI9eYx1L+OPB57ktRhqkUyC8L6 vDsAynpS8wFT/AW+ZjddSTNt6jdqD55F35oc9IxknGbnSkj8ZU4nEBPK+2K1MEDKt2ab k1mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=6fAP0aGKuq+3Ys1V2qGMt7o3ZH/ggIlMNBoDilBdHjI=; fh=pm34ODwB5MFcWUsTcKwDl8kk7lYkXZ441vFhAH+If/E=; b=PrlvbBOf2HCrtO0G89xuIw1dowNbL34Kp4xSOIcxcpEyIxuui/H1GG1Tjtj+gjfIZq XkUBmGtfHiHprDuAyQKN74ankihMU9sMSQagrA55haUOEgvamg3nwacmJGloblTDDrQ1 tHU6K1gdJU5IXgy3iTpRrHYOepU1ySmg1l+xLDHHsgkC8HU/j1RnyAP820ad6Hqxapdd 5LbPRDOzMOtxyySd778yy1+ZW9K/3usqUTy7gCn3PrgnJKAEM+ByS850e1l8gPhcSpjB 9emFwD+xzpwbbpKrR/YD7+khieafFn1E1RMZxcWV61fcUCfTkYsIEmGT4QrbhwzgyJ3o VBoQ==; 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=1777458303; x=1778063103; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=6fAP0aGKuq+3Ys1V2qGMt7o3ZH/ggIlMNBoDilBdHjI=; b=GgsL8nfVgRcacFWl6PVxm33Kk3Tkd75YGAAFfvbyQiOi5bFuIbJLoIB5LwtKj6X7lX HfXPSvMOPkxvA0o5ALdgUgxLRGkqQIS6wS5dphdxhdy3ehBlouDeHpFF2+X0BnoLBPSa bNs9cuYeTgVuDSohMwnkSzB+l4XzoJoJapffgvNBqlhry4ryJ5dA4aaRJ+MtGzniJdXD PjLrQVDD4bcoN2JuwXc9G+PijYZBM0T63szVbzQno9Y8kaR1/qUE1b/IIJirtozWXW68 wPFxI9eGhunl0BCLuRBqH41bAjw6W0TqzE+0o8QLG2LdvbXDKRn05I1tujBkgvb7qyYO H1+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777458303; x=1778063103; h=content-transfer-encoding:cc: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=6fAP0aGKuq+3Ys1V2qGMt7o3ZH/ggIlMNBoDilBdHjI=; b=NgnB4ODObZ7e5BrLrFxhn2s8YNj04oIPKagwRd7u87qpTUDnvWGPv46siWIdjwqjGO lfY8CtN9A6uqaA4SLSynQjNASSF0/ZGUTImX8J8SZX4TJr9Hhp+D1eZC/UEGkBk/Noa+ EV5Nczj1rmAsOun3WMdr6ML3gLVPIDN8WE4IHDTvRvJIx/qaB9QBhP3JDePbr2Xqs6uU ngXHXYGKymJ1I4oQgkk/InOUZ1bCPacIPsDId52to1iajLpFR6fds0GAev6cwVkNwiZh BHUs9lrmdy+1kZ7QoPgzpWeM6sBeepmzkqt1RBjgC+s1oZqRLvqZKxdhw+Bkj9xtKhkg JA2w== X-Gm-Message-State: AOJu0YwP/sKL955ZT5W3tk38frMNWQVFx284QuiEXU2lyoiF7sWdsgMv t8tOsXRFLEC5HfrGg9ppqEYh+uaJGl9VAWqQ+c64Oa49hNsx6dW2rZVYmvZxknM2fFVxpICvGXb pz/0jSdn1OUcIFybop078t7hZ19DdKgE= X-Gm-Gg: AeBDiesZbsm7K0Kppm56qBeQ+3Fq+VPEpsksKG29JD9FsIxeG9biF+NC8BEiSb8zh0L gCHcnPcS2QiCag2GOtxTfY8iW9f5pNYvjLj3rkksZuSm0Mb8mQ1AeBLgkjfGRpz8ZK/0N2cHBqN kFKwShQNQ3tkNwMNe/uID4SJK86aFXVb8Xiq0iHao0vZtQrbYvz5P8RO2Lv7A2hP8fsosnlR2eC dpa5tJcLir//K5NmL3zVspa1e2lNf0OgCxtXwiw/EGCbwmddq5yskwyz4Gsxmr/5d9IDG44nGnM +GEaTkQvBUlWicXJPgAw X-Received: by 2002:a17:907:84e:b0:ba2:6e21:e591 with SMTP id a640c23a62f3a-bb804537cebmr396904966b.35.1777458302733; Wed, 29 Apr 2026 03:25:02 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Pavel Borisov Date: Wed, 29 Apr 2026 14:24:51 +0400 X-Gm-Features: AVHnY4IitAGutFXbPnchD3-_OvtV6cCIVSMNGbWoB2av8xJ3ghsUXoiUNG7Ciak Message-ID: Subject: Re: Inherit regression outputs rows in alternative ordering when run on other table AM than heap To: John Naylor Cc: Postgres hackers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, Jonh! On Wed, 29 Apr 2026 at 11:49, John Naylor wrote: > > On Fri, Mar 27, 2026 at 7:54=E2=80=AFPM Pavel Borisov wrote: > > Existing inherit regression test results are tied to the particular > > row order after UPDATE clause. The context is approximately the same > > as in [1]. > > > > When run on different table AM it shows the following difference in out= put: > > I think it'd be beneficial to make regression tests more reproducible > across different table AMs. It's worth asking how much the ongoing > maintenance cost would be, since I imagine the one you're testing is > not the only one that shows differences. > I agree with you. However, it looks quite difficult for me to imagine all possible tests differences that some (unspecified) custom AM's could introduce to tests written in PG test suite (i.e. written considering a single existing heap table AM). It might be beneficial to use an iterative approach and fix what is cheap first. At the same time, adapting PG tests to some known table access methods looks like a too limited case to me. So this thread only adds ORDER BY to tests that are inadvertently tied to the heap rows order, and so are cheap enough to fix. I tried to add ORDER BY's when they're beneficial in my opinion, not too wide, and at the same time not limited just to test differences for particular table AM. Kind regards, Pavel Borisov Supabase