diff options
author | Robert Haas <rhaas@postgresql.org> | 2011-01-22 20:51:32 -0500 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2011-01-22 20:55:50 -0500 |
commit | 6f59777c65d557485e933a383ebc4c3fdfc1a2b7 (patch) | |
tree | b5ce0b0f7d50c18b09e38b75b2a43082bf4deac3 /src/include/commands/variable.h | |
parent | cc73c160507588bdc5822d7f2bb79d6b3a386761 (diff) |
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.
Diffstat (limited to 'src/include/commands/variable.h')
-rw-r--r-- | src/include/commands/variable.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/commands/variable.h b/src/include/commands/variable.h index 7ac8ed8f9f7..2fc144e1e12 100644 --- a/src/include/commands/variable.h +++ b/src/include/commands/variable.h @@ -21,6 +21,8 @@ extern const char *show_timezone(void); extern const char *assign_log_timezone(const char *value, bool doit, GucSource source); extern const char *show_log_timezone(void); +extern bool assign_transaction_read_only(bool value, + bool doit, GucSource source); extern const char *assign_XactIsoLevel(const char *value, bool doit, GucSource source); extern const char *show_XactIsoLevel(void); |