Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U7mGD-0003TW-CP for pgsql-bugs@arkaria.postgresql.org; Tue, 19 Feb 2013 12:25:25 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1U7mGC-0007wQ-Np for pgsql-bugs@arkaria.postgresql.org; Tue, 19 Feb 2013 12:25:24 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U7mGA-0007wH-Ep for pgsql-bugs@postgresql.org; Tue, 19 Feb 2013 12:25:22 +0000 Received: from qmta02.westchester.pa.mail.comcast.net ([2001:558:fe14:43:76:96:62:24]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U7mG7-0000QL-U9 for pgsql-bugs@postgresql.org; Tue, 19 Feb 2013 12:25:21 +0000 Received: from omta20.westchester.pa.mail.comcast.net ([76.96.62.71]) by qmta02.westchester.pa.mail.comcast.net with comcast id 2C7Y1l0091YDfWL51CRHV9; Tue, 19 Feb 2013 12:25:17 +0000 Received: from sz0093.wc.mail.comcast.net ([68.87.26.137]) by omta20.westchester.pa.mail.comcast.net with comcast id 2CRH1l00h2xV5no3gCRHD4; Tue, 19 Feb 2013 12:25:17 +0000 Date: Tue, 19 Feb 2013 12:25:17 +0000 (UTC) From: Lou Picciano To: Peter Kroon Cc: Michael Paquier , pgsql-bugs@postgresql.org Message-ID: <1491446086.1390950.1361276717678.JavaMail.root@sz0093a.westchester.pa.mail.comcast.net> In-Reply-To: Subject: Re: Nested xmlagg doesn't give a result 9.2.3 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1390949_2126354808.1361276717633" X-Originating-IP: [::ffff:76.117.177.86] X-Mailer: Zimbra 6.0.13_GA_2944 (zclient/6.0.13_GA_2944) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1361276717; bh=wZ8mQu19AIccmcX9oNOBmsatJDHJ/fvbMuKeZft1mqU=; h=Received:Received:Date:From:To:Message-ID:Subject:MIME-Version: Content-Type; b=k1I6cyYsdi7utl8LZ/fIDmWM9IcRx5ZwmVp9brd/RFn97Jy5YMqNOF9iqKMQH5BsC JlT2F0bf1T9K/N1vVvJCX0tVXNda/5SJK1TpmxCj62/TEM5KGRKR4sE59mUkeVaUGj HUm8NWmM+d8a2t6gTwpp2nj1FpanVtTlDbIb796wLct1lnDPEnmSrFmyE3ybvlwv8V UrEHiUw4n0KwbgLRU6bSAjz96UBn05M2iRVRT6h2Ki2eCMZcSQENYFm2OKjbHTt814 l5lFJXZUtFeEa+mE9VANV2PIL1h9miHM3uMumUdgrOjFvZw7luSC2bPFEMfSfeyoRs 08HPJg9SGEqbQ== X-Pg-Spam-Score: -2.5 (--) 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 ------=_Part_1390949_2126354808.1361276717633 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Seems your testing from different environments like that could easily add any mix of libpq client libraries into the equation (??) (Are both test machines running the same version of pgAdmin? and are both connecting using the libpq installed with them?) We have plenty of experience with clients reporting varying behavior from our 'applications', when it turns out they've 'hooked into' an unexpected version of the libpq client without, for example, SSL support built in, or Kerberos, or... This often happens after the client has unwittingly modified his environment in some way, sometimes after installing software. While the 'support libraries' issues above have no bearing on your case, of course, I certainly don't know enough to know that the different versions of libpq don't present xmlagg output differently! The experts here will weigh in. Lou Picciano ----- Original Message ----- From: Peter Kroon Sent: Tue, 19 Feb 2013 11:52:37 -0000 (UTC) Subject: Re: [BUGS] Nested xmlagg doesn't give a result 9.2.3 > When I'm on the sql machine via localhost or 192.168.1.100 I'm getting results. I mean when I'm physically behind the machine and login via pgadmin using localhost or 192.168.1.100 then I get results.When I'm on another machine and login via pgadmin(192.168.1.100) then I get no results.Not sure what to think of this... 2013/2/19 Peter Kroon >Don't you have for example problems with the client application you use? Yes, with 1 table only. I'm not getting any results.When I'm on the sql machine via localhost or 192.168.1.100 I'm getting results. 2013/2/19 Michael Paquier On Tue, Feb 19, 2013 at 5:50 PM, Peter Kroon wrote: Also no result with FROM __my_table LIMIT 1;I'm having correct results with PG 9.2 by using either xmlagg or xmlelement. For example: postgres=# SELECT xmlelement(name el_name, id) FROM __table LIMIT 1; xmlelement ---------------------- 1 Or: postgres=# SELECT xmlagg(xmlelement(name el_name, id)) FROM __table; xmlagg ------------------------------------------ 12 (1 row) Btw, such simple tests would have failed on the buildfarm for regression xml.sql, so this looks to be an error in your environment. Don't you have for example problems with the client application you use? -- Michael ------=_Part_1390949_2126354808.1361276717633 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Seems your testing from different env= ironments like that could easily add any mix of libpq client libraries into= the equation (??)
(Are both test machines running the same versio= n of pgAdmin? and are both connecting using the libpq installed with them?)=

We have plenty of experience with clients report= ing varying behavior from our 'applications', when it turns out they've 'ho= oked into' an unexpected version of the libpq client without, for example, = SSL support built in, or Kerberos, or... This often happens after the clien= t has unwittingly modified his environment in some way, sometimes after ins= talling software.
 

While the '= support libraries' issues above have no bearing on your case, o= f course, I certainly don't know enough to know that the different versions= of libpq don't present xmlagg output differently!

The experts= here will weigh in.


Lou Picciano
 = ;
----- Original Message -----
From: Peter Kroon <plakroon@= gmail.com>
Sent: Tue, 19 Feb 2013 11:52:37 -0000 (UTC)
Subject: Re= : [BUGS] Nested xmlagg doesn't give a result 9.2.3

= > When = I'm on the sql machine via localhost or 192.168.1.100 I'm getting results.<= /span>

=
I mean when I'= m physically behind the machine and login via pgadmin using = localhos= t or 192.168.1.100 then I get results.
When I'm on another machine and login vi= a pgadmin(192.168.1.100) then I get no results.
Not sure what to think of this...


2013/2/19 = Peter Kroon <plakroon@gmail.com>
>Don't you have for example problems with t= he client application you use?

Yes, with 1 table only. I'm not getting any res= ults.
When I'm on the sql machine via localhost or 192.168.1.100 I'm getting re= sults.


2013/2/19 Michael Paquier <michael.paquier@gmail.com>


On Tue, Feb 19, 2013 at 5:50 = PM, Peter Kroon <plakroon@gmail.com> wrote:
Also no result with FROM __my_table L= IMIT 1;
I'm having correct results with PG 9.2 by using ei= ther xmlagg or xmlelement.



For example:
postgres=3D# SELE= CT xmlelement(name el_name, id) FROM __table LIMIT 1;
   = ;   xmlelement     
----------------= ------
 <el_name>1</el_name>
Or:
postgres=3D# SE= LECT xmlagg(xmlelement(name el_name, id)) FROM __table;



&nb= sp;            =      xmlagg       &n= bsp;         
------------= ------------------------------

 <el_name>1</el_name&g= t;<el_name>2</el_name>
(1 row)

Btw, such simple tests= would have failed on the buildfarm for regression xml.sql, so this looks t= o be an error in your environment.



Don't you have for exampl= e problems with the client application you use?
--
Michael
=



------=_Part_1390949_2126354808.1361276717633--