Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U7pjy-0003ty-DL for pgsql-bugs@arkaria.postgresql.org; Tue, 19 Feb 2013 16:08:22 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1U7pjx-0001tU-PS for pgsql-bugs@arkaria.postgresql.org; Tue, 19 Feb 2013 16:08:21 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U7piO-0000sE-Em for pgsql-bugs@postgresql.org; Tue, 19 Feb 2013 16:06:44 +0000 Received: from qmta13.westchester.pa.mail.comcast.net ([2001:558:fe14:44:76:96:59:243]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U7piM-0003ld-28 for pgsql-bugs@postgresql.org; Tue, 19 Feb 2013 16:06:43 +0000 Received: from omta18.westchester.pa.mail.comcast.net ([76.96.62.90]) by qmta13.westchester.pa.mail.comcast.net with comcast id 2Cfo1l0051wpRvQ5DG6gKp; Tue, 19 Feb 2013 16:06:40 +0000 Received: from sz0093.wc.mail.comcast.net ([68.87.26.138]) by omta18.westchester.pa.mail.comcast.net with comcast id 2G6g1l00K2ymm843eG6gAk; Tue, 19 Feb 2013 16:06:40 +0000 Date: Tue, 19 Feb 2013 16:06:40 +0000 (UTC) From: Lou Picciano To: Peter Kroon Cc: Michael Paquier , pgsql-bugs@postgresql.org Message-ID: <1503813989.1403295.1361290000190.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_1403294_872052535.1361290000142" 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=1361290000; bh=Wl40RJi/I812CaBzvtv5vwRGCCwYm7B3EIhfcJs39PA=; h=Received:Received:Date:From:To:Message-ID:Subject:MIME-Version: Content-Type; b=eBwFV4CX6d5dYMabUUJIut46HZSjYeVXA6iJxO76PWtfRFttmVFtICoY0sY3WK7dv j19jbd8J3M+E90rMQJYZ1mixiUh0tXVQtDNobU1SzSN3Yi3IhBxNTwo08ewNOYY9Ra U34a7diLDp7kNwRd3xTRceUmyRj+4KTHrQImIVMdfA+d8q7mXT9pHc81myVbr7iLTE dfLUnYIGI3Yuh3//NBpgdaIncuiyu0TgdT6ED/DHjMJluZjA45Q2AlnUXSps9vVxzO qdjJnqLSNg0aBzCpnFPA0Y40K/bl1WW3oMZt63Om3v/ch4JoskLfXBBa6nZ3T3tVAb CN3TwVb4JQq2w== 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_1403294_872052535.1361290000142 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit I wonder if there's a difference in the implementation(s) of readline buffering? ----- Original Message ----- From: Peter Kroon To: Lou Picciano Cc: Michael Paquier , pgsql-bugs@postgresql.org Sent: Tue, 19 Feb 2013 15:28:47 -0000 (UTC) Subject: Re: [BUGS] Nested xmlagg doesn't give a result 9.2.3 Exceeding length 4679 is a problem. Query results(length) equal or below this number succeed. 2013/2/19 Peter Kroon When there are more then 88 rows in the table like 595 I can run the query with success when using: WHERE id BETWEEN 1 AND 88; Using LIMIT 88 fails -> returns nothingSelecting all fails as well. 2013/2/19 Peter Kroon When there are in __table_to_table more than 88 rows nothing gets returned, otherwise the query rolls out fine. 2013/2/19 Peter Kroon It appears to be a Windows issue only.I'll try to post some code. 2013/2/19 Lou Picciano 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_1403294_872052535.1361290000142 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable I wonder if there's a difference in t= he implementation(s) of readline buffering?

----- Original Message -= ----
From: Peter Kroon <plakroon@gmail.com>
To: Lou Picciano &l= t;loupicciano@comcast.net>
Cc: Michael Paquier <michael.paquier@gm= ail.com>, pgsql-bugs@postgresql.org
Sent: Tue, 19 Feb 2013 15:28:47 -= 0000 (UTC)
Subject: Re: [BUGS] Nested xmlagg doesn't give a result 9.2.3=

Exceeding length 4679 is a problem. Query res= ults(length) equal or below this number succeed.


2013/2/19 Peter Kroon <plakroon@gmai= l.com>
Whe= n there are more then 88 rows in the table like 595 I can run the query wit= h success when using: WHERE id BETWEEN 1 AND 88;

Using LIMIT 8= 8 fails -> returns nothing
Selecting all fails as well.


2013/2/19 Peter Kroon <plakroon@gmail.com>
When there are in __ta= ble_to_table more than 88 rows nothing gets returned, otherwise the query r= olls out fine.



2013/2/19 Peter Kroon <plakroon@gmail.com>=
It appears to be a Wind= ows issue only.
I'll try to post some code.


2013/2/19 Lou Picciano <loupicciano@comcast.net>
=
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 connec= ting using the libpq installed with them?)

We hav= e plenty of experience with clients reporting varying behavior from our 'ap= plications', 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 en= vironment in some way, sometimes after installing software.
 

While the 'support libraries' is= sues 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 ou= tput differently!

The experts here will weigh in.
=

Lou Picciano

 
----- Original Message -----
From: Pete= r Kroon <plakroo= n@gmail.com>




Sent: Tue, 19 Feb 2013 11:52:37 -000= 0 (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 p= gadmin using localhost or 192.168.1.100 then I get results.
When I'm on another ma= chine and login via pgadmin(192.168.1.100) then I get no results.
Not sure what to thin= k of this...


2013/2/19 Peter Kroon <plakroon@gmail.com>
>Don't you have for example problems wi= th 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 gettin= g results.


2013/2/19 Michael Paquier <michael.paquier@gma= il.com>


On Tue, Feb 19, 2013 at 5:50 PM, Peter Kroon <plak= roon@gmail.com> wrote:
Also no result with FROM __my_table LIMIT 1;
I'm having correct results with PG 9.2 by using either xmlagg or xmleleme= nt.



For example:
postgres=3D# SELECT xmlelement(name el_n= ame, id) FROM __table LIMIT 1;
      xmlelemen= t     
----------------------
 <el_= name>1</el_name>
Or:
postgres=3D# SELECT xmlagg(xmlelement(= name el_name, id)) FROM __table;



    &n= bsp;            = ; xmlagg           &= nbsp;     
-----------------------------------= -------

 <el_name>1</el_name><el_name>2</= el_name>
(1 row)

Btw, such simple tests would have failed on t= he buildfarm for regression xml.sql, so this looks to be an error in your e= nvironment.



Don't you have for example problems with the cli= ent application you use?
--
Michael







------=_Part_1403294_872052535.1361290000142--