Re: Reindex + relation doesnt exist

Поиск
Список
Период
Сортировка
От frant101@googlemail.com
Тема Re: Reindex + relation doesnt exist
Дата
Msg-id a3829100-62e8-4633-8154-97f5dbba7784@h25g2000hsf.googlegroups.com
обсуждение исходный текст
Ответ на Reindex + relation doesnt exist  (frant101@googlemail.com)
Список 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 по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: FILL FACTOR information
Следующее
От: "sathiya psql"
Дата:
Сообщение: migration of 7.4 to 8.1