postgresql/src
Nathan Bossart c8b06bb969 Introduce pg_sequence_read_tuple().
This new function returns the data for the given sequence, i.e.,
the values within the sequence tuple.  Since this function is a
substitute for SELECT from the sequence, the SELECT privilege is
required on the sequence in question.  It returns all NULLs for
sequences for which we lack privileges, other sessions' temporary
sequences, and unlogged sequences on standbys.

This function is primarily intended for use by pg_dump in a
follow-up commit that will use it to optimize dumpSequenceData().
Like pg_sequence_last_value(), which is a support function for the
pg_sequences system view, pg_sequence_read_tuple() is left
undocumented.

Bumps catversion.

Reviewed-by: Michael Paquier, Tom Lane
Discussion: https://postgr.es/m/20240503025140.GA1227404%40nathanxps13
2024-07-31 10:12:42 -05:00
..
backend Introduce pg_sequence_read_tuple(). 2024-07-31 10:12:42 -05:00
bin Improve performance of dumpSequence(). 2024-07-31 10:12:42 -05:00
common Replace some strtok() with strsep() 2024-07-22 15:45:46 +02:00
fe_utils Fix PL/pgSQL's handling of integer ranges containing underscores. 2024-06-04 11:48:01 +01:00
include Introduce pg_sequence_read_tuple(). 2024-07-31 10:12:42 -05:00
interfaces libpq: Use strerror_r instead of strerror 2024-07-28 09:23:24 +02:00
makefiles Optimize pg_popcount() with AVX-512 instructions. 2024-04-06 21:56:23 -05:00
pl Add extern declarations for Bison global variables 2024-07-25 09:26:08 +02:00
port Add port/ replacement for strsep() 2024-07-22 09:50:30 +02:00
template Remove AIX support 2024-02-28 15:17:23 +04:00
test Introduce pg_sequence_read_tuple(). 2024-07-31 10:12:42 -05:00
timezone Update time zone data files to tzdata release 2024a. 2024-02-01 15:57:53 -05:00
tools Improve performance of dumpSequence(). 2024-07-31 10:12:42 -05:00
tutorial Update copyright for 2024 2024-01-03 20:49:05 -05:00
.gitignore
DEVELOPERS
Makefile Remove distprep 2023-11-06 15:18:04 +01:00
Makefile.global.in Apply COPT to CXXFLAGS as well 2024-07-01 07:30:55 +02:00
Makefile.shlib Remove AIX support 2024-02-28 15:17:23 +04:00
meson.build Update copyright for 2024 2024-01-03 20:49:05 -05:00
nls-global.mk Remove distprep 2023-11-06 15:18:04 +01:00