forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7967d10
committed
Remove redundant privilege check from pg_sequences system view.
This commit adjusts pg_sequence_last_value() to return NULL insteadof ERROR-ing for sequences for which the current user lacksprivileges. This allows us to remove the call tohas_sequence_privilege() in the definition of the pg_sequencessystem view.Bumps catversion.Suggested-by: Michael PaquierReviewed-by: Michael Paquier, Tom LaneDiscussion:https://postgr.es/m/20240501005730.GA594666%40nathanxps131 parent1afe31f commit7967d10
File tree
4 files changed
+7
-18
lines changed- src
- backend
- catalog
- commands
- include/catalog
- test/regress/expected
4 files changed
+7
-18
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
176 | 176 |
| |
177 | 177 |
| |
178 | 178 |
| |
179 |
| - | |
180 |
| - | |
181 |
| - | |
182 |
| - | |
183 |
| - | |
| 179 | + | |
184 | 180 |
| |
185 | 181 |
| |
186 | 182 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1790 | 1790 |
| |
1791 | 1791 |
| |
1792 | 1792 |
| |
1793 |
| - | |
1794 |
| - | |
1795 |
| - | |
1796 |
| - | |
1797 |
| - | |
1798 |
| - | |
1799 | 1793 |
| |
1800 | 1794 |
| |
1801 | 1795 |
| |
1802 | 1796 |
| |
1803 | 1797 |
| |
1804 | 1798 |
| |
1805 |
| - | |
| 1799 | + | |
| 1800 | + | |
1806 | 1801 |
| |
1807 |
| - | |
| 1802 | + | |
| 1803 | + | |
1808 | 1804 |
| |
1809 | 1805 |
| |
1810 | 1806 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
57 | 57 |
| |
58 | 58 |
| |
59 | 59 |
| |
60 |
| - | |
| 60 | + | |
61 | 61 |
| |
62 | 62 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1700 | 1700 |
| |
1701 | 1701 |
| |
1702 | 1702 |
| |
1703 |
| - | |
1704 |
| - | |
1705 |
| - | |
1706 |
| - | |
| 1703 | + | |
1707 | 1704 |
| |
1708 | 1705 |
| |
1709 | 1706 |
| |
|
0 commit comments
Comments
(0)