postgresql/src/backend/utils
Amit Kapila 0bf62460bb Fix issues in binary_upgrade_logical_slot_has_caught_up().
The commit 29d0a77fa6 labelled binary_upgrade_logical_slot_has_caught_up()
as a non-strict function to allow providing a better error message to callers
in case the passed slot_name is NULL. On further discussion, it seems that
it is not helpful to have a different error message for NULL input in this
function, so this patch marks the function as strict.

This patch also removes the explicit permission check to use replication
slots as this function is invoked only by superusers and instead adds an
Assert.

Reported-by: Masahiko Sawada
Author: Hayato Kuroda
Reviewed-by: Vignesh C
Discussion: https://postgr.es/m/CAD21AoDSyiBKkMXBxN_gUayZZUCOgyHnG8Ge8rcPXNP3Tf6B4g@mail.gmail.com
2023-12-07 08:42:48 +05:30
..
activity Remove distprep 2023-11-06 15:18:04 +01:00
adt Fix issues in binary_upgrade_logical_slot_has_caught_up(). 2023-12-07 08:42:48 +05:30
cache Retire MemoryContextResetAndDeleteChildren() macro. 2023-11-15 13:42:30 -06:00
error Retire MemoryContextResetAndDeleteChildren() macro. 2023-11-15 13:42:30 -06:00
fmgr Apply quotes more consistently to GUC names in logs 2023-11-30 14:11:45 +09:00
hash Update copyright for 2023 2023-01-02 15:00:37 -05:00
init Adjust obsolete comment explaining set_stack_base(). 2023-12-01 15:18:51 +13:00
mb Teach convert() and friends to avoid copying when possible. 2023-12-04 11:55:18 -06:00
misc Apply quotes more consistently to GUC names in logs 2023-11-30 14:11:45 +09:00
mmgr Fix dsa.c with different resource owners. 2023-11-15 10:34:28 +01:00
resowner Fix bug in the new ResourceOwner implementation. 2023-11-09 01:33:14 +02:00
sort Change logtape/tuplestore code to use int64 for block numbers 2023-11-17 11:20:53 +09:00
time Make ResourceOwners more easily extensible. 2023-11-08 13:30:50 +02:00
.gitignore Rearrange makefile rules for running Gen_fmgrtab.pl. 2018-05-03 17:54:18 -04:00
Gen_dummy_probes.pl Replace Gen_dummy_probes.sed with Gen_dummy_probes.pl 2023-11-14 10:27:10 +01:00
Gen_fmgrtab.pl Pre-beta mechanical code beautification. 2023-05-19 17:24:48 -04:00
Makefile Replace Gen_dummy_probes.sed with Gen_dummy_probes.pl 2023-11-14 10:27:10 +01:00
errcodes.txt Remove the "snapshot too old" feature. 2023-09-05 19:53:43 +12:00
generate-errcodes.pl Pre-beta mechanical code beautification. 2023-05-19 17:24:48 -04:00
meson.build Update copyright for 2023 2023-01-02 15:00:37 -05:00
postprocess_dtrace.sed Update copyright for 2023 2023-01-02 15:00:37 -05:00
probes.d bufmgr: Introduce infrastructure for faster relation extension 2023-04-05 16:21:09 -07:00