Re: delete and select with IN clause issues

Поиск
Список
Период
Сортировка
От Jeff Frost
Тема Re: delete and select with IN clause issues
Дата
Msg-id Pine.LNX.4.64.0611022308080.6160@discord.home.frostconsultingllc.com
обсуждение исходный текст
Ответ на Re: delete and select with IN clause issues  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: delete and select with IN clause issues
Список pgsql-sql
On Fri, 3 Nov 2006, Tom Lane wrote:

> Jeff Frost <jeff@frostconsultingllc.com> writes:
>> BTW, just to make sure I get the right file to ship over if we have this
>> again, it would be: /var/lib/pgsql/data/base/9366228/16204210 yes?
>
> Not necessarily --- the filename is initially the same as the index OID,
> but it wouldn't be anymore after a REINDEX.  Instead use what you get from
>
> select relfilenode from pg_class where relname = 'page_view_visit_idx';
>
> and note you will need to recheck it after reindexing.
>
> Also, it's a good idea to do CHECKPOINT right before copying the
> physical file, to make sure you've got a consistent file image on-disk.
> If you want to be 100% certain, shut down the postmaster while copying,
> but unless the index file is pretty large I think that's not necessary.

Well, I spoke to soon on the it all works front.  So, it's been reindexed and 
appears to be working properly now.  I guess I'll keep an eye on it for a 
while.  I didn't get your query suggestion in time, so hopefully I grabbed the 
right binary file..though it did seem to disappear after the reindex, so I 
think it's likely the correct one.  Definitely got the correct second one.

You can grab them here:

http://www.frostconsultingllc.com/fortom.tar.gz

And thanks again for the help!

-- 
Jeff Frost, Owner     <jeff@frostconsultingllc.com>
Frost Consulting, LLC     http://www.frostconsultingllc.com/
Phone: 650-780-7908    FAX: 650-649-1954


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: The empty list?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: delete and select with IN clause issues