Re: [ADMIN] Strange behaviour - Mailing list pgsql-admin

From Alexei Vladishev
Subject Re: [ADMIN] Strange behaviour
Date
Msg-id Pine.LNX.3.96.980911084516.12487B-100000@gobbo.caves.lv
Whole thread Raw
In response to Re: [ADMIN] Strange behaviour  (Lorenzo Huerta <lorhuerta@yahoo.com>)
List pgsql-admin
Greetings,

Normal vacuum don't do the trick. I made simple script which once in a
hour vacuums my most used table. Today, in the morning, i found that the
script crashed with message "Cannot write duplicate key ...". So it is not
right solution for the problem.
 Dropping and recreating indexes is a good idea if your table is not
large. For small tables I reccomend "dump table"->"drop table"->"create
table+loading data+creating indexes" schema. Why drop table ? Because
dropping table inproves performance, it simply becomes smaller.

Yours sincerely,
Alexei Vladishev

On Thu, 10 Sep 1998, Lorenzo Huerta wrote:

> Alexi and group,
>
> Another good question to ask wrt alexi's question is it
> good practice to everyonce in a while to reconstruct an
> index from scratch. Or would a normal vacuum do the trick?
>
> -lorenzo
>
>
> ---Alexei Vladishev <alex@gobbo.caves.lv> wrote:
> >
> > Greetings,
> >
> > I have an aplication which do pretty much updates/selects on table
> TABLE.
> > (about 3-6 updates/selects in a sec.). The TABLE has an unique
> index, lets
> > call it INDEX. It seems than everything works OK. But after 4-7
> hours I
> > get the following errors from the application - PGresult is null,
> Backend
> > died... After a couple of days of investigation I understood that the
> > problem is in indexe, because it dies on SELECT * FROM TABLE WHERE
> > zzz=33; and zzz is the unique key of the table. After dropping index
> and
> > recreating one problem disappers.
> >
> > Is there a patch to heal postgres ? Can anyone help me ?
> > Thanks
> >
> > I am running Postgresql 6.3.2+Btree patch on Intel Linux 2.0.32
> (RedHat
> > 5.0).
> >
> > Yours sincerely,
> > Alexei Vladishev
> >
> >
> >
>
> _________________________________________________________
> DO YOU YAHOO!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>


pgsql-admin by date:

Previous
From: bcheung@sunday.com
Date:
Subject: RE: Help on PGSQL installation (Solution)
Next
From: Stephane Dupille
Date:
Subject: Problems with heavy-loaded postgres