Re: pg_index question

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Scott Marlowe <smarlowe(at)g2switchworks(dot)com>
Cc: Terry Lee Tucker <terry(at)esc1(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: pg_index question
Date: 2005-03-25 23:36:21
Message-ID: 16306.1111793781@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Scott Marlowe <smarlowe(at)g2switchworks(dot)com> writes:
> Umm, I tried it and it worked. Sure you got the right relid?

I think the relation cache will probably not notice a manual update on
pg_index. So whether it "works" or not would depend on a lot of
extraneous factors like whether the relation cache entry was already
built for the target table and whether you did something else that would
force a cache rebuild.

In any case, the whole idea is so fraught with pitfalls that I couldn't
recommend it ...

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message OpenMacNews 2005-03-25 23:40:23 Re: help w/ a little naive brainstorming ...
Previous Message Michael Fuhr 2005-03-25 23:34:57 Re: help w/ a little naive brainstorming ...