Re: Reindex + relation doesnt exist - Mailing list pgsql-admin

From frant101@googlemail.com
Subject Re: Reindex + relation doesnt exist
Date
Msg-id a3829100-62e8-4633-8154-97f5dbba7784@h25g2000hsf.googlegroups.com
Whole thread Raw
In response to Reindex + relation doesnt exist  (frant101@googlemail.com)
List pgsql-admin
On Mar 11, 3:07 pm, t...@sss.pgh.pa.us (Tom Lane) wrote:
> frant...@googlemail.com writes:
> > I have tried to put the schema name in front of the index name put i
> > still get the same error.
> > ./reindexdb -e --index sc1.ind1 hermes
> > reindexdb: reindexing of index "sc1.ind1" in database "hermes" failed:
> > ERROR:  relation "sc1.ind1" does not exist
>
> AFAICS reindexdb won't allow that --- it quotes the name you supply,
> so that's going to look like a table name that happens to contain a
> dot, not a schema and table name.
>
> You didn't say where you are inserting the non-default schema path
> into your interactive sessions...
>
>                         regards, tom lane
>
> --
> Sent via pgsql-admin mailing list (pgsql-ad...@postgresql.org)
> To make changes to your subscription:http://www.postgresql.org/mailpref/pgsql-admin

I guess what i will need to do is put the following command in the
script :

SET search_path TO sc1;

and then use the standard REINDEX command and this should do the job
for me...

Just that i need to run the job out of hours as i cant afford the
table to be locked through work hours and the index seems to have
swelled to 3GB  even though the table is only 1GB

thanks again for the help
Fran

pgsql-admin by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: FILL FACTOR information
Next
From: "sathiya psql"
Date:
Subject: migration of 7.4 to 8.1