From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: filip@jirsak.org
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #13810: cursor_to_xml ignores tableforest parameter
Date: Tue, 2 Aug 2016 13:48:10 -0400
Message-ID: <fd3cc50b-5f07-c1ad-11df-11f12f43eb6c@2ndquadrant.com> (raw)
In-Reply-To: <20151209140708.877.66922@wrigleys.postgresql.org>
References: <20151209140708.877.66922@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On 12/9/15 9:07 AM, filip@jirsak.org wrote:
> CREATE FUNCTION test_cursor_to_xml() RETURNS xml AS $$
> DECLARE
> curs CURSOR FOR SELECT generate_series(1, 5);
> BEGIN
> OPEN curs;
> RETURN cursor_to_xml(curs, 10, TRUE, FALSE, '');
> END;
> $$ LANGUAGE plpgsql;
>
> SELECT test_cursor_to_xml();
>
>
> This returns XML forrest instead of XML document with single root.
You're right, this should have a <table>...</table> around it, like
query_to_xml() does.
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: peter.eisentraut@2ndquadrant.com, filip@jirsak.org
Subject: Re: BUG #13810: cursor_to_xml ignores tableforest parameter
In-Reply-To: <fd3cc50b-5f07-c1ad-11df-11f12f43eb6c@2ndquadrant.com>
References: <20151209140708.877.66922@wrigleys.postgresql.org> <fd3cc50b-5f07-c1ad-11df-11f12f43eb6c@2ndquadrant.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox