Re: updates for handling optional argument in system functions - Mailing list pgsql-hackers

From David G. Johnston
Subject Re: updates for handling optional argument in system functions
Date
Msg-id CAKFQuwZ3QDK+kW+PQ1e00fXEgFasUUcLUrjgZJ4-OkKqb5D7yg@mail.gmail.com
Whole thread
In response to Re: updates for handling optional argument in system functions  (Chao Li <li.evan.chao@gmail.com>)
Responses Re: updates for handling optional argument in system functions
List pgsql-hackers
On Tuesday, April 7, 2026, Chao Li <li.evan.chao@gmail.com> wrote:

We can clearly see ":expr {FUNCEXPR :funcid 1573 “.

With this patch, will that view break? How would users find all such broken views? Maybe PostgreSQL already has some recommended way to handle this kind of situation that I am not aware of?

pg_dump resolves oid=1573 and produces a textual SQL representation, which is then executed during pg_restore.  This happens manually, and also automatically by pg_upgrade.  Since the text form hasn’t changed the view is still valid in v19.  You would see the new oid if inspecting the rule after the upgrade.

So yes, the public serialization format being SQL and thus mandatory new object creation during upgrade is the way PostgreSQL handles implementation detail isolation.

David J.

pgsql-hackers by date:

Previous
From: jian he
Date:
Subject: Re: using index to speedup add not null constraints to a table
Next
From: Thomas Munro
Date:
Subject: Re: Automatically sizing the IO worker pool