Re: vacuuming not working?

From: "David Esposito" <dvesposito(at)newnetco(dot)com>
To: "Jeffrey W(dot) Baker" <jwbaker(at)acm(dot)org>
Cc: "Postgres general mailing list" <pgsql-general(at)postgresql(dot)org>
Subject: Re: vacuuming not working?
Date: 2002-04-08 18:56:38
Message-ID: PEEDKNLDICKECFBNGNLLEELKEPAA.dvesposito@newnetco.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

That's why I isolated it down to a standalone example ... There is no other
process looking at that table ... no foreign keys or other things that could
cause those records to be "in use" ... That was the first thing that ran
through my mind when my application was starting to get really slow ...

Also, you'll see from my script that I exit and re-enter psql between each
operation (INSERT, DELETE, VACUUM) so if the transaction wasn't committing,
then the rows wouldn't exist the next time I entered ...

Is there a query I can run to see who is holding those tuples which is
causing VACUUM to leave them in place?

-dave

> -----Original Message-----
> From: pgsql-general-owner(at)postgresql(dot)org
> [mailto:pgsql-general-owner(at)postgresql(dot)org]On Behalf Of Jeffrey W. Baker
> Sent: Monday, April 08, 2002 2:45 PM
> To: David Esposito
> Cc: Postgres general mailing list
> Subject: Re: [GENERAL] vacuuming not working?
>
>
> On Mon, 2002-04-08 at 10:40, David Esposito wrote:
> > Me again,
> >
> > I have a problem with VACUUM. I searched the list and don't seem to see
> > anyone else reporting this behavior so I'm wondering if i'm
> doing something
> > wrong
>
> > NOTICE: Pages 655: Changed 9, Empty 0; Tup 40000: Vac 0, Keep
> 40000, UnUsed
> ^^^^^^^^^^
>
> The "Keep" number in VACUUM means some transaction can still see those
> rows. Check for long-lived transactions hanging around.
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Gregory Wood 2002-04-08 19:03:27 Re: Do I just not understand count()?
Previous Message Ben 2002-04-08 18:45:28 Re: Do I just not understand count()?