Re: Pro et contra of preserving pg_proc oids during pg_upgrade - Mailing list pgsql-hackers

From Laurenz Albe
Subject Re: Pro et contra of preserving pg_proc oids during pg_upgrade
Date
Msg-id 54121d8abf6440d46daa91528c4df8c0fc29f7cd.camel@cybertec.at
Whole thread Raw
In response to Re: Pro et contra of preserving pg_proc oids during pg_upgrade  (Nikita Malakhov <hukutoc@gmail.com>)
List pgsql-hackers
On Thu, 2023-10-12 at 19:56 +0300, Nikita Malakhov wrote:
> Say, we have data processed by some user function and we want to keep reference to this function
> in our data. In this case we have two ways - first - store string output of regprocedure, which is not
> very convenient, and the second - store its OID, which requires slight modification of pg_upgrade
> (pg_dump and func/procedure creation function).

So far, we have lived quite well with the rule "don't store any system OIDs in the database
if you want to pg_upgrade" (views on system objects, reg* data types, ...).

What is inconvenient about storing the output of regprocedure?

Yours,
Laurenz Albe



pgsql-hackers by date:

Previous
From: Vik Fearing
Date:
Subject: Re: Tab completion for AT TIME ZONE
Next
From: jian he
Date:
Subject: Re: [PATCH] Add support function for containment operators