Noah Misch 6d49cc2861 CREATE INDEX: use the original userid for more ACL checks.
Commit a117cebd638dd02e5c2e791c25e43745f233111b used the original userid
for ACL checks located directly in DefineIndex(), but it still adopted
the table owner userid for more ACL checks than intended.  That broke
dump/reload of indexes that refer to an operator class, collation, or
exclusion operator in a schema other than "public" or "pg_catalog".
Back-patch to v10 (all supported versions), like the earlier commit.

Nathan Bossart and Noah Misch

Discussion: https://postgr.es/m/f8a4105f076544c180a87ef0c4822352@stmuk.bayern.de
2022-06-25 09:07:46 -07:00
..
2018-01-02 23:30:12 -05:00
2018-01-02 23:30:12 -05:00
2022-03-30 19:00:07 +09:00
2018-03-16 13:18:06 -04:00
2018-01-02 23:30:12 -05:00
2018-03-16 13:18:06 -04:00
2022-01-03 15:42:27 -05:00