From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | "Matt Magoffin" <postgresql(dot)org(at)msqr(dot)us> |
Cc: | pgsql-general(at)postgresql(dot)org, Peter Eisentraut <peter_e(at)gmx(dot)net> |
Subject: | Re: possible to create multivalued index from xpath() results in 8.3? |
Date: | 2007-11-21 03:38:16 |
Message-ID: | 22363.1195616296@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
"Matt Magoffin" <postgresql(dot)org(at)msqr(dot)us> writes:
> Ugh, you're right of course! Somehow I had this wrong. So I tried to
> create an index on the xml[] result by casting to text[] but I got the
> "function must be immutable" error. Is there any reason the xml[] to
> text[] cast is not immutable?
Hmm ... I see that xmltotext() is marked 'stable' in pg_proc.h,
but texttoxml() is marked 'immutable', which is at best inconsistent.
It looks to me like they both depend on the GUC setting "xmloption",
which would mean they should both be stable. Peter, is there a bug
there? Also, is there a way to get rid of the GUC dependency so that
there's a reasonably safe way to index XML values?
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Richard Broersma Jr | 2007-11-21 04:33:56 | Re: VB ADODB .Open failing |
Previous Message | Matt Magoffin | 2007-11-21 03:19:15 | Re: possible to create multivalued index from xpath() results in 8.3? |
From | Date | Subject | |
---|---|---|---|
Next Message | Andrei Kovalevski | 2007-11-21 05:51:53 | PREPARE vs query with MULTIPLE statements |
Previous Message | Matt Magoffin | 2007-11-21 03:19:15 | Re: possible to create multivalued index from xpath() results in 8.3? |