From: | Atri Sharma <atri(dot)jiit(at)gmail(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Amit Kapila <amit(dot)kapila(at)huawei(dot)com>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Time limit for a process to hold Content lock in Buffer Cache |
Date: | 2013-05-23 14:35:23 |
Message-ID: | CAOeZVidcTkp+uCPJYXX7Gjje6nv5GAReKpTMU=f5PsQyOTdsuQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Thu, May 23, 2013 at 8:01 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Atri Sharma <atri(dot)jiit(at)gmail(dot)com> writes:
>> On a different note, shouldn't we have a time out for a content lock
>> in buffer cache?
>
> No; the overhead of setting up and canceling such a timeout would
> greatly outweigh any possible benefit.
>
> Generally speaking, LWLocks are not meant to be used in situations where
> the lock hold time might be long enough to justify worrying about
> timeouts. If you need that kind of behavior, use a heavyweight lock.
Right, the overheads,especially in case of interruptions would be high.
I was musing over a possible condition where a rogue client gets the
backend to process queries which take a *lot* of time(note, this is
only in my head atm.I may be completely wrong here).
Wouldnt something on the lines of a timeout help here?
Regards,
Atri
--
Regards,
Atri
l'apprenant
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2013-05-23 14:48:27 | Re: Time limit for a process to hold Content lock in Buffer Cache |
Previous Message | Tom Lane | 2013-05-23 14:31:53 | Re: Time limit for a process to hold Content lock in Buffer Cache |