Re: Regression on pg_restore to 16.0: DOMAIN not available to SQL function

2023-11-06 Thread Tom Lane
Mark Hills writes: > On Fri, 3 Nov 2023, Tom Lane wrote: >> Right, so the 910eb61b2 fix explains it. I guess I'd better >> expand the release note entry, because we'd not foreseen this >> particular failure mode. > Indeed, and curiosity got the better of me so I constructed a minimal test > cas

Re: Regression on pg_restore to 16.0: DOMAIN not available to SQL function

2023-11-06 Thread Mark Hills
On Fri, 3 Nov 2023, Tom Lane wrote: > Mark Hills writes: > > On Fri, 3 Nov 2023, Tom Lane wrote: > >> However, then it's not clear why it would've worked > >> in 15.4 which does the same thing. I wonder whether you are > >> using this function in a column default for the troublesome > >> table.

Re: Regression on pg_restore to 16.0: DOMAIN not available to SQL function

2023-11-03 Thread Tom Lane
Mark Hills writes: > On Fri, 3 Nov 2023, Tom Lane wrote: >> However, then it's not clear why it would've worked >> in 15.4 which does the same thing. I wonder whether you are >> using this function in a column default for the troublesome >> table. > Yes, it's just a simple DEFAULT: > CREATE T

Re: Regression on pg_restore to 16.0: DOMAIN not available to SQL function

2023-11-03 Thread Mark Hills
On Fri, 3 Nov 2023, Tom Lane wrote: > Mark Hills writes: > > I'm having errors restoring with pg_restore to v16.0, it appears to be a > > regression or bug. The same file restored to v15.4 without problem. > > > During the restore: > > > pg_restore: error: could not execute query: ERROR: ty

Re: Regression on pg_restore to 16.0: DOMAIN not available to SQL function

2023-11-03 Thread Tom Lane
Mark Hills writes: > I'm having errors restoring with pg_restore to v16.0, it appears to be a > regression or bug. The same file restored to v15.4 without problem. > During the restore: > pg_restore: error: could not execute query: ERROR: type "hash" does not > exist > LINE 7: )::

Re: Regression on pg_restore to 16.0: DOMAIN not available to SQL function

2023-11-03 Thread David G. Johnston
On Friday, November 3, 2023, Mark Hills wrote: > > pg_restore: error: could not execute query: ERROR: type "hash" does not > exist > LINE 7: )::hash; > [...] > CONTEXT: SQL function "gen_hash" during inlining > > -- > -- Relevant SQL declarations > -- > Those were not all of th

Re: Regression on pg_restore to 16.0: DOMAIN not available to SQL function

2023-11-03 Thread Andrew Dunstan
On 2023-11-03 Fr 06:17, Mark Hills wrote: I'm having errors restoring with pg_restore to v16.0, it appears to be a regression or bug. The same file restored to v15.4 without problem. During the restore: pg_restore: error: could not execute query: ERROR: type "hash" does not exist LINE