> > > > You're right, that's my mistake, sorry. So, having casting rules seems > > to be the only option.. > > > > > We can already cast as text[], and so we can do this: > > andrew=# select > xpath('//foo/text()','<a><foo>1</foo><foo>2</foo></a>')::text[]::int[]; > xpath > ------- > {1,2} > (1 row) > > > So why do we desperately need anything extra at all? >
I was blind. My problem was with function index over xml array, that isn't indexable. I didn't find multiple casting. Regards Pavel > cheers > > andrew > ---------------------------(end of broadcast)--------------------------- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailing list cleanly