Re: vacuuming not working?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "David Esposito" <dvesposito(at)newnetco(dot)com>
Cc: "Jeffrey W(dot) Baker" <jwbaker(at)acm(dot)org>, "Postgres general mailing list" <pgsql-general(at)postgresql(dot)org>
Subject: Re: vacuuming not working?
Date: 2002-04-08 21:35:58
Message-ID: 23673.1018301758@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"David Esposito" <dvesposito(at)newnetco(dot)com> writes:
> So, here's the million dollar question ... and one that may or may not be a
> postgres question ... I normally have a pool of connections connected to
> postgres from my application server (jboss) ... they are all normally in the
> "idle in transaction" state (if i do a ps -ax, they are all listed as "idle
> in transaction") ... the question is, are these other connections actually
> holding open a transaction that would prevent the table from being properly
> vacuumed?

Yes. If the ps status display says it's in a transaction, then it is.

> if so, is there anything that i can do about it ... (yes, i
> suppose i need to figure out why the JDBC connections have transactions
> started before they're actually needed) ...

Darn if I know. You might try asking pgsql-jdbc list.

> and was this the case with postgres 7.1.3?

VACUUM has always acted that way, as far back as I've been involved.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Richard Emberson 2002-04-08 23:03:34 now() AT TIME ZONE 'GMT';
Previous Message David Esposito 2002-04-08 21:32:44 Re: vacuuming not working?