Re: Feature freeze date for 8.1

From: Russell Smith <mr-russ(at)pws(dot)com(dot)au>
To: Neil Conway <neilc(at)samurai(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, 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 05:22:21
Message-ID: 200505021522.22689.mr-russ@pws.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

On Mon, 2 May 2005 03:05 pm, Neil Conway wrote:
> Tom Lane wrote:
> > We would? Why? Please provide a motivation that justifies the
> > considerably higher cost to make it count that way, as opposed to
> > time-since-BEGIN.
>
> The specific scenario this feature is intended to resolve is
> idle-in-transaction backends holding on to resources while the network
> connection times out; it isn't intended to implement "I never want to
> run a transaction that takes more than X seconds to execute." While
> long-running transactions aren't usually a great idea, I can certainly
> imagine installations in which some transactions might take, say, 30
> minutes to execute but the admin would like to timeout idle connections
> in less than that amount of time.
>
The two big long running transactions I can think of are VACUUM on a large db,
and there is no way to shorten that time, since to stop wraparound you must vacuum
the whole db.

Backups with pg_dump can run for quite a long time.

I would prefer an idle timeout if it's not costly. Because otherwise estimates need to be
made about how long VACUUM and backup could take, and set the timeout longer. Which
in some senses defeats the purpose of being able to cleanup idle connection quickly.

The VACUUM issue may not be a problem, as if BEGIN is not issued, then the transaction
timeout would probably not be used. But the issues would remain for backups.

Just some thoughts

Regards

Russell Smith

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2005-05-02 05:35:14 Re: Feature freeze date for 8.1
Previous Message Oliver Jowett 2005-05-02 05:20:07 Re: Feature freeze date for 8.1

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2005-05-02 05:35:14 Re: Feature freeze date for 8.1
Previous Message Oliver Jowett 2005-05-02 05:20:07 Re: Feature freeze date for 8.1