postgresql/src/backend
Amit Kapila 29abde637b Don't allow to set replication slot_name as ''.
We don't allow to create replication slot_name as an empty string ('') via
SQL API pg_create_logical_replication_slot() but it is allowed to be set
via Alter Subscription command. This will lead to apply worker repeatedly
keep trying to stream data via slot_name '' and the user is not allowed to
create the slot with that name.

Author: Japin Li
Reviewed-By: Ranier Vilela, Amit Kapila
Backpatch-through: 10, where it was introduced
Discussion: https://postgr.es/m/MEYP282MB1669CBD98E721C77CA696499B61A9@MEYP282MB1669.AUSP282.PROD.OUTLOOK.COM
2021-07-19 10:36:15 +05:30
..
access Advance old-segment horizon properly after slot invalidation 2021-07-16 12:07:30 -04:00
bootstrap Rethink definition of pg_attribute.attcompression. 2021-05-27 13:24:27 -04:00
catalog Replace explicit PIN entries in pg_depend with an OID range test. 2021-07-15 11:41:47 -04:00
commands Don't allow to set replication slot_name as ''. 2021-07-19 10:36:15 +05:30
executor Change the name of the Result Cache node to Memoize 2021-07-14 12:43:58 +12:00
foreign Update copyright for 2021 2021-01-02 13:06:25 -05:00
jit Prepare for forthcoming LLVM 13 API change. 2021-06-25 11:28:20 +12:00
lib Fix typo in comment 2021-04-20 14:35:16 +02:00
libpq Add more sanity checks in SASL exchanges 2021-07-10 21:45:28 +09:00
main Update copyright for 2021 2021-01-02 13:06:25 -05:00
nodes Change the name of the Result Cache node to Memoize 2021-07-14 12:43:58 +12:00
optimizer Replace explicit PIN entries in pg_depend with an OID range test. 2021-07-15 11:41:47 -04:00
parser Improve reporting of "conflicting or redundant options" errors. 2021-07-15 08:49:45 +01:00
partitioning Remove unused function parameter in get_qual_from_partbound 2021-07-14 09:52:04 -04:00
po Translation updates 2021-06-21 12:33:50 +02:00
port Initial pgindent and pgperltidy run for v14. 2021-05-12 13:14:10 -04:00
postmaster Remove unnecessary assertion in postmaster.c 2021-07-15 15:00:45 +09:00
regex Fix performance issue in new regex match-all detection code. 2021-05-03 11:42:31 -04:00
replication Advance old-segment horizon properly after slot invalidation 2021-07-16 12:07:30 -04:00
rewrite Reject cases where a query in WITH rewrites to just NOTIFY. 2021-07-09 11:02:26 -04:00
snowball Update snowball 2021-02-19 08:10:15 +01:00
statistics Error message refactoring 2021-06-27 09:41:16 +02:00
storage Adjust commit 2dbe8905 for ancient macOS. 2021-07-19 16:50:21 +12:00
tcop Improve reporting of "conflicting or redundant options" errors. 2021-07-15 08:49:45 +01:00
tsearch Improve various places that double the size of a buffer 2021-07-01 15:29:06 +12:00
utils Support for unnest(multirange) 2021-07-18 21:07:24 +03:00
.gitignore
Makefile Use sort_template.h for qsort_tuple() and qsort_ssup(). 2021-03-03 17:02:32 +13:00
common.mk Remove PARTIAL_LINKING build mode. 2018-03-30 17:33:04 -07:00
nls.mk Translation updates 2021-05-10 14:36:21 +02:00