Re: indexes on functions and create or replace function

Поиск
Список
Период
Сортировка
От Gregory Stark
Тема Re: indexes on functions and create or replace function
Дата
Msg-id 87zlmxqj9l.fsf@oxford.xeocode.com
обсуждение исходный текст
Ответ на Re: indexes on functions and create or replace function  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Tom Lane <tgl@sss.pgh.pa.us> writes:

> Since determining whether the function actually did change behavior is
> Turing-complete, we can't realistically try to determine that in software.
> So we leave it up to the user to reindex if he makes a behavioral change in
> an indexed function.

Another option might be to mark the index invalid. Then allow the user to
either reindex the index to enable it or use a magic DBA-only command to
enable it asserting that a rebuild isn't necessary.

Then of course someone would complain about the downtime caused by queries not
using the index during the unavoidable window when the index is invalid. I'm
not sure how to solve that.

--
  Gregory Stark
  EnterpriseDB          http://www.enterprisedb.com
  Get trained by Bruce Momjian - ask me about EnterpriseDB's PostgreSQL training!

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

Предыдущее
От: "Douglas McNaught"
Дата:
Сообщение: Re: WAL file questions - how to relocate on Windows, how to replay after total loss, etc
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pg_dumpall problem when roles have default schemas