From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: Bryn Llewellyn <bryn@yugabyte.com>
Cc: David G. Johnston <david.g.johnston@gmail.com>
Cc: pgsql-general list <pgsql-general@lists.postgresql.org>
Subject: Re: "create function... depends on extension..." not supported. Why?
Date: Wed, 27 Apr 2022 09:48:40 -0400
Message-ID: <369747.1651067320@sss.pgh.pa.us> (raw)
In-Reply-To: <202204270932.puduanle4khz@alvherre.pgsql>
References: <202204270932.puduanle4khz@alvherre.pgsql>
Alvaro Herrera <alvherre@alvh.no-ip.org> writes:
> IIRC Abhijit and I discussed this point offline, and our conclusion was
> that DEPENDS ON EXTENSION was not of general enough usefulness to
> warrant support for it in CREATE FUNCTION -- keeping in mind that we
> would need support for it in CREATE INDEX, CREATE TRIGGER, CREATE
> MATERIALIZED VIEW as well.
Yeah. Quite aside from the code bloat and grammar bloat, my main
fear about that would be the assumption that we could wedge a consistent
syntax for this into all those different sorts of CREATE commands.
At the very least we'd probably find ourselves having to make those
keywords more reserved than they are now.
regards, tom lane
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, alvherre@alvh.no-ip.org, bryn@yugabyte.com, david.g.johnston@gmail.com
Subject: Re: "create function... depends on extension..." not supported. Why?
In-Reply-To: <369747.1651067320@sss.pgh.pa.us>
References: <202204270932.puduanle4khz@alvherre.pgsql> <369747.1651067320@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