Re: Add regression test checking combinations of (object,backend_type,context) in pg_stat_io

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Bertrand Drouvot <bertranddrouvot(dot)pg(at)gmail(dot)com>
Cc: Postgres hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Add regression test checking combinations of (object,backend_type,context) in pg_stat_io
Date: 2025-03-09 22:55:23
Message-ID: Z84cWxlOdGr6KEMC@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Mar 05, 2025 at 09:19:16PM +0900, Michael Paquier wrote:
> On Wed, Mar 05, 2025 at 07:34:16AM +0000, Bertrand Drouvot wrote:
>> What about adding some extra paranoia like?
>>
>> SELECT backend_type, object, context FROM pg_stat_io ORDER BY
>> backend_type, object, context COLLATE "C";
>
> Why not, to force the ordering.

For the sake of the archives. As 8b532771a099 has proved, this has
required two more COLLATE clauses in the query to force a stable
output, but we are in the clear now.
--
Michael

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tomas Vondra 2025-03-09 23:35:29 Re: Changing the state of data checksums in a running cluster
Previous Message Daniel Gustafsson 2025-03-09 22:35:40 Re: Special-case executor expression steps for common combinations