From: | Fujii Masao <masao(dot)fujii(at)gmail(dot)com> |
---|---|
To: | Andres Freund <andres(at)2ndquadrant(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: WalSndWakeup() and synchronous_commit=off |
Date: | 2012-05-11 17:09:52 |
Message-ID: | CAHGQGwG7RWv3Fbj6wYTtH2F891=BpsO7SvY-w4qmrrmtOp7Mew@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Fri, May 11, 2012 at 4:51 AM, Andres Freund <andres(at)2ndquadrant(dot)com> wrote:
> diff --git a/src/backend/access/transam/xlog.c
> b/src/backend/access/transam/xlog.c
> index ecb71b6..7a3224b 100644
> --- a/src/backend/access/transam/xlog.c
> +++ b/src/backend/access/transam/xlog.c
> @@ -1906,6 +1906,10 @@ XLogWrite(XLogwrtRqst WriteRqst, bool flexible, bool
> xlog_switch)
> xlogctl->LogwrtRqst.Flush = LogwrtResult.Flush;
> SpinLockRelease(&xlogctl->info_lck);
> }
> +
> + /* the walsender wasn't woken up in xact.c */
> + if(max_wal_senders > 1 && synchronous_commit == SYNCHRONOUS_COMMIT_OFF)
> + WalSndWakeup();
> }
Calling WalSndWakeup() while WALWriteLock is being held might cause another
performance degradation. No?
Regards,
--
Fujii Masao
From | Date | Subject | |
---|---|---|---|
Next Message | David E. Wheeler | 2012-05-11 17:12:02 | Re: PL/perl elog(ERROR) Does not Abort Transaction |
Previous Message | Josh Berkus | 2012-05-11 17:06:00 | Re: unite recovery.conf and postgresql.conf |