Re: BUG #15977: Inconsistent behavior in chained transactions

From: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>
To: fn ln <emuser20140816(at)gmail(dot)com>
Cc: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>, Michael Paquier <michael(at)paquier(dot)xyz>, Andres Freund <andres(at)anarazel(dot)de>, PostgreSQL Developers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: BUG #15977: Inconsistent behavior in chained transactions
Date: 2019-09-09 08:42:56
Message-ID: fd496708-6158-4d7b-78e7-3f40770b1054@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

On 2019-09-09 05:58, fn ln wrote:
> Confirmed. Thank you all for your help.
>
> The only concern is that this test:
>
>    SET TRANSACTION READ WRITE\; COMMIT AND CHAIN;  -- error
>    SHOW transaction_read_only;
>
>    SET TRANSACTION READ WRITE\; ROLLBACK AND CHAIN;  -- error
>    SHOW transaction_read_only;
>
> makes more sense with READ ONLY because default_transaction_read_only is
> off at this point.

Oh you're right. Fixed.

--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Sandeep Thakkar 2019-09-09 09:22:39 Re: Postgres 11.5.1 failed installation
Previous Message Tom Lane 2019-09-09 04:22:38 Re: BUG #15995: VACUUM not working after setting/unsetting of archive_mode = on, wal_level = replica

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2019-09-09 08:48:55 Re: msys2 vs pg_upgrade/test.sh
Previous Message Michael Paquier 2019-09-09 07:31:59 Re: [HACKERS] CLUSTER command progress monitor