Re: Feature freeze date for 8.1

From: Neil Conway <neilc(at)samurai(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Oliver Jowett <oliver(at)opencloud(dot)com>, adnandursun(at)asrinbilisim(dot)com(dot)tr, Peter Eisentraut <peter_e(at)gmx(dot)net>, Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Feature freeze date for 8.1
Date: 2005-05-02 06:07:07
Message-ID: 4275C38B.4070902@samurai.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Tom Lane wrote:
> #3 Defend against client holding locks unreasonably long, even though
> not idle

I can't get too excited about this case. If the client is malicious,
this feature is surely insufficient to stop them from consuming a lot of
resources (for example, they could easily drop and then reacquire the
locks every (timeout * 0.9) seconds). And how many DBAs are really going
to want to abort non-malicious clients doing useful work if they happen
to exceed a certain total runtime? Perhaps a motivating example would
help...

> I claim that if you have a problem with #1 you ought to go discuss it
> with some TCP hackers: you basically want to second-guess the TCP
> stack's ideas about appropriate timeouts.

Well, no -- you might want to set a different timeout for PostgreSQL
connections than for other connections. Is there a way to change the
socket timeout for some subset of the processes on the machine without
hacking the client or server source? You might also want to set this
timeout on a more granular basis (e.g. per user, per database, etc.)
Implementing this via setting a socket option (provided it can be done
portably) would be fine with me.

-Neil

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Hallgren 2005-05-02 06:52:17 Re: SPI bug.
Previous Message Dennis Bjorklund 2005-05-02 06:06:09 Re: Feature freeze date for 8.1

Browse pgsql-patches by date

  From Date Subject
Next Message Oliver Jowett 2005-05-02 06:53:46 Re: Feature freeze date for 8.1
Previous Message Dennis Bjorklund 2005-05-02 06:06:09 Re: Feature freeze date for 8.1