Skip to content
Snippets Groups Projects
Commit ab82340a authored by Peter Eisentraut's avatar Peter Eisentraut
Browse files

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: default avatarShinoda, Noriyoshi <noriyoshi.shinoda@hpe.com>
parent ad6af3fc
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment