pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Rémi Cura <remi.cura@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #18464: Replacing a SQL function silently drops the generated columns that use this function
Date: Wed, 15 May 2024 11:56:03 -0400
Message-ID: <1786278.1715788563@sss.pgh.pa.us> (raw)
In-Reply-To: <CAJvUf_s7eYr=3KbcmdtQOi7Ri_Rg+uK7YtW1g87dB6tAAZe5Kg@mail.gmail.com>
References: <18464-9f1edc4037b65003@postgresql.org>
	<1104765.1715702118@sss.pgh.pa.us>
	<CAJvUf_s7eYr=3KbcmdtQOi7Ri_Rg+uK7YtW1g87dB6tAAZe5Kg@mail.gmail.com>

=?UTF-8?Q?R=C3=A9mi_Cura?= <remi.cura@gmail.com> writes:
> I tried to reproduce, and as you pointed out, updating the function in
> place is not what dropped the columns.
> Instead, I must have dropped and recreated the function, which indeed drops
> the generated columns.
> I still feel this is a very dangerous behavior.

Yeah, we changed this at v15.  See

https://www.postgresql.org/message-id/flat/17439-7df4421197e928f0%40postgresql.org

https://git.postgresql.org/gitweb/?p=postgresql.git&a=commitdiff&h=cb02fcb4c

			regards, tom lane





view thread (6+ messages)  latest in thread

Message-ID: <1786278.1715788563@sss.pgh.pa.us>
Permalink:  ../1786278.1715788563@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1786278.1715788563@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 using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, remi.cura@gmail.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #18464: Replacing a SQL function silently drops the generated columns that use this function
  In-Reply-To: <1786278.1715788563@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