Re: temporarily deactivate an index
От | Jaime Casanova |
---|---|
Тема | Re: temporarily deactivate an index |
Дата | |
Msg-id | c2d9e70e0806081037q3e4cb02fx6f5c32e14148079d@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: temporarily deactivate an index (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: temporarily deactivate an index
|
Список | pgsql-general |
On Sun, Jun 8, 2008 at 11:45 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote: > Viktor Rosenfeld <rosenfel@informatik.hu-berlin.de> writes: >> That works, but I'm still looking for another way to deactivate the >> index. The reason being, that my query load is randomly generated by >> a Java program and I don't want to go and change the SQL compiler. > > Well, you're going to have to change *something* on the client side, > assuming you want this behavioral change to affect only some queries. > > Otherwise, in versions that have CREATE INDEX CONCURRENTLY you could > mark the index not ready to use yet (see pg_index.indisvalid or > pg_index.indisready depending on version). > if i mark the index not ready (using pg_index.indisvalid or pg_index.indisready depending on version), will the index be updated if in another transaction i make an insert? -- regards, Jaime Casanova Soporte y capacitación de PostgreSQL Guayaquil - Ecuador Cel. (593) 87171157
В списке pgsql-general по дате отправления: