summaryrefslogtreecommitdiff
path: root/src/tutorial
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2024-09-25 14:45:01 +0900
committerMichael Paquier <michael@paquier.xyz>2024-09-25 14:45:01 +0900
commitef57a713580feb5f84f23882e6980cc31e74cf85 (patch)
treee1f673832523d57b1d8adb73c8a2a159607fc574 /src/tutorial
parentcafcc3ad0ed324993211b0dce09362aad3165146 (diff)
vacuumdb: Skip temporary tables in query to build list of relations
Running vacuumdb with a non-superuser while another user has created a temporary table would lead to a mid-flight permission failure, interrupting the operation. vacuum_rel() skips temporary relations of other backends, and it makes no sense for vacuumdb to know about these relations, so let's switch it to ignore temporary relations entirely. Adding a qual in the query based on relpersistence simplifies the generation of its WHERE clause in vacuum_one_database(), per se the removal of "has_where". Author: VaibhaveS, Michael Paquier Reviewed-by: Fujii Masao Discussion: https://postgr.es/m/CAM_eQjwfAR=y3G1fGyS1U9FTmc+FyJm9amNfY2QCZBnDDbNPZg@mail.gmail.com Backpatch-through: 12
Diffstat (limited to 'src/tutorial')
0 files changed, 0 insertions, 0 deletions