Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Bossart2024-07-01 16:47:40 +0000
committerNathan Bossart2024-07-01 16:47:40 +0000
commit7967d10c5b49ccb82f67a0b80678a1a932bccdee (patch)
tree3707d09709af9ec96cacd80e6707ae3da0443d56 /src/include
parent1afe31f03cd268a0bbb7a340d56b8eef6419bcb0 (diff)
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
Diffstat (limited to 'src/include')
-rw-r--r--src/include/catalog/catversion.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/catalog/catversion.h b/src/include/catalog/catversion.h
index 7363a445fc4..969980afd69 100644
--- a/src/include/catalog/catversion.h
+++ b/src/include/catalog/catversion.h
@@ -57,6 +57,6 @@
*/
/* yyyymmddN */
-#define CATALOG_VERSION_NO 202407011
+#define CATALOG_VERSION_NO 202407012
#endif