pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scott Marlowe <scott.marlowe@gmail.com>
To: Suresh Gupta VG <suresh.g@zensar.com>
Cc: Peter Koczan <pjkoczan@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Need some info on Postgresql
Date: Thu, 3 Jan 2008 20:23:23 -0600
Message-ID: <dcc563d10801031823n1e5e31cuae023e35128b3d02@mail.gmail.com> (raw)
In-Reply-To: <3D5445983859B84B92669C0D883EA6FB0BADA376@ZENMAILHQ1.ind.zensar.com>
References: <3D5445983859B84B92669C0D883EA6FB0BADA376@ZENMAILHQ1.ind.zensar.com>

On Jan 3, 2008 5:33 AM, Suresh Gupta VG <suresh.g@zensar.com> wrote:
>
> Hi Team,
>
> I am using Postgresql 7.4.2 version on Solaris.

You need to update to 7.4.18 or whatever the last version was.  7.4.2
has known data eating bugs, and if you value your data even a little,
you should update.  this is a relatively painless update not requiring
a dump / restore.

> There are number of tables
> say about 30+ tables in our database. I started to "reindex" the tables
> individually. "reindex table <<table name>>". All the queries executed
> normally with less than 1 minute of duration. But one table is not
> responding any thing even after 10 minutes. The details of the table are …

I've had large tables take well over 10 minutes on 7.4 to reindex.
That's not necessarily a sign of a problem.  How many rows does this
table have? Do you get any kind of error message or the database just
never returns.  Have you tried vacuum full on this table instead?  Do
the logs say anything about the reindex operation getting an error
etc???

> Can you please tell me why it not executing this command on the particular
> table and I am the owner of the DB? Can you please suggest some thing.

Is it really not executing?  Is it simply returning without a notice,
or hanging?

> We
> found these days, the database is taking more time to execute any query. We
> are doing "vacuum Verbose analyze" regularly at low traffic time.

You would do well to consider a migration to 8.2.5 or 8.3 when it
comes out of beta / RC status.  7.4.x is getting rather old, and the
8.x series (8.0, 8.1, 8.2, and now 8.3) have each had major
improvements in speed.



view thread (9+ messages)  latest in thread

Message-ID: <dcc563d10801031823n1e5e31cuae023e35128b3d02@mail.gmail.com>
Permalink:  ../dcc563d10801031823n1e5e31cuae023e35128b3d02@mail.gmail.com/
Also on:    postgresql.org/message-id/dcc563d10801031823n1e5e31cuae023e35128b3d02@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: scott.marlowe@gmail.com, suresh.g@zensar.com, pjkoczan@gmail.com
  Subject: Re: Need some info on Postgresql
  In-Reply-To: <dcc563d10801031823n1e5e31cuae023e35128b3d02@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox