git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 1afe31f) | patch
Remove redundant privilege check from pg_sequences system view.
Mon, 1 Jul 2024 16:47:40 +0000 (11:47 -0500)
Mon, 1 Jul 2024 16:47:40 +0000 (11:47 -0500)
commit 7967d10c5b49ccb82f67a0b80678a1a932bccdee
Remove redundant privilege check from pg_sequences system view.

This commit adjusts pg_sequence_last_value() to return NULL instead
of ERROR-ing for sequences for which the current user lacks
privileges. This allows us to remove the call to
has_sequence_privilege() in the definition of the pg_sequences
system view.

Bumps catversion.

Suggested-by: Michael Paquier
Reviewed-by: Michael Paquier, Tom Lane
Discussion: https://postgr.es/m/20240501005730.GA594666%40nathanxps13
src/backend/catalog/system_views.sql diff | blob | blame | history
src/backend/commands/sequence.c diff | blob | blame | history
src/include/catalog/catversion.h diff | blob | blame | history
src/test/regress/expected/rules.out diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /