| От | Harald Fuchs |
|---|---|
| Тема | Re: Dynamic partial index |
| Дата | |
| Msg-id | puk656cre9.fsf@srv.protecting.net обсуждение исходный текст |
| Ответ на | Dynamic partial index (gustavo halperin <ggusti@gmail.com>) |
| Список | pgsql-general |
In article <44E4A209.4080106@gmail.com>, gustavo halperin <ggusti@gmail.com> writes: > Hello > I'm interesting in a partial index for a rows that aren't older than > 6 mounts, something like the sentence below: > / CREATE INDEX name_for_the_index ON table > (the_column_of_type_date) WHERE ( the_column_of_type_date > > (current_date - interval '6 month')::date );/ > But this is not posible, I receive the next error: > /ERROR: functions in index predicate must be marked IMMUTABLE/ > So, what is the best solution for my problem? Use a fixed date 6 months ago, and regularly recreate the index.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера