| От | Peter Eisentraut |
|---|---|
| Тема | Re: issue with postgres/xml |
| Дата | |
| Msg-id | 48C79B0E.5060908@gmx.net обсуждение исходный текст |
| Ответ на | issue with postgres/xml (Cindy Moore <ctmoore@uci.edu>) |
| Список | pgsql-bugs |
Cindy Moore wrote:
> I looked through the lists and couldn't figure out where else to put
> this. I'm trying to create indices on xpath expressions for columns
> of type xml.
> I'm running postgres version 8.3.3, running on solaris.
>
> Text=# create index trclass on lsj_xml ((xpath
> ('//span[@class="tr"]/text()', entry)::text));
> ERROR: functions in index expression must be marked IMMUTABLE
xpath returns an array. I'm not sure offhand why the cast from array to
text is not immutable, but if you select an array element, it works:
create index trclass on lsj_xml (((xpath('//span[@class="tr"]/text()',
entry))[1]::text));
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера