postgresql/src/test/modules/test_extensions
Tom Lane 9effc4608e Repair ALTER EXTENSION ... SET SCHEMA.
It turns out that we broke this in commit e5bc9454e, because
the code was assuming that no dependent types would appear
among the extension's direct dependencies, and now they do.

This isn't terribly hard to fix: just skip dependent types,
expecting that we will recurse to them when we process the parent
object (which should also be among the direct dependencies).
But a little bit of refactoring is needed so that we can avoid
duplicating logic about what is a dependent type.

Although there is some testing of ALTER EXTENSION SET SCHEMA,
it failed to cover interesting cases, so add more tests.

Discussion: https://postgr.es/m/930191.1715205151@sss.pgh.pa.us
2024-05-09 12:19:52 -04:00
..
expected Repair ALTER EXTENSION ... SET SCHEMA. 2024-05-09 12:19:52 -04:00
sql Repair ALTER EXTENSION ... SET SCHEMA. 2024-05-09 12:19:52 -04:00
.gitignore Add CASCADE support for CREATE EXTENSION. 2015-10-03 18:23:40 +02:00
Makefile Repair ALTER EXTENSION ... SET SCHEMA. 2024-05-09 12:19:52 -04:00
meson.build Repair ALTER EXTENSION ... SET SCHEMA. 2024-05-09 12:19:52 -04:00
test_ext1--1.0.sql Add CASCADE support for CREATE EXTENSION. 2015-10-03 18:23:40 +02:00
test_ext1.control Add CASCADE support for CREATE EXTENSION. 2015-10-03 18:23:40 +02:00
test_ext2--1.0.sql Add CASCADE support for CREATE EXTENSION. 2015-10-03 18:23:40 +02:00
test_ext2.control Add CASCADE support for CREATE EXTENSION. 2015-10-03 18:23:40 +02:00
test_ext3--1.0.sql Ensure commands in extension scripts see the results of preceding DDL. 2017-05-02 18:06:09 -04:00
test_ext3.control Add CASCADE support for CREATE EXTENSION. 2015-10-03 18:23:40 +02:00
test_ext4--1.0.sql Add CASCADE support for CREATE EXTENSION. 2015-10-03 18:23:40 +02:00
test_ext4.control Add CASCADE support for CREATE EXTENSION. 2015-10-03 18:23:40 +02:00
test_ext5--1.0.sql Add CASCADE support for CREATE EXTENSION. 2015-10-03 18:23:40 +02:00
test_ext5.control Add CASCADE support for CREATE EXTENSION. 2015-10-03 18:23:40 +02:00
test_ext6--1.0.sql In recordExtensionInitPriv(), keep the scan til we're done with it 2016-04-15 21:57:15 -04:00
test_ext6.control In recordExtensionInitPriv(), keep the scan til we're done with it 2016-04-15 21:57:15 -04:00
test_ext7--1.0--2.0.sql Fix test about ignoring extension dependencies during extension scripts. 2016-11-26 13:31:35 -05:00
test_ext7--1.0.sql Fix test about ignoring extension dependencies during extension scripts. 2016-11-26 13:31:35 -05:00
test_ext7.control Fix test about ignoring extension dependencies during extension scripts. 2016-11-26 13:31:35 -05:00
test_ext8--1.0.sql Delete deleteWhatDependsOn() in favor of more performDeletion() flag bits. 2016-12-02 14:57:55 -05:00
test_ext8.control Delete deleteWhatDependsOn() in favor of more performDeletion() flag bits. 2016-12-02 14:57:55 -05:00
test_ext9--1.0.sql Explicitly list dependent types as extension members in pg_depend. 2024-03-04 14:49:36 -05:00
test_ext9.control Explicitly list dependent types as extension members in pg_depend. 2024-03-04 14:49:36 -05:00
test_ext_cine--1.0--1.1.sql In extensions, don't replace objects not belonging to the extension. 2022-08-08 11:12:31 -04:00
test_ext_cine--1.0.sql In extensions, don't replace objects not belonging to the extension. 2022-08-08 11:12:31 -04:00
test_ext_cine.control In extensions, don't replace objects not belonging to the extension. 2022-08-08 11:12:31 -04:00
test_ext_cor--1.0.sql In extensions, don't replace objects not belonging to the extension. 2022-08-08 11:12:31 -04:00
test_ext_cor.control In extensions, don't replace objects not belonging to the extension. 2022-08-08 11:12:31 -04:00
test_ext_cyclic1--1.0.sql Add CASCADE support for CREATE EXTENSION. 2015-10-03 18:23:40 +02:00
test_ext_cyclic1.control Add CASCADE support for CREATE EXTENSION. 2015-10-03 18:23:40 +02:00
test_ext_cyclic2--1.0.sql Add CASCADE support for CREATE EXTENSION. 2015-10-03 18:23:40 +02:00
test_ext_cyclic2.control Add CASCADE support for CREATE EXTENSION. 2015-10-03 18:23:40 +02:00
test_ext_evttrig--1.0--2.0.sql Fix use-after-free bug with event triggers in an extension script 2020-09-15 21:03:14 -03:00
test_ext_evttrig--1.0.sql Fix use-after-free bug with event triggers in an extension script 2020-09-15 21:03:14 -03:00
test_ext_evttrig.control Fix use-after-free bug with event triggers in an extension script 2020-09-15 21:03:14 -03:00
test_ext_extschema--1.0.sql Reject substituting extension schemas or owners matching ["$'\]. 2023-08-07 06:05:56 -07:00
test_ext_extschema.control Reject substituting extension schemas or owners matching ["$'\]. 2023-08-07 06:05:56 -07:00
test_ext_req_schema1--1.0.sql Add @extschema:name@ and no_relocate options to extensions. 2023-03-20 18:37:11 -04:00
test_ext_req_schema1.control Add @extschema:name@ and no_relocate options to extensions. 2023-03-20 18:37:11 -04:00
test_ext_req_schema2--1.0.sql Add @extschema:name@ and no_relocate options to extensions. 2023-03-20 18:37:11 -04:00
test_ext_req_schema2.control Add @extschema:name@ and no_relocate options to extensions. 2023-03-20 18:37:11 -04:00
test_ext_req_schema3--1.0.sql Add @extschema:name@ and no_relocate options to extensions. 2023-03-20 18:37:11 -04:00
test_ext_req_schema3.control Add @extschema:name@ and no_relocate options to extensions. 2023-03-20 18:37:11 -04:00
test_ext_set_schema--1.0.sql Repair ALTER EXTENSION ... SET SCHEMA. 2024-05-09 12:19:52 -04:00
test_ext_set_schema.control Repair ALTER EXTENSION ... SET SCHEMA. 2024-05-09 12:19:52 -04:00