Re: BUG #5492: Query performs slowly and sequence corrupted

From: Greg Stark <gsstark(at)mit(dot)edu>
To: Piergiorgio Buongiovanni <piergiorgio(dot)buongiovanni(at)netspa(dot)it>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #5492: Query performs slowly and sequence corrupted
Date: 2010-06-07 21:33:08
Message-ID: AANLkTim89RN_yRwDw5FLD3TU5Jd0aS3HX0ZPapsvDUXk@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-general

On Mon, Jun 7, 2010 at 5:36 PM, Piergiorgio Buongiovanni
<piergiorgio(dot)buongiovanni(at)netspa(dot)it> wrote:
> I reused the previous command to re-set the sequence value to the right one,
> but I see that the START value is now 59100. I reused the previous command
> another time and the START value is now 30440.
>
> I think this is a bug. I have a lot of problems with this sequence.

Sequences wouldn't directly affect retrieval times. But one way you
could get both of these symptoms is by having an application which
inserts many rows but aborts and rolls back the inserts without
committing. Perhaps a large copy which is interrupted. That would fill
the table with garbage dead records which could slow down retrieval
depending on the access method and also increase the sequence value.

You'll need to provide a lot more data before people would be able to
help you. I suggest you post the results of "explain analyze select
..." as well as some details of what previous operations you've done
on this database to pgsql-general(at)postgresql(dot)org(dot) pgsql-bugs is not
really appropriate unless you're reporting a specific problem with
postgresql in general, not an operational problem with your database.

--
greg

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Craig Ringer 2010-06-08 02:08:05 Re: BUG #5491: Queries performing slowly
Previous Message Greg Smith 2010-06-07 18:39:03 Re: [HACKERS] Invalid YAML output from EXPLAIN

Browse pgsql-general by date

  From Date Subject
Next Message Glen Barber 2010-06-07 21:41:46 Re: Misplaced pg_upgrade_support.so ?
Previous Message Adrian Klaver 2010-06-07 21:19:11 Re: Does psql -f quit insertion after an error in a statement has been detected?