pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedpgsql: Don't allow to set replication slot_name as ''.
6+ messages / 1 participants
[nested] [flat]
* pgsql: Don't allow to set replication slot_name as ''.
@ 2021-07-19 06:10 Amit Kapila <akapila@postgresql.org>
0 siblings, 0 replies; 6+ messages in thread
From: Amit Kapila @ 2021-07-19 06:10 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
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
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/29abde637bbb4b8fcdc96e049813890afa5ab671
Modified Files
--------------
src/backend/commands/subscriptioncmds.c | 2 ++
src/test/regress/expected/subscription.out | 3 +++
src/test/regress/sql/subscription.sql | 3 +++
3 files changed, 8 insertions(+)
^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Don't allow to set replication slot_name as ''.
@ 2021-07-19 06:10 Amit Kapila <akapila@postgresql.org>
0 siblings, 0 replies; 6+ messages in thread
From: Amit Kapila @ 2021-07-19 06:10 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
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
Branch
------
REL_14_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/40295d158fd4d462c55e6debae19dcd43ab530a6
Modified Files
--------------
src/backend/commands/subscriptioncmds.c | 2 ++
src/test/regress/expected/subscription.out | 3 +++
src/test/regress/sql/subscription.sql | 3 +++
3 files changed, 8 insertions(+)
^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Don't allow to set replication slot_name as ''.
@ 2021-07-19 06:10 Amit Kapila <akapila@postgresql.org>
0 siblings, 0 replies; 6+ messages in thread
From: Amit Kapila @ 2021-07-19 06:10 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
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
Branch
------
REL_13_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/bfa2a926daf812bbda2038aec073344693954f16
Modified Files
--------------
src/backend/commands/subscriptioncmds.c | 3 +++
src/test/regress/expected/subscription.out | 3 +++
src/test/regress/sql/subscription.sql | 3 +++
3 files changed, 9 insertions(+)
^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Don't allow to set replication slot_name as ''.
@ 2021-07-19 06:10 Amit Kapila <akapila@postgresql.org>
0 siblings, 0 replies; 6+ messages in thread
From: Amit Kapila @ 2021-07-19 06:10 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
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
Branch
------
REL_12_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/f2f459f182fc8b1af44e422e2324b7acd5ee2408
Modified Files
--------------
src/backend/commands/subscriptioncmds.c | 3 +++
src/test/regress/expected/subscription.out | 3 +++
src/test/regress/sql/subscription.sql | 3 +++
3 files changed, 9 insertions(+)
^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Don't allow to set replication slot_name as ''.
@ 2021-07-19 06:10 Amit Kapila <akapila@postgresql.org>
0 siblings, 0 replies; 6+ messages in thread
From: Amit Kapila @ 2021-07-19 06:10 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
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
Branch
------
REL_11_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/eb158e74afafd052339729efd179dbf74ecd9683
Modified Files
--------------
src/backend/commands/subscriptioncmds.c | 3 +++
src/test/regress/expected/subscription.out | 3 +++
src/test/regress/sql/subscription.sql | 3 +++
3 files changed, 9 insertions(+)
^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Don't allow to set replication slot_name as ''.
@ 2021-07-19 06:10 Amit Kapila <akapila@postgresql.org>
0 siblings, 0 replies; 6+ messages in thread
From: Amit Kapila @ 2021-07-19 06:10 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
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
Branch
------
REL_10_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/22fd784afda38017137d88d75bfd5d91743cac19
Modified Files
--------------
src/backend/commands/subscriptioncmds.c | 3 +++
src/test/regress/expected/subscription.out | 3 +++
src/test/regress/sql/subscription.sql | 3 +++
3 files changed, 9 insertions(+)
^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2021-07-19 06:10 UTC | newest]
Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-07-19 06:10 pgsql: Don't allow to set replication slot_name as ''. Amit Kapila <akapila@postgresql.org>
2021-07-19 06:10 pgsql: Don't allow to set replication slot_name as ''. Amit Kapila <akapila@postgresql.org>
2021-07-19 06:10 pgsql: Don't allow to set replication slot_name as ''. Amit Kapila <akapila@postgresql.org>
2021-07-19 06:10 pgsql: Don't allow to set replication slot_name as ''. Amit Kapila <akapila@postgresql.org>
2021-07-19 06:10 pgsql: Don't allow to set replication slot_name as ''. Amit Kapila <akapila@postgresql.org>
2021-07-19 06:10 pgsql: Don't allow to set replication slot_name as ''. Amit Kapila <akapila@postgresql.org>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox