Commit ab82340
committed
Avoid permission failure in pg_sequences.last_value
Before, reading pg_sequences.last_value would fail unless the user had
appropriate sequence permissions, which would make the pg_sequences view
cumbersome to use. Instead, return null instead of the real value when
there are no permissions.
From: Michael Paquier <michael.paquier@gmail.com>
Reported-by: Shinoda, Noriyoshi <noriyoshi.shinoda@hpe.com>1 parent ad6af3f commit ab82340
File tree
3 files changed
+13
-3
lines changed- doc/src/sgml
- src
- backend/catalog
- test/regress/expected
3 files changed
+13
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9882 | 9882 | | |
9883 | 9883 | | |
9884 | 9884 | | |
9885 | | - | |
| 9885 | + | |
| 9886 | + | |
| 9887 | + | |
| 9888 | + | |
9886 | 9889 | | |
9887 | 9890 | | |
9888 | 9891 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
179 | 183 | | |
180 | 184 | | |
181 | 185 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1647 | 1647 | | |
1648 | 1648 | | |
1649 | 1649 | | |
1650 | | - | |
| 1650 | + | |
| 1651 | + | |
| 1652 | + | |
| 1653 | + | |
1651 | 1654 | | |
1652 | 1655 | | |
1653 | 1656 | | |
| |||
0 commit comments