postgresql/src/test/isolation/specs
Jeff Davis ff9618e82a Fix MAINTAIN privileges for toast tables and partitions.
Commit 60684dd8 left loose ends when it came to maintaining toast
tables or partitions.

For toast tables, simply skip the privilege check if the toast table
is an indirect target of the maintenance command, because the main
table privileges have already been checked.

For partitions, allow the maintenance command if the user has the
MAINTAIN privilege on the partition or any parent.

Also make CLUSTER emit "skipping" messages when the user doesn't have
privileges, similar to VACUUM.

Author: Nathan Bossart
Reported-by: Pavel Luzanov
Reviewed-by: Pavel Luzanov, Ted Yu
Discussion: https://postgr.es/m/20230113231339.GA2422750@nathanxps13
2023-01-14 00:16:23 -08:00
..
aborted-keyrevoke.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
alter-table-1.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
alter-table-2.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
alter-table-3.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
alter-table-4.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
async-notify.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
classroom-scheduling.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
cluster-conflict-partition.spec Fix MAINTAIN privileges for toast tables and partitions. 2023-01-14 00:16:23 -08:00
cluster-conflict.spec Add some isolation tests for CLUSTER 2022-04-26 13:41:17 +09:00
create-trigger.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
deadlock-hard.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
deadlock-parallel.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
deadlock-simple.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
deadlock-soft-2.spec Rename debug_invalidate_system_caches_always to debug_discard_caches. 2021-07-13 15:01:01 -04:00
deadlock-soft.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
delete-abort-savept-2.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
delete-abort-savept.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
detach-partition-concurrently-1.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
detach-partition-concurrently-2.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
detach-partition-concurrently-3.spec Rethink blocking annotations in detach-partition-concurrently-[34]. 2021-07-05 14:34:47 -04:00
detach-partition-concurrently-4.spec Rethink blocking annotations in detach-partition-concurrently-[34]. 2021-07-05 14:34:47 -04:00
drop-index-concurrently-1.spec Re-adjust drop-index-concurrently-1 isolation test 2022-12-16 11:39:40 +13:00
eval-plan-qual-trigger.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
eval-plan-qual.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
fk-contention.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
fk-deadlock2.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
fk-deadlock.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
fk-partitioned-1.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
fk-partitioned-2.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
fk-snapshot.spec Revert "Rewrite some RI code to avoid using SPI" 2022-04-07 23:42:13 +02:00
freeze-the-dead.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
horizons.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
index-only-scan.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
inherit-temp.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
insert-conflict-do-nothing-2.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
insert-conflict-do-nothing.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
insert-conflict-do-update-2.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
insert-conflict-do-update-3.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
insert-conflict-do-update.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
insert-conflict-specconflict.spec isolationtester: append session name to application_name. 2021-12-13 12:02:06 -08:00
lock-committed-keyupdate.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
lock-committed-update.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
lock-update-delete.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
lock-update-traversal.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
matview-write-skew.spec Make materialized views participate in predicate locking 2022-12-01 15:41:13 +09:00
merge-delete.spec Add support for MERGE SQL command 2022-03-28 16:47:48 +02:00
merge-insert-update.spec Add support for MERGE SQL command 2022-03-28 16:47:48 +02:00
merge-match-recheck.spec Add support for MERGE SQL command 2022-03-28 16:47:48 +02:00
merge-update.spec Add support for MERGE SQL command 2022-03-28 16:47:48 +02:00
multiple-cic.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
multiple-row-versions.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
multixact-no-deadlock.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
multixact-no-forget.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
nowait-2.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
nowait-3.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
nowait-4.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
nowait-5.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
nowait.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
partial-index.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
partition-concurrent-attach.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
partition-drop-index-locking.spec Fix risk of deadlock failure while dropping a partitioned index. 2022-03-21 12:22:13 -04:00
partition-key-update-1.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
partition-key-update-2.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
partition-key-update-3.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
partition-key-update-4.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
plpgsql-toast.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
predicate-gin.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
predicate-gist.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
predicate-hash.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
predicate-lock-hot-tuple.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
prepared-transactions-cic.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
prepared-transactions.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
project-manager.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
propagate-lock-delete.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
read-only-anomaly-2.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
read-only-anomaly-3.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
read-only-anomaly.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
read-write-unique-2.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
read-write-unique-3.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
read-write-unique-4.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
read-write-unique.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
receipt-report.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
referential-integrity.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
reindex-concurrently-toast.spec Fix corruption of toast indexes with REINDEX CONCURRENTLY 2021-12-08 11:01:08 +09:00
reindex-concurrently.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
reindex-schema.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
ri-trigger.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
sequence-ddl.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
serializable-parallel-2.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
serializable-parallel.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
simple-write-skew.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
skip-locked-2.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
skip-locked-3.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
skip-locked-4.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
skip-locked.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
stats.spec pgstat: fix stats.spec instability on slow machines. 2022-05-22 15:25:13 -07:00
subxid-overflow.spec Add subxid-overflow "isolation" test 2022-09-14 16:10:01 +02:00
temp-schema-cleanup.spec Fix temporary object cleanup failing due to toast access without snapshot. 2022-02-21 08:57:34 -08:00
temporal-range-integrity.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
timeouts.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
total-cash.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
truncate-conflict.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
tuplelock-conflict.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
tuplelock-partition.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
tuplelock-update.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
tuplelock-upgrade-no-deadlock.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
two-ids.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
update-conflict-out.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
update-locked-tuple.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
vacuum-concurrent-drop.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
vacuum-conflict.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
vacuum-no-cleanup-lock.spec Adjust comments that called MultiXactIds "XMIDs". 2022-08-29 19:42:30 -07:00
vacuum-skip-locked.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00