`transaction_read_only` GUC undocumented

Started by Pavlo Golubabout 7 years ago7 messagesdocs
Jump to latest
#1Pavlo Golub
pavlo.golub@cybertec.at

Hello.

I found that `transaction_read_only`GUC is undocumented. The only place where it referenced is Hot Standby section (https://www.postgresql.org/docs/current/hot-standby.html)

Can we add description for this GUC, please?

#2Michael Paquier
michael@paquier.xyz
In reply to: Pavlo Golub (#1)
Re: `transaction_read_only` GUC undocumented

On Tue, Jan 22, 2019 at 01:26:40PM +0100, Pavlo Golub wrote:

I found that `transaction_read_only`GUC is undocumented. The only
place where it referenced is Hot Standby section
(https://www.postgresql.org/docs/current/hot-standby.html)

Can we add description for this GUC, please?

That makes sense, now the documentation includes only a short of
roughly what it is here for and how hot standby uses it. Would you
like to write a patch for config.sgml?
--
Michael

#3Pavlo Golub
pavlo.golub@cybertec.at
In reply to: Michael Paquier (#2)
Re: `transaction_read_only` GUC undocumented

<div dir='auto'><div><br><div class="gmail_extra"><br><div class="gmail_quote">On Jan 23, 2019 02:25, Michael Paquier &lt;michael@paquier.xyz&gt; wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">On Tue, Jan 22, 2019 at 01:26:40PM +0100, Pavlo Golub wrote:
<br>
&gt; I found that `transaction_read_only`GUC is undocumented. The only
<br>
&gt; place where it referenced is Hot Standby section
<br>
&gt; (https://www.postgresql.org/docs/current/hot-standby.html)
<br>
&gt;
<br>
&gt; Can we add description for this GUC, please?
<br>

<br>
That makes sense, now the documentation includes only a short of
<br>
roughly what it is here for and how hot standby uses it.&nbsp; Would you
<br>
like to write a patch for config.sgml?
<br></p></blockquote></div></div></div><div dir="auto">Yeah, why not. Could you please give me a hint where can I find details about it? Sources or commits?</div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">
--
<br>
Michael
<br>
</p>
</blockquote></div><br></div></div></div>

#4Michael Paquier
michael@paquier.xyz
In reply to: Pavlo Golub (#3)
Re: `transaction_read_only` GUC undocumented

On Wed, Jan 23, 2019 at 06:18:58AM +0200, Pavlo Golub wrote:

Yeah, why not. Could you please give me a hint where can I find
details about it? Sources or commits?

(You may want to avoid HTML..)

transaction_read_only is listed in src/backend/utils/misc/guc.c, so we
could put a description close to default_transaction_read_only in
config.sgml, except that transaction_read_only sets the current
transaction's read-only status.
--
Michael

#5Tom Lane
tgl@sss.pgh.pa.us
In reply to: Michael Paquier (#4)
Re: `transaction_read_only` GUC undocumented

Michael Paquier <michael@paquier.xyz> writes:

transaction_read_only is listed in src/backend/utils/misc/guc.c, so we
could put a description close to default_transaction_read_only in
config.sgml, except that transaction_read_only sets the current
transaction's read-only status.

Do we really want to document that? It's not the standard-approved
way of making a transaction read-only.

regards, tom lane

#6Michael Paquier
michael@paquier.xyz
In reply to: Tom Lane (#5)
Re: `transaction_read_only` GUC undocumented

On Wed, Jan 23, 2019 at 01:07:31AM -0500, Tom Lane wrote:

Michael Paquier <michael@paquier.xyz> writes:

transaction_read_only is listed in src/backend/utils/misc/guc.c, so we
could put a description close to default_transaction_read_only in
config.sgml, except that transaction_read_only sets the current
transaction's read-only status.

Do we really want to document that? It's not the standard-approved
way of making a transaction read-only.

i'd rather document them clearly rather than letting them around with
users guessing what they actually do (remember the recent thread about
replication parameter in connection strings). By the way, I can see
that transaction_deferrable and transaction_isolation are not around
either...
--
Michael

#7Pavlo Golub
pavlo.golub@cybertec.at
In reply to: Michael Paquier (#6)
Re: `transaction_read_only` GUC undocumented

Greetings, Michael.

You wrote 23.01.2019, 8:14:

On Wed, Jan 23, 2019 at 01:07:31AM -0500, Tom Lane wrote:

Michael Paquier <michael@paquier.xyz> writes:

transaction_read_only is listed in src/backend/utils/misc/guc.c, so we
could put a description close to default_transaction_read_only in
config.sgml, except that transaction_read_only sets the current
transaction's read-only status.

Do we really want to document that? It's not the standard-approved
way of making a transaction read-only.

i'd rather document them clearly rather than letting them around with
users guessing what they actually do (remember the recent thread about
replication parameter in connection strings).

Exactly my case. Client sent support request stating that changing
this parameter doesn't work. Of course, he was doing this outside of
transaction. And of course he doesn't find manual reference and was
guessing about it's behavior.

By the way, I can see
that transaction_deferrable and transaction_isolation are not around
either...

--
Michael

--
Kind regards,
Pavlo mailto:pavlo.golub@cybertec.at