Re: Synchronous commit not... synchronous? - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Synchronous commit not... synchronous?
Date
Msg-id 50940DE3.5080003@eisentraut.org
Whole thread Raw
In response to Synchronous commit not... synchronous?  (Peter van Hardenberg <pvh@pvh.ca>)
List pgsql-hackers
On 10/31/12 9:39 PM, Peter van Hardenberg wrote:
> This was rather surprising - my synchronous commit was... not cancelled.
> Is this expected behaviour?
> 
> d5r5fdj6u5ieml=> begin;
> BEGIN
> d5r5fdj6u5ieml=> set synchronous_commit = 'on';
> SET
> d5r5fdj6u5ieml=> insert into data values ('baz');
> INSERT 0 1
> d5r5fdj6u5ieml=> commit;
> ^CCancel request sent
> WARNING:  canceling wait for synchronous replication due to user request
> DETAIL:  The transaction has already committed locally, but might not
> have been replicated to the standby.
> COMMIT
> d5r5fdj6u5ieml=> select * from data;
>  foo 
> -----
>  bar
>  baz
> (2 rows)

Did the inserted row also arrive at the standby?



pgsql-hackers by date:

Previous
From: Pavan Deolasee
Date:
Subject: Re: Bug in ALTER COLUMN SET DATA TYPE ?
Next
From: Daniel Farina
Date:
Subject: Re: Synchronous commit not... synchronous?