| From: | Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> |
|---|---|
| To: | Andres Freund <andres(at)anarazel(dot)de> |
| Cc: | Michael Paquier <michael(dot)paquier(at)gmail(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, Jeff Janes <jeff(dot)janes(at)gmail(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby |
| Date: | 2016-02-04 13:19:13 |
| Message-ID: | CAA4eK1K5YqG5Wq70RymGNOf3c1U99FzsRiH0mHn-vgq-ThzQCA@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs pgsql-hackers |
On Thu, Feb 4, 2016 at 6:40 PM, Andres Freund <andres(at)anarazel(dot)de> wrote:
>
> On 2016-02-04 18:21:41 +0530, Amit Kapila wrote:
> > I think generally it is good idea, but one thing worth a thought is that
> > by doing so, we need to acquire all WAL Insertion locks every
> > LOG_SNAPSHOT_INTERVAL_MS to check the last_insert_pos for
> > every slot, do you think it is matter of concern in any way for write
> > workloads or it won't effect as we need to do this periodically?
>
> Michael and I just had an in-person discussion, and one of the topics
> was that. The plan was basically to adapt the patch to:
> 1) Store the progress lsn inside the wal insert lock
> 2) Change the HasActivity API to return an the last LSN at which there
> was activity, instead of a boolean.
> 2) Individually acquire each insert locks's lwlock to get it's progress
> LSN, but not the exclusive insert lock. We need the lwllock to avoid
> a torn 8byte read on some platforms.
>
> I think that mostly should address your concerns?
>
Yes, this sounds better and in-anycase we can do some benchmarks
to verify the same once patch is in shape.
With Regards,
Amit Kapila.
EnterpriseDB: http://www.enterprisedb.com
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Peter Geoghegan | 2016-02-04 14:16:16 | Re: BUG #13891: Deparsed arbiter WHERE clauses cannot be parsed by Postgres |
| Previous Message | Andres Freund | 2016-02-04 13:10:03 | Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Fujii Masao | 2016-02-04 13:24:50 | Re: Idle In Transaction Session Timeout, revived |
| Previous Message | Andres Freund | 2016-02-04 13:10:03 | Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby |