pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: Bryn Llewellyn <bryn@yugabyte.com>
Cc: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: pgsql-general list <pgsql-general@lists.postgresql.org>
Subject: Re: alter function/procedure depends on extension
Date: Thu, 17 Feb 2022 22:54:07 -0500
Message-ID: <3889546.1645156447@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKFQuwbR3zPW+-o4=ntno6_tiWiiQkeKkZZyb6U6FYkNzkZKyA@mail.gmail.com>
References: <7C2D01B4-AD32-48DB-B5FA-6FFBC312ECB2@yugabyte.com>
	<4c6b69e2-52c6-359d-3ed9-04842f631ffe@aklaver.com>
	<CAKFQuwbq6y6aAcqR0_J_yYY3_8SxfaMMjTxMEDP_NpnBqN7nZA@mail.gmail.com>
	<CAKFQuwbmmLpTDkVPmo8KaQUnXGWKMp6Yo1gouA1gsYKcA5LeDQ@mail.gmail.com>
	<BEFD0F38-FBB4-45DB-94B4-84B7C948D1A0@yugabyte.com>
	<CAKFQuwZaqCq89BuHW8-BsuLjWQ=NGSuiXkOCaaxb9FizVw7UVg@mail.gmail.com>
	<3781667.1645147045@sss.pgh.pa.us>
	<CAKFQuwbR3zPW+-o4=ntno6_tiWiiQkeKkZZyb6U6FYkNzkZKyA@mail.gmail.com>

"David G. Johnston" <david.g.johnston@gmail.com> writes:
> On Thu, Feb 17, 2022 at 6:17 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> There is no bug here; it's operating as designed and documented.
>> Maybe the docs need some refinement.

> We should just say that ALTER FUNCTION ALTER DEPENDS ON makes the target
> function/procedure a (transient?) member of the extension and it will be
> dropped when the extension be dropped.

It's not a member though; there's a different syntax for that
(ALTER EXTENSION name ADD member_object).  The differences are
a bit subtle, but for example making the function an extension
member would change how pg_dump treats it.

I confess not remembering exactly why we thought the auto-drop
behavior was important enough to deserve special infrastructure.
Still, it's there now, and the question of dependencies that the
dependency system can't see is really quite a different thing.

			regards, tom lane





view thread (18+ messages)  latest in thread

Message-ID: <3889546.1645156447@sss.pgh.pa.us>
Permalink:  ../3889546.1645156447@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3889546.1645156447@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, david.g.johnston@gmail.com, bryn@yugabyte.com, adrian.klaver@aklaver.com, alvherre@alvh.no-ip.org
  Subject: Re: alter function/procedure depends on extension
  In-Reply-To: <3889546.1645156447@sss.pgh.pa.us>
  References: <7C2D01B4-AD32-48DB-B5FA-6FFBC312ECB2@yugabyte.com> <4c6b69e2-52c6-359d-3ed9-04842f631ffe@aklaver.com> <CAKFQuwbq6y6aAcqR0_J_yYY3_8SxfaMMjTxMEDP_NpnBqN7nZA@mail.gmail.com> <CAKFQuwbmmLpTDkVPmo8KaQUnXGWKMp6Yo1gouA1gsYKcA5LeDQ@mail.gmail.com> <BEFD0F38-FBB4-45DB-94B4-84B7C948D1A0@yugabyte.com> <CAKFQuwZaqCq89BuHW8-BsuLjWQ=NGSuiXkOCaaxb9FizVw7UVg@mail.gmail.com> <3781667.1645147045@sss.pgh.pa.us> <CAKFQuwbR3zPW+-o4=ntno6_tiWiiQkeKkZZyb6U6FYkNzkZKyA@mail.gmail.com> <3889546.1645156447@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