Re: Time limit for a process to hold Content lock in Buffer Cache

Поиск
Список
Период
Сортировка
От Atri Sharma
Тема Re: Time limit for a process to hold Content lock in Buffer Cache
Дата
Msg-id CAOeZVicSK7HfYXnFizMSAWO6ES_7LXOWd5oubfFSJWObp6+WSQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Time limit for a process to hold Content lock in Buffer Cache  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Time limit for a process to hold Content lock in Buffer Cache
Список pgsql-hackers
On Thu, May 23, 2013 at 8:18 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Atri Sharma <atri.jiit@gmail.com> writes:
>> 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?
>
> You can already set statement_timeout for that.  I don't think worrying
> about it at the level of buffer content locks would be terribly helpful,
> since those locks are generally held only for long enough to read or
> write the page or to verify the visibility of rows on it.  Even if the
> client is rogue, it can't affect those timings too much.

Right. I seem to be understanding this now.

BTW, what is your opinion on a rogue client's damaging capabilities?
Theoretically, what can a client which tries to stall the backend
target?

Regards,

Atri


--
Regards,

Atri
l'apprenant



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Time limit for a process to hold Content lock in Buffer Cache
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Time limit for a process to hold Content lock in Buffer Cache