Re: delete and select with IN clause issues

From: Jeff Frost <jeff(at)frostconsultingllc(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: delete and select with IN clause issues
Date: 2006-11-03 07:10:50
Message-ID: Pine.LNX.4.64.0611022308080.6160@discord.home.frostconsultingllc.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Fri, 3 Nov 2006, Tom Lane wrote:

> Jeff Frost <jeff(at)frostconsultingllc(dot)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(at)frostconsultingllc(dot)com>
Frost Consulting, LLC http://www.frostconsultingllc.com/
Phone: 650-780-7908 FAX: 650-649-1954

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2006-11-03 17:26:36 Re: delete and select with IN clause issues
Previous Message Tom Lane 2006-11-03 07:02:25 Re: The empty list?