From: Noah Misch <noah@leadboat.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Andrew Dunstan <andrew@dunslane.net>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Cc: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Subject: Re: Converting built-in SQL functions to new style
Date: Fri, 16 Apr 2021 01:30:58 -0700
Message-ID: <20210416083058.GC1365702@rfd.leadboat.com> (raw)
In-Reply-To: <3956760.1618529139@sss.pgh.pa.us>
References: <3956760.1618529139@sss.pgh.pa.us>
On Thu, Apr 15, 2021 at 07:25:39PM -0400, Tom Lane wrote:
> Here's a draft patch that converts all the built-in and information_schema
> SQL functions to new style, except for half a dozen that cannot be
> converted because they use polymorphic arguments.
This patch looks good.
> One thing I was wondering about, but did not pull the trigger on
> here, is whether to split off the function-related stuff in
> system_views.sql into a new file "system_functions.sql", as has
> long been speculated about by the comments in system_views.sql.
> I think it is time to do this because
>
> (a) The function stuff now amounts to a full third of the file.
Fair.
> (b) While the views made by system_views.sql are intentionally
> not pinned, the function-related commands are messing with
> pre-existing objects that *are* pinned. This seems quite
> confusing to me, and it might interfere with the intention that
> you could reload the system view definitions using this file.
I'm not aware of that causing a problem. Currently, the views give a few
errors, and the functions do not.
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-hackers@postgresql.org
Cc: noah@leadboat.com, tgl@sss.pgh.pa.us, andrew@dunslane.net, robertmhaas@gmail.com, peter.eisentraut@enterprisedb.com
Subject: Re: Converting built-in SQL functions to new style
In-Reply-To: <20210416083058.GC1365702@rfd.leadboat.com>
References: <3956760.1618529139@sss.pgh.pa.us> <20210416083058.GC1365702@rfd.leadboat.com>
* 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