- Notifications
You must be signed in to change notification settings - Fork5
Commit1489e2f
committed
Improve behavior of concurrent ALTER TABLE, and do some refactoring.
ALTER TABLE (and ALTER VIEW, ALTER SEQUENCE, etc.) now use aRangeVarGetRelid callback to check permissions before acquiring a tablelock. We also now use the same callback for all forms of ALTER TABLE,rather than having separate, almost-identical callbacks for ALTER TABLE.. SET SCHEMA and ALTER TABLE .. RENAME, and no callback at all foreverything else.I went ahead and changed the code so that no form of ALTER TABLE workson foreign tables; you must use ALTER FOREIGN TABLE instead. In 9.1,it was possible to use ALTER TABLE .. SET SCHEMA or ALTER TABLE ..RENAME on a foreign table, but not any other form of ALTER TABLE, whichdid not seem terribly useful or consistent.Patch by me; review by Noah Misch.1 parent33aaa13 commit1489e2f
File tree
4 files changed
+170
-254
lines changed- src
- backend
- commands
- tcop
- include/commands
4 files changed
+170
-254
lines changedLines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
192 | 192 |
| |
193 | 193 |
| |
194 | 194 |
| |
195 |
| - | |
196 |
| - | |
| 195 | + | |
197 | 196 |
| |
198 | 197 |
| |
199 | 198 |
| |
|
0 commit comments
Comments
(0)