pgsql: Code cleanup for assign_transaction_read_only.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Code cleanup for assign_transaction_read_only.
Date: 2011-01-23 01:55:59
Message-ID: E1PgpBP-0001Vm-Ay@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=6f59777c65d557485e933a383ebc4c3fdfc1a2b7

Modified Files
--------------
src/backend/commands/variable.c | 53 +++++++++++++++++++-
src/backend/utils/misc/guc.c | 29 -----------
src/include/commands/variable.h | 2 +
src/test/regress/expected/transactions.out | 75 ++++++++++++++++++++++++++++
src/test/regress/sql/transactions.sql | 42 +++++++++++++++
5 files changed, 170 insertions(+), 31 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Magnus Hagander 2011-01-23 11:33:27 pgsql: Add pg_basebackup tool for streaming base backups
Previous Message Tom Lane 2011-01-23 01:44:10 pgsql: Quick hack to un-break plpython regression tests.