Re: Query regarding function cleanup in extension upgrade path

From: Daniel Gustafsson <daniel(at)yesql(dot)se>
To: Ayush Vatsa <ayushvatsa1810(at)gmail(dot)com>
Cc: "pgsql-generallists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: Query regarding function cleanup in extension upgrade path
Date: 2024-02-15 08:31:32
Message-ID: 670C5F75-12A9-499D-933B-D44A171A13F8@yesql.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> On 14 Feb 2024, at 21:56, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Ayush Vatsa <ayushvatsa1810(at)gmail(dot)com> writes:

>> 2. While going through the contrib folder I find that in the regress test
>> there are two .out files with respect to a single .sql file, example
>> citext.out and citext_1.out wrt citext.sql. Why is it so? Even in git blame
>> , I couldn't find much!
>
> We use that when the expected test output is environment-dependent.
> If the diff between the .out files isn't pretty self-explanatory,
> you can try checking the git log for the "_1.out" file to see why it
> was created.

Some further details on this may be gleaned from the pg_regress source code
where it checks for an alternate file (_1 through _9) in case the main expected
output file created a diff:

https://git.postgresql.org/gitweb/?p=postgresql.git;a=blob;f=src/test/regress/pg_regress.c;h=c894005dac06bc233896520c83c18e51af8ace9c;hb=HEAD#l1450

--
Daniel Gustafsson

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Daniel Westermann (DWE) 2024-02-15 10:52:42 pg_stat_activity.query_id <-> pg_stat_statements.queryid
Previous Message Laurenz Albe 2024-02-15 07:32:24 Re: RowLock and multiple transactions