]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix some incorrectness in upgrade_adapt.sql on query for WITH OIDS
authorMichael Paquier <michael@paquier.xyz>
Fri, 23 Dec 2022 02:27:14 +0000 (11:27 +0900)
committerMichael Paquier <michael@paquier.xyz>
Fri, 23 Dec 2022 02:27:14 +0000 (11:27 +0900)
commitfd36b82c5d74ed355660beae79925a9faa36a084
treefe0733b0b97286e5f29435276cc4031ffca59233
parent7ad458e06b1bf1408d9d089a843070943d6c7c6a
Fix some incorrectness in upgrade_adapt.sql on query for WITH OIDS

The query used to disable WITH OIDS in all the relations making use of
it was checking for materialized views, but this is not a supported
operation.  On the contrary, this needs to be done on foreign tables.

While on it, use quote_ident() in the ALTER TABLE strings built on the
relation name.

Author: Anton A. Melnikov, Michael Paquier
Discussion: https://postgr.es/m/49f389ba-95ce-8a9b-09ae-f60650c0e7c7@inbox.ru
Backpatch-through: 12
src/bin/pg_upgrade/upgrade_adapt.sql