postgresql/src/backend
Tom Lane ebfe20dc70 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
2019-01-25 21:14:49 -05:00
..
access Simplify restriction handling of two-phase commit for temporary objects 2019-01-26 10:45:23 +09:00
bootstrap Remove argument isprimary from index_build() 2019-01-24 07:57:09 +09:00
catalog Fix droppability of constraints upon partition detach 2019-01-24 14:09:56 -03:00
commands Simplify restriction handling of two-phase commit for temporary objects 2019-01-26 10:45:23 +09:00
executor Fix misc typos in comments. 2019-01-23 13:39:00 +02:00
foreign Update copyright for 2019 2019-01-02 12:44:25 -05:00
jit llvm: Fix file-ending in IDENTIFICATION comments. 2019-01-22 11:49:48 -08:00
lib Update copyright for 2019 2019-01-02 12:44:25 -05:00
libpq Update copyright for 2019 2019-01-02 12:44:25 -05:00
main Replace @postgresql.org with @lists.postgresql.org for mailinglists 2019-01-19 19:06:35 +01:00
nodes Split QTW_EXAMINE_RTES flag into QTW_EXAMINE_RTES_BEFORE/_AFTER. 2019-01-25 17:09:45 -05:00
optimizer Split QTW_EXAMINE_RTES flag into QTW_EXAMINE_RTES_BEFORE/_AFTER. 2019-01-25 17:09:45 -05:00
parser Allow generalized expression syntax for partition bounds 2019-01-25 11:28:49 +01:00
partitioning Replace uses of heap_open et al with the corresponding table_* function. 2019-01-21 10:51:37 -08:00
po Translation updates 2018-06-25 12:37:18 +02:00
port Update copyright for 2019 2019-01-02 12:44:25 -05:00
postmaster Remove superfluous tqual.h includes. 2019-01-21 12:15:02 -08:00
regex Update copyright for 2019 2019-01-02 12:44:25 -05:00
replication Move remaining code from tqual.[ch] to heapam.h / heapam_visibility.c. 2019-01-21 17:07:10 -08:00
rewrite Split QTW_EXAMINE_RTES flag into QTW_EXAMINE_RTES_BEFORE/_AFTER. 2019-01-25 17:09:45 -05:00
snowball Update copyright for 2019 2019-01-02 12:44:25 -05:00
statistics Replace uses of heap_open et al with the corresponding table_* function. 2019-01-21 10:51:37 -08:00
storage Move remaining code from tqual.[ch] to heapam.h / heapam_visibility.c. 2019-01-21 17:07:10 -08:00
tcop Allow UNLISTEN in hot-standby mode. 2019-01-25 21:14:49 -05:00
tsearch Update copyright for 2019 2019-01-02 12:44:25 -05:00
utils Teach nulltestsel() that system columns are never NULL. 2019-01-25 11:44:26 -05:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
Makefile Ensure link commands list *.o files before LDFLAGS. 2019-01-02 13:57:54 -05:00
common.mk Remove PARTIAL_LINKING build mode. 2018-03-30 17:33:04 -07:00
nls.mk Translation updates 2018-06-25 12:37:18 +02:00