Re: Need some info on Postgresql

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: Need some info on Postgresql
Дата
Msg-id dcc563d10801031823n1e5e31cuae023e35128b3d02@mail.gmail.com
обсуждение исходный текст
Ответ на Need some info on Postgresql  ("Suresh Gupta VG" <suresh.g@zensar.com>)
Список pgsql-admin
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.

В списке pgsql-admin по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: best practices for separating data and logs
Следующее
От: "Scott Marlowe"
Дата:
Сообщение: Re: Vacuum taking an age