From: | Nathan Bossart <nathan(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Remove redundant privilege check from pg_sequences system view. |
Date: | 2024-07-01 16:49:44 |
Message-ID: | E1sOKDo-003oV8-2s@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/7967d10c5b49ccb82f67a0b80678a1a932bccdee
Modified Files
--------------
src/backend/catalog/system_views.sql | 6 +-----
src/backend/commands/sequence.c | 12 ++++--------
src/include/catalog/catversion.h | 2 +-
src/test/regress/expected/rules.out | 5 +----
4 files changed, 7 insertions(+), 18 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2024-07-01 17:56:08 | pgsql: Remove support for HPPA (a/k/a PA-RISC) architecture. |
Previous Message | Heikki Linnakangas | 2024-07-01 16:33:22 | pgsql: Fix missing installation/uninstallation rules for BackgroundPsql |