pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Allow UNLISTEN in hot-standby mode.
6+ messages / 1 participants
[nested] [flat]

* pgsql: Allow UNLISTEN in hot-standby mode.
@ 2019-01-26 02:15  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2019-01-26 02:15 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Allow UNLISTEN in hot-standby mode.

Since LISTEN is (still) disallowed, UNLISTEN must be a no-op in a
hot-standby session, and so there's no harm in allowing it.  This
change allows client code to not worry about whether it's connected
to a primary or standby server when performing session-state-reset
type activities.  (Note that DISCARD ALL, which includes UNLISTEN,
was already allowed, making it inconsistent to reject UNLISTEN.)

Per discussion, back-patch to all supported versions.

Shay Rojansky, reviewed by Mi Tar

Discussion: https://postgr.es/m/CADT4RqCf2gA_TJtPAjnGzkC3ZiexfBZiLmA-mV66e4UyuVv8bA@mail.gmail.com

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/0d5b2735122557417e24a73f92a518638d2a5a32

Modified Files
--------------
doc/src/sgml/high-availability.sgml                 | 11 ++++++++---
src/backend/tcop/utility.c                          |  2 +-
src/test/regress/expected/hs_standby_allowed.out    |  3 +++
src/test/regress/expected/hs_standby_disallowed.out |  4 ----
src/test/regress/sql/hs_standby_allowed.sql         |  4 ++++
src/test/regress/sql/hs_standby_disallowed.sql      |  2 --
6 files changed, 16 insertions(+), 10 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Allow UNLISTEN in hot-standby mode.
@ 2019-01-26 02:15  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2019-01-26 02:15 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Allow UNLISTEN in hot-standby mode.

Since LISTEN is (still) disallowed, UNLISTEN must be a no-op in a
hot-standby session, and so there's no harm in allowing it.  This
change allows client code to not worry about whether it's connected
to a primary or standby server when performing session-state-reset
type activities.  (Note that DISCARD ALL, which includes UNLISTEN,
was already allowed, making it inconsistent to reject UNLISTEN.)

Per discussion, back-patch to all supported versions.

Shay Rojansky, reviewed by Mi Tar

Discussion: https://postgr.es/m/CADT4RqCf2gA_TJtPAjnGzkC3ZiexfBZiLmA-mV66e4UyuVv8bA@mail.gmail.com

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/e8ec19cd13a5794ed8a9cd2fb187bcbfc48811d8

Modified Files
--------------
doc/src/sgml/high-availability.sgml                 | 11 ++++++++---
src/backend/tcop/utility.c                          |  2 +-
src/test/regress/expected/hs_standby_allowed.out    |  3 +++
src/test/regress/expected/hs_standby_disallowed.out |  4 ----
src/test/regress/sql/hs_standby_allowed.sql         |  4 ++++
src/test/regress/sql/hs_standby_disallowed.sql      |  2 --
6 files changed, 16 insertions(+), 10 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Allow UNLISTEN in hot-standby mode.
@ 2019-01-26 02:15  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2019-01-26 02:15 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Allow UNLISTEN in hot-standby mode.

Since LISTEN is (still) disallowed, UNLISTEN must be a no-op in a
hot-standby session, and so there's no harm in allowing it.  This
change allows client code to not worry about whether it's connected
to a primary or standby server when performing session-state-reset
type activities.  (Note that DISCARD ALL, which includes UNLISTEN,
was already allowed, making it inconsistent to reject UNLISTEN.)

Per discussion, back-patch to all supported versions.

Shay Rojansky, reviewed by Mi Tar

Discussion: https://postgr.es/m/CADT4RqCf2gA_TJtPAjnGzkC3ZiexfBZiLmA-mV66e4UyuVv8bA@mail.gmail.com

Branch
------
REL9_5_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/741ee48900c5bbf970f23d32e49020408e417bdc

Modified Files
--------------
doc/src/sgml/high-availability.sgml                 | 11 ++++++++---
src/backend/tcop/utility.c                          |  2 +-
src/test/regress/expected/hs_standby_allowed.out    |  3 +++
src/test/regress/expected/hs_standby_disallowed.out |  4 ----
src/test/regress/sql/hs_standby_allowed.sql         |  4 ++++
src/test/regress/sql/hs_standby_disallowed.sql      |  2 --
6 files changed, 16 insertions(+), 10 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Allow UNLISTEN in hot-standby mode.
@ 2019-01-26 02:15  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2019-01-26 02:15 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Allow UNLISTEN in hot-standby mode.

Since LISTEN is (still) disallowed, UNLISTEN must be a no-op in a
hot-standby session, and so there's no harm in allowing it.  This
change allows client code to not worry about whether it's connected
to a primary or standby server when performing session-state-reset
type activities.  (Note that DISCARD ALL, which includes UNLISTEN,
was already allowed, making it inconsistent to reject UNLISTEN.)

Per discussion, back-patch to all supported versions.

Shay Rojansky, reviewed by Mi Tar

Discussion: https://postgr.es/m/CADT4RqCf2gA_TJtPAjnGzkC3ZiexfBZiLmA-mV66e4UyuVv8bA@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/ebfe20dc706bd3238a9bdf3b44cd8f82337e86a8

Modified Files
--------------
doc/src/sgml/high-availability.sgml                 | 11 ++++++++---
src/backend/tcop/utility.c                          |  2 +-
src/test/regress/expected/hs_standby_allowed.out    |  3 +++
src/test/regress/expected/hs_standby_disallowed.out |  4 ----
src/test/regress/sql/hs_standby_allowed.sql         |  4 ++++
src/test/regress/sql/hs_standby_disallowed.sql      |  2 --
6 files changed, 16 insertions(+), 10 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Allow UNLISTEN in hot-standby mode.
@ 2019-01-26 02:15  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2019-01-26 02:15 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Allow UNLISTEN in hot-standby mode.

Since LISTEN is (still) disallowed, UNLISTEN must be a no-op in a
hot-standby session, and so there's no harm in allowing it.  This
change allows client code to not worry about whether it's connected
to a primary or standby server when performing session-state-reset
type activities.  (Note that DISCARD ALL, which includes UNLISTEN,
was already allowed, making it inconsistent to reject UNLISTEN.)

Per discussion, back-patch to all supported versions.

Shay Rojansky, reviewed by Mi Tar

Discussion: https://postgr.es/m/CADT4RqCf2gA_TJtPAjnGzkC3ZiexfBZiLmA-mV66e4UyuVv8bA@mail.gmail.com

Branch
------
REL9_4_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/549d2a238a7062c3f0647f96fc00d21c6c103ce1

Modified Files
--------------
doc/src/sgml/high-availability.sgml                 | 11 ++++++++---
src/backend/tcop/utility.c                          |  2 +-
src/test/regress/expected/hs_standby_allowed.out    |  3 +++
src/test/regress/expected/hs_standby_disallowed.out |  4 ----
src/test/regress/sql/hs_standby_allowed.sql         |  4 ++++
src/test/regress/sql/hs_standby_disallowed.sql      |  2 --
6 files changed, 16 insertions(+), 10 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Allow UNLISTEN in hot-standby mode.
@ 2019-01-26 02:15  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2019-01-26 02:15 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Allow UNLISTEN in hot-standby mode.

Since LISTEN is (still) disallowed, UNLISTEN must be a no-op in a
hot-standby session, and so there's no harm in allowing it.  This
change allows client code to not worry about whether it's connected
to a primary or standby server when performing session-state-reset
type activities.  (Note that DISCARD ALL, which includes UNLISTEN,
was already allowed, making it inconsistent to reject UNLISTEN.)

Per discussion, back-patch to all supported versions.

Shay Rojansky, reviewed by Mi Tar

Discussion: https://postgr.es/m/CADT4RqCf2gA_TJtPAjnGzkC3ZiexfBZiLmA-mV66e4UyuVv8bA@mail.gmail.com

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/c0aed6959541f1ce3930977c8cf8dd874308a1b5

Modified Files
--------------
doc/src/sgml/high-availability.sgml                 | 11 ++++++++---
src/backend/tcop/utility.c                          |  2 +-
src/test/regress/expected/hs_standby_allowed.out    |  3 +++
src/test/regress/expected/hs_standby_disallowed.out |  4 ----
src/test/regress/sql/hs_standby_allowed.sql         |  4 ++++
src/test/regress/sql/hs_standby_disallowed.sql      |  2 --
6 files changed, 16 insertions(+), 10 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2019-01-26 02:15 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-01-26 02:15 pgsql: Allow UNLISTEN in hot-standby mode. Tom Lane <tgl@sss.pgh.pa.us>
2019-01-26 02:15 pgsql: Allow UNLISTEN in hot-standby mode. Tom Lane <tgl@sss.pgh.pa.us>
2019-01-26 02:15 pgsql: Allow UNLISTEN in hot-standby mode. Tom Lane <tgl@sss.pgh.pa.us>
2019-01-26 02:15 pgsql: Allow UNLISTEN in hot-standby mode. Tom Lane <tgl@sss.pgh.pa.us>
2019-01-26 02:15 pgsql: Allow UNLISTEN in hot-standby mode. Tom Lane <tgl@sss.pgh.pa.us>
2019-01-26 02:15 pgsql: Allow UNLISTEN in hot-standby mode. Tom Lane <tgl@sss.pgh.pa.us>

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