Re[4]: PG 14.5 -- Impossible to restore dump due to interaction/order of views, functions, and generated columns

2022-12-07 Thread Nunya Business
Tom, Thanks for the insight, I didn't even consider the search path being an issue and I should have. I saw it explicitly specified in other parts of the dump and just assumed it was being done in the function as well. For example, the CREATE statements in the dump output all specify the

Re: Re[2]: PG 14.5 -- Impossible to restore dump due to interaction/order of views, functions, and generated columns

2022-12-07 Thread Tom Lane
"Nunya Business" writes: > Thanks Tom. There are indeed circular references in the schema and the > whole thing sort of doesn't pass the smell test, but this is my first > look at it. The generated column on the table calls a function which > selects from a view that references the table.

Re[2]: PG 14.5 -- Impossible to restore dump due to interaction/order of views, functions, and generated columns

2022-12-07 Thread Nunya Business
"Nunya Business" writes: Within my schema there is a table that has a GENERATED ALWAYS column that calls a plpgsql function. The called function has a "row type" variable declared that references a view. While the schema itself functions properly day to day, and pg_dumpall works as

Re: PG 14.5 -- Impossible to restore dump due to interaction/order of views, functions, and generated columns

2022-12-06 Thread Adrian Klaver
On 12/5/22 11:49, Nunya Business wrote: Good afternoon, I've recently run into a weird issue that I'm trying to gather more data on before sending an official bug report on the off chance that it's already been addressed. Within my schema there is a table that has a GENERATED ALWAYS column

Re: PG 14.5 -- Impossible to restore dump due to interaction/order of views, functions, and generated columns

2022-12-06 Thread Tom Lane
"Nunya Business" writes: > Within my schema there is a table that has a GENERATED ALWAYS column > that calls a plpgsql function. The called function has a "row type" > variable declared that references a view. While the schema itself > functions properly day to day, and pg_dumpall works as

PG 14.5 -- Impossible to restore dump due to interaction/order of views, functions, and generated columns

2022-12-06 Thread Nunya Business
Good afternoon, I've recently run into a weird issue that I'm trying to gather more data on before sending an official bug report on the off chance that it's already been addressed. Within my schema there is a table that has a GENERATED ALWAYS column that calls a plpgsql function. The