Skip site navigation (1) Skip section navigation (2)

Unnest() and xml

From: "Tamayo, Damian-p65828" <Damian(dot)Tamayo(at)gdc4s(dot)com>
To: <pgsql-in-general(at)postgresql(dot)org>
Subject: Unnest() and xml
Date: 2009-07-08 15:43:12
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-in-general
So I have general question.... I have searched through the archives and
have yet to find a clear cut explanation for this....

When xpath() function is performed....

Can someone tell me whether or not the function creates an array on the
fly or does it create an array of the size of the table and then fill in
the slots depending on whether or not the row is valid??


So when run... the above column would get returned as such.... Is this a
predetermined array? Or is postgres simply returning the empty values to
me because it thinks that I need them?

Also I notice that when I use the unnest function the empty slots are


Are returned to me....while I would to use this implementation... I'm
curious as to how the internals work here... if it creates the array of
a size(size = # of rows) before hand then I might need to use a
different implementation than what I'm currently using due to efficiency
problems that may arise later on when the tables are quite large....

Also If I have posted to the wrong mailing list ... please let me know.
Thank you for your time.

> Damian Tamayo
> General Dynamics C4 Systems
> This email message is for the sole use of the intended recipient(s)
> and may contain GDC4S confidential or privileged information. Any
> unauthorized review, use, disclosure is prohibited. If you are not an
> intended recipient, please contact the sender by reply email and
> destroy all copies of the original message.

pgsql-in-general by date

Next:From: Rekha Ravi PaiDate: 2010-11-08 08:30:06
Subject: Problem in connecting to database
Previous:From: Tamayo, Damian-p65828Date: 2009-07-07 22:16:27
Subject: Result set limits

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group