forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite0a0cc2
committed
Make pg_restore's identify_locking_dependencies() more bulletproof.
This function had a blacklist of dump object types that it believedneeded exclusive lock ... but we hadn't maintained that, so that itwas missing ROW SECURITY, POLICY, and INDEX ATTACH items, all ofwhich need (or should be treated as needing) exclusive lock.Since the same oversight seems likely in future, let's reverse thesense of the test so that the code has a whitelist of safe objecttypes; better to wrongly assume a command can't be run in parallelthan the opposite. Currently the only POST_DATA object type that'ssafe is CREATE INDEX ... and that list hasn't changed in a long time.Back-patch to 9.5 where RLS came in.Discussion:https://postgr.es/m/11450.1535483506@sss.pgh.pa.us1 parent8cff4f5 commite0a0cc2
1 file changed
+14
-6
lines changedLines changed: 14 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4589 | 4589 |
| |
4590 | 4590 |
| |
4591 | 4591 |
| |
| 4592 | + | |
| 4593 | + | |
| 4594 | + | |
| 4595 | + | |
| 4596 | + | |
| 4597 | + | |
| 4598 | + | |
4592 | 4599 |
| |
4593 | 4600 |
| |
4594 | 4601 |
| |
4595 | 4602 |
| |
4596 |
| - | |
4597 |
| - | |
4598 |
| - | |
4599 |
| - | |
4600 |
| - | |
4601 |
| - | |
| 4603 | + | |
| 4604 | + | |
| 4605 | + | |
| 4606 | + | |
| 4607 | + | |
| 4608 | + | |
| 4609 | + | |
4602 | 4610 |
| |
4603 | 4611 |
| |
4604 | 4612 |
| |
|
0 commit comments
Comments
(0)