public inbox for [email protected]
help / color / mirror / Atom feedFrom: Pavel Borisov <[email protected]>
To: John Naylor <[email protected]>
Cc: Postgres hackers <[email protected]>
Subject: Re: Inherit regression outputs rows in alternative ordering when run on other table AM than heap
Date: Wed, 29 Apr 2026 14:24:51 +0400
Message-ID: <CALT9ZEH00T0fSmep_nU6XczPA_h3-rJ1EEfY7hDdZjBiH87spg@mail.gmail.com> (raw)
In-Reply-To: <CANWCAZYBKjZndN69y0-1OWNfkD9wjJWpDUZTYe=G8phOnh1PMw@mail.gmail.com>
References: <CALT9ZEF8JA+h9+6r_cJFjR-us7KG=hWbM7GBC6SVrW3FpCDv8g@mail.gmail.com>
<CANWCAZYBKjZndN69y0-1OWNfkD9wjJWpDUZTYe=G8phOnh1PMw@mail.gmail.com>
Hi, Jonh!
On Wed, 29 Apr 2026 at 11:49, John Naylor <[email protected]> wrote:
>
> On Fri, Mar 27, 2026 at 7:54 PM Pavel Borisov <[email protected]> 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 output:
>
> 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
view thread (4+ messages)
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: Inherit regression outputs rows in alternative ordering when run on other table AM than heap
In-Reply-To: <CALT9ZEH00T0fSmep_nU6XczPA_h3-rJ1EEfY7hDdZjBiH87spg@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox