Skip to content

sql: add transaction_read_only variable#19966

Merged
knz merged 1 commit intocockroachdb:masterfrom
bsnyder788:add-transaction-read-only-var
Nov 10, 2017
Merged

sql: add transaction_read_only variable#19966
knz merged 1 commit intocockroachdb:masterfrom
bsnyder788:add-transaction-read-only-var

Conversation

@bsnyder788
Copy link
Copy Markdown
Contributor

Closes #19911. @justinj this should address adding the read-only transaction_read_only variable.

@bsnyder788 bsnyder788 requested review from a team November 10, 2017 16:07
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@knz
Copy link
Copy Markdown
Contributor

knz commented Nov 10, 2017

Very good. Solid change. LGTM.

Thanks for your contribution!

@knz knz merged commit 7cd7ece into cockroachdb:master Nov 10, 2017
@justinj
Copy link
Copy Markdown
Contributor

justinj commented Nov 10, 2017

It actually looks to me like when this is not true PG outputs "off" rather than "false":

justin=# show transaction_read_only;
 transaction_read_only
-----------------------
 off
(1 row)

I should have checked this before opening the original issue, but could we fix this to match that behaviour?

@bsnyder788
Copy link
Copy Markdown
Contributor Author

You are correct, I just tested on 9.6 as well and totally missed that. Let me update the PR.


Comments from Reviewable

@bsnyder788 bsnyder788 deleted the add-transaction-read-only-var branch November 10, 2017 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants