Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bUdne-0007pJ-GR for pgsql-bugs@arkaria.postgresql.org; Tue, 02 Aug 2016 17:48:18 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bUdnd-0008Iy-G6 for pgsql-bugs@arkaria.postgresql.org; Tue, 02 Aug 2016 17:48:17 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bUdnd-0008Is-6i for pgsql-bugs@postgresql.org; Tue, 02 Aug 2016 17:48:17 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bUdnZ-0007d0-A8 for pgsql-bugs@postgresql.org; Tue, 02 Aug 2016 17:48:16 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 8B1AE20691; Tue, 2 Aug 2016 13:48:11 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute2.internal (MEProxy); Tue, 02 Aug 2016 13:48:11 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=09LYrZekvLMSWYS zO88zaJ87QG8=; b=Jkf4P+GFFTvN1W9M7YKg+dsnFSThtcSB8urogFESRP/jHAG YJfa+BE323qz0HbpHeXJHKNx4iib+tTKBd17ZGaVwC6822UzBdCo7bPl6uChfa4M AUTWZjhh2H0ZBkAcFrmzBteVJs5Q2FcmPnO3TldEZUgW4t3USKxXAWwRmeIo= X-Sasl-enc: yB/2k2vhzkLXFd1juRIVi5f6O79MIhxEWPCaB+RkpNiC 1470160091 Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id 4A52DCCD84; Tue, 2 Aug 2016 13:48:11 -0400 (EDT) Subject: Re: BUG #13810: cursor_to_xml ignores tableforest parameter To: filip@jirsak.org, pgsql-bugs@postgresql.org References: <20151209140708.877.66922@wrigleys.postgresql.org> From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: Date: Tue, 2 Aug 2016 13:48:10 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <20151209140708.877.66922@wrigleys.postgresql.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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 ...
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