Code cleanup for assign_transaction_read_only.
authorRobert Haas <rhaas@postgresql.org>
Sun, 23 Jan 2011 01:51:32 +0000 (20:51 -0500)
committerRobert Haas <rhaas@postgresql.org>
Sun, 23 Jan 2011 01:55:50 +0000 (20:55 -0500)
commit6f59777c65d557485e933a383ebc4c3fdfc1a2b7
treeb5ce0b0f7d50c18b09e38b75b2a43082bf4deac3
parentcc73c160507588bdc5822d7f2bb79d6b3a386761
Code cleanup for assign_transaction_read_only.

As in commit fb4c5d2798730f60b102d775f22fb53c26a6445d on 2011-01-21,
this avoids spurious debug messages and allows idempotent changes at
any time.  Along the way, make assign_XactIsoLevel allow idempotent
changes even when not within a subtransaction, to be consistent with
the new coding of assign_transaction_read_only and because there's
no compelling reason to do otherwise.

Kevin Grittner, with some adjustments.
src/backend/commands/variable.c
src/backend/utils/misc/guc.c
src/include/commands/variable.h
src/test/regress/expected/transactions.out
src/test/regress/sql/transactions.sql