Re: possible to create multivalued index from xpath() results in 8.3?
В списке pgsql-general по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: possible to create multivalued index from xpath() results in 8.3? |
| Дата | |
| Msg-id | 12829.1195586982@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: possible to create multivalued index from xpath() results in 8.3? ("Matt Magoffin" <postgresql.org@msqr.us>) |
| Ответы |
Re: possible to create multivalued index from xpath()
results in 8.3?
|
| Список | pgsql-general |
"Matt Magoffin" <postgresql.org@msqr.us> writes:
> Should the xpath() function return 3 individual text nodes like this:
> /elem[@key="mykey"]/text() => {
> value1,
> value2,
> value3
> }
> rather than concatenating these into a single text node result?
AFAICT that's exactly what it does.
regression=# select xpath('//foo[@key="mykey"]/text()', '<value>ABC<foo key="mykey">XYZ</foo></value><foo
key="mykey">RST</foo><foo>DEF</foo>');
xpath
-----------
{XYZ,RST}
(1 row)
regression=#
Of course this is of type xml[], but you can cast to text[] and then
index.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера