Nested xmlagg doesn't give a result 9.2.3

From: Peter Kroon <plakroon(at)gmail(dot)com>
To: "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org>
Subject: Nested xmlagg doesn't give a result 9.2.3
Date: 2013-02-19 00:18:41
Message-ID: CAOh+DO=TtnzF_MPPtnDn0WXNtjJpVpoPKwxm8RaB8yatr77vrQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Query:

SELECT
xmlelement(name s_a,
xmlagg(
xmlelement(name s_b,
xmlattributes(
sq.id AS i
),
(SELECT
xmlagg(
xmlelement(name s_c,
xmlattributes(
su.id AS i
)
)
ORDER BY table_id,id
)
FROM __table_to_table AS su WHERE su.table_id=sq.id
)
)
)
)
FROM __table AS sq

No result given in: "PostgreSQL 9.2.3 on x86_64-unknown-linux-gnu, compiled
by gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-52), 64-bit"
A result is given in: "PostgreSQL 9.2.1, compiled by Visual C++ build 1600,
32-bit"

Both installations tested with same DB.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Michael Paquier 2013-02-19 01:03:51 Re: Nested xmlagg doesn't give a result 9.2.3
Previous Message Maciek Sakrejda 2013-02-18 22:19:25 Re: BUG #7883: "PANIC: WAL contains references to invalid pages" on replica recovery