Re: vacuuming not working?

From: Lincoln Yeoh <lyeoh(at)pop(dot)jaring(dot)my>
To: "David Esposito" <dvesposito(at)newnetco(dot)com>, "PostgreSQL general list" <pgsql-general(at)postgresql(dot)org>
Subject: Re: vacuuming not working?
Date: 2002-04-10 14:33:51
Message-ID: 5.1.0.14.1.20020410222501.00a9fb90@192.228.128.13
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

1) Does your app server rollback/commit first then open a new transaction
and go idle?
2) Or does it rollback/commit then go idle. Then only begin when there's
something to do.
3) Or it goes idle after selects etc without rollback/commit.

As far as I know, 7.1.x vacuum in another connection will block for 3) but
not 1). I haven't tested 7.2.1 yet, but you can test 1) by opening up two
psql windows and doing a begin; select * from table; rollback; begin; and
then try vacuum in another. You can do similar tests for the other situations.

How do you do your vacuum and reindex?

Good luck!
Link.

At 04:19 PM 4/9/02 -0400, David Esposito wrote:
>It's not a fault of the JDBC driver, you're right that it won't hold open a
>transaction ... it's with my application server ... which, i unfortunately
>don't have control over ... for some reason it seems to keep all of its
>connections in an open transaction ...
>
>the really mysterious part is the way that it has always been ... and prior
>to my upgrade to 7.2.1, i ran a vacuum and a reindex every night and the
>space was reclaimed ... that's what brought this whole thing on ...
>something has changed ...
>
>-dave

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2002-04-10 15:02:08 Re: JOINing subselects in FROM?
Previous Message Justin Clift 2002-04-10 14:32:40 [Fwd: AW: More UB-Tree patent information]