pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ayush Vatsa <ayushvatsa1810@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Query regarding function cleanup in extension upgrade path
Date: Wed, 14 Feb 2024 15:56:15 -0500
Message-ID: <3113020.1707944175@sss.pgh.pa.us> (raw)
In-Reply-To: <CACX+KaPOzzRHEt4w_=iqKbTpMKjyrUGVng1C749yP3r6dprtcg@mail.gmail.com>
References: <CACX+KaMFA=k1_c7C8ywm7eG2Y05sYyzYoseVr8epWhqO-T7McQ@mail.gmail.com>
	<2899690.1707928657@sss.pgh.pa.us>
	<CACX+KaPOzzRHEt4w_=iqKbTpMKjyrUGVng1C749yP3r6dprtcg@mail.gmail.com>

Ayush Vatsa <ayushvatsa1810@gmail.com> writes:
> Just two follow up queries regarding this -
> 1. Suppose I created a new version 1.1 in which I reduce the C function to
> throw an error then ship it, will users get the .c latest file immediately
> and their old function will throw error but they have to use ALTER
> EXTENSION xyz UPGRADE TO 1.1 to use the latest objects defined in 1.1.sql.
> Is this the correct understanding?

Yes, if you do it like that then once they install the new shlib their
function will be broken until they do ALTER EXTENSION UPGRADE.

> 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.

			regards, tom lane





view thread (5+ messages)  latest in thread

Message-ID: <3113020.1707944175@sss.pgh.pa.us>
Permalink:  ../3113020.1707944175@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3113020.1707944175@sss.pgh.pa.us

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, ayushvatsa1810@gmail.com
  Subject: Re: Query regarding function cleanup in extension upgrade path
  In-Reply-To: <3113020.1707944175@sss.pgh.pa.us>
  References: <CACX+KaMFA=k1_c7C8ywm7eG2Y05sYyzYoseVr8epWhqO-T7McQ@mail.gmail.com> <2899690.1707928657@sss.pgh.pa.us> <CACX+KaPOzzRHEt4w_=iqKbTpMKjyrUGVng1C749yP3r6dprtcg@mail.gmail.com> <3113020.1707944175@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox