The session_replication_role actually can be changed at will during
authorJan Wieck <JanWieck@Yahoo.com>
Tue, 5 Jun 2007 20:00:41 +0000 (20:00 +0000)
committerJan Wieck <JanWieck@Yahoo.com>
Tue, 5 Jun 2007 20:00:41 +0000 (20:00 +0000)
commit960cce2d1b5405a82ddbeeebfc68d276d1ae3197
tree3bfa2a574c2c81b99e6acffd079d6670bb320cf5
parent753ad29e7bac93309b5943d7ed5a27f3c0c9f175
The session_replication_role actually can be changed at will during
a session regardless of the existence of cached plans. The plancache
only needs to be invalidated so that rules affected by the new setting
will be reflected in the new query plans.

Jan
src/backend/utils/cache/plancache.c
src/backend/utils/misc/guc.c
src/include/utils/plancache.h