Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U7qo4-00020R-3G for pgsql-bugs@arkaria.postgresql.org; Tue, 19 Feb 2013 17:16:40 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1U7qo3-0002Uq-Es for pgsql-bugs@arkaria.postgresql.org; Tue, 19 Feb 2013 17:16:39 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U7qo1-0002Ui-4i for pgsql-bugs@postgresql.org; Tue, 19 Feb 2013 17:16:37 +0000 Received: from qmta02.westchester.pa.mail.comcast.net ([2001:558:fe14:43:76:96:62:24]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U7qnw-0007d9-Kn for pgsql-bugs@postgresql.org; Tue, 19 Feb 2013 17:16:36 +0000 Received: from omta10.westchester.pa.mail.comcast.net ([76.96.62.28]) by qmta02.westchester.pa.mail.comcast.net with comcast id 2EcN1l0070cZkys51HGT2S; Tue, 19 Feb 2013 17:16:27 +0000 Received: from sz0093.wc.mail.comcast.net ([68.87.26.137]) by omta10.westchester.pa.mail.comcast.net with comcast id 2HGT1l00Z2xV5no3WHGTJc; Tue, 19 Feb 2013 17:16:27 +0000 Date: Tue, 19 Feb 2013 17:16:27 +0000 (UTC) From: Lou Picciano To: Peter Kroon Cc: Pavel Stehule , Michael Paquier , pgsql-bugs@postgresql.org Message-ID: <1769264667.1407782.1361294187299.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_1407781_78278624.1361294187273" 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=1361294187; bh=gR4OVdtgdu4BTQvxP+Hlj4612NHuvsjWFhbG+AZDG6s=; h=Received:Received:Date:From:To:Message-ID:Subject:MIME-Version: Content-Type; b=Ps2cJ9GYwumX2lYV18Jmmn2iNtlSKLrqnzI4lbMiUXYvyqddr0Zq60mC/5Fde0KL8 nh8YAoXdxvFsbsnwmGJYgiBUCETeDEhQ2B/QOSg1cLrV29oN2WdWQ61uqMclqcZOzj gUXXXS2ewKtn/ZYtp6XnApJhneJ3eS9Mh79SnQvMmsoSYOvDRjnfCZ5CwmMdTFncqh PFhmrWKUHQBYSpiST1vizgOCu5kzVQm1bMugVvI2xlrjWpUvxtfCKAc+NBed6I6hU3 06hXSq2GGcSTxKTac7AyZTVSa90LS23ptkV3n6j3nQkOXYyfQgsHQ+QTKPIh/1fUiN Si5HZbc/QOX/g== 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 ------=_Part_1407781_78278624.1361294187273 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sorry, Peter - I think I'd suggest something different. Start at the beginning; do this testing directly from the CLI (psql) on each of the machines, and compare results... I'd be curious, specifically, to see if you see any of those string length restrictions you've alluded to when using the CLI. At this point, it's not clear whether you're testing (various versions?) of pgAdmin(?) or (various versions?) of libpq? Lou Picciano ----- Original Message ----- From: Peter Kroon To: Pavel Stehule Cc: Lou Picciano , Michael Paquier , pgsql-bugs@postgresql.org Sent: Tue, 19 Feb 2013 16:50:25 -0000 (UTC) Subject: Re: [BUGS] Nested xmlagg doesn't give a result 9.2.3 >you can test your queries from pgAdmin SQL executorI have already done so. I'll look into the logs. 2013/2/19 Pavel Stehule 2013/2/19 Peter Kroon : >>try to use pgAdminIII > > Could you be more specific? you can test your queries from pgAdmin SQL executor but it is strange error - try to look to postgresql and system logs Pavel > > > 2013/2/19 Pavel Stehule >> >> 2013/2/19 Peter Kroon : >> > Where can I check and/or alter this? >> >> try to use pgAdminIII >> >> Regards >> >> Pavel >> >> > >> > >> > 2013/2/19 Lou Picciano >> >> >> >> 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 nothing >> >>> Selecting 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_1407781_78278624.1361294187273 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Sorry, Peter - I think I'd suggest so= mething different. Start at the beginning; do this testing directly from th= e CLI (psql) on each of the machines, and compare results...  I'd= be curious, specifically, to see if you see any of those string length res= trictions you've alluded to when using the CLI.

At this point,= it's not clear whether you're testing (various versions?) of pgAdmin(?) or= (various versions?) of libpq?

Lou Picciano
<= br>----- Original Message -----
From: Peter Kroon <plakroon@gmail.com= >
To: Pavel Stehule <pavel.stehule@gmail.com>
Cc: Lou Piccia= no <loupicciano@comcast.net>, Michael Paquier <michael.paquier@gma= il.com>, pgsql-bugs@postgresql.org
Sent: Tue, 19 Feb 2013 16:50:25 -0= 000 (UTC)
Subject: Re: [BUGS] Nested xmlagg doesn't give a result 9.2.3<= br>
>you can test your queries from pgAdmin SQL executorI have already= done so.

I'll look into the logs.


<= div class=3D"gmail_quote ">2013/2/19 Pavel Stehule <pavel.stehule@gm= ail.com>

2013/2/19 Pete= r Kroon <plakroo= n@gmail.com>:
>>try to use pgAdminIII
>

> Could you be more specific?

you can test your = queries from pgAdmin SQL executor


but it is strange error - try = to look to postgresql and system logs


Pavel


>

>

> 2013/2/19 Pavel Stehule <= ;pavel.stehule= @gmail.com>

>>

>> 2013/2/19 Peter Kroon &l= t;plakroon@gmail.co= m>:

>> > Where can I check and/or alter this?
>>

>> try to use pgAdminIII

>>

>= > Regards

>>

>> Pavel

>>

&= gt;> >

>> >

>> > 2013/2/19 Lou Piccia= no <loupicc= iano@comcast.net>

>> >>

>> >> = I wonder if there's a difference in the implementation(s) of readline
>> >> buffering?

>> >>

>> >= ;>

>> >> ----- Original Message -----

>>= >> From: Peter Kroon <plakroon@gmail.com>

>> >> To: Lou Pi= cciano <lou= picciano@comcast.net>

>> >> Cc: Michael Paquier &= lt;michael.p= aquier@gmail.com>,

>> >> pgsql-bugs@postgresql.org
>> >> Sent: Tue, 19 Feb 2013 15:28:47 -0000 (UTC)

>&= gt; >> Subject: Re: [BUGS] Nested xmlagg doesn't give a result 9.2.3<= br>
>> >>

>> >> Exceeding length 4679 is = a problem. Query results(length) equal or

>> >> below
>> >> this number succeed.

>> >>
>> >>

>> >> 2013/2/19 Peter Kroon <plakroon@gmail.com&g= t;

>> >>>

>> >>> 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;

&= gt;> >>>

>> >>> Using LIMIT 88 fails ->= ; returns nothing

>> >>> Selecting all fails as well.=

>> >>>

>> >>>

>> = >>> 2013/2/19 Peter Kroon <plakroon@gmail.com>

>> >>>= >

>> >>>> When there are in __table_to_table mo= re than 88 rows nothing gets

>> >>>> returned, oth= erwise the query rolls out fine.

>> >>>>

&g= t;> >>>>

>> >>>>

>> &g= t;>>> 2013/2/19 Peter Kroon <plakroon@gmail.com>

>> >>&g= t;>>

>> >>>>> It appears to be a Windows = issue only.

>> >>>>> I'll try to post some code= .

>> >>>>>

>> >>>>>=

>> >>>>> 2013/2/19 Lou Picciano <loupicciano@comcast.net<= /a>>

>> >>>>>>

>> >>&g= t;>>> Seems your testing from different environments like that cou= ld

>> >>>>>> 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 libp= q installed with them?)

>> >>>>>>

>= ;> >>>>>> We have plenty of experience with clients re= porting varying

>> >>>>>> behavior

&g= t;> >>>>>> from our 'applications', when it turns out = they've 'hooked into' an

>> >>>>>> unexpecte= d version of the libpq client without, for example, SSL

>> >= ;>>>>> support

>> >>>>>> buil= t in, or Kerberos, or... This often happens after the client

>>= ; >>>>>> has

>> >>>>>> unw= ittingly modified his environment in some way, sometimes after

>&= gt; >>>>>> installing

>> >>>>>= ;> software.

>> >>>>>>

>> &g= t;>>>>> While the 'support libraries' issues above have no b= earing on your

>> >>>>>> case, of course, I = certainly don't know enough to know that the

>> >>>&g= t;>> different

>> >>>>>> versions of l= ibpq don't present xmlagg output differently!

>> >>>&= gt;>>

>> >>>>>> The experts here will = weigh in.

>> >>>>>>

>> >>= >>>> Lou Picciano

>> >>>>>>
<= br>>> >>>>>>

>> >>>>>&g= t; ----- Original Message -----

>> >>>>>> Fr= om: Peter Kroon <
plakroon@gmail.com>

>> >>>>>>
>> >>>>>>

>> >>>>>>=

>> >>>>>>

>> >>>>&= gt;> Sent: Tue, 19 Feb 2013 11:52:37 -0000 (UTC)

>> >>= ;>>>> Subject: Re: [BUGS] Nested xmlagg doesn't give a result 9= .2.3

>> >>>>>>

>> >>>&= gt;>> > 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 g= et 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 think of this...
>> >>>>>>

>> >>>>>= >

>> >>>>>> 2013/2/19 Peter Kroon <plakroon@gmail.com= >

>> >>>>>>>

>> >>&= gt;>>>> >Don't you have for example problems with the client= application

>> >>>>>>> > you

&= gt;> >>>>>>> > use?

>> >>>= >>>>

>> >>>>>>> Yes, with 1 t= able 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.

>>= >>>>>>>

>> >>>>>>><= br>
>> >>>>>>> 2013/2/19 Michael Paquier <= michael.paqu= ier@gmail.com>

>> >>>>>>>>
<= br>>> >>>>>>>>

>> >>>&g= t;>>>>

>> >>>>>>>> On Tue,= Feb 19, 2013 at 5:50 PM, Peter Kroon <plakroon@gmail.com>

>> >>&= gt;>>>>> wrote:

>> >>>>>>>= >>

>> >>>>>>>>> Also no resul= t with FROM __my_table LIMIT 1;

>> >>>>>>>= ;>

>> >>>>>>>> I'm having correct r= esults with PG 9.2 by using either xmlagg or

>> >>>&g= t;>>>> xmlelement.

>> >>>>>>>= >

>> >>>>>>>>

>> >&= gt;>>>>>>

>> >>>>>>>>= ; For example:

>> >>>>>>>> postgres=3D= # SELECT xmlelement(name el_name, id) FROM __table LIMIT

>> &g= t;>>>>>>> 1;

>> >>>>>>&= gt;>       xmlelement

>> >>>>>= ;>>> ----------------------

>> >>>>>&g= t;>>  <el_name>1</el_name>

>> >>&= gt;>>>>> Or:

>> >>>>>>>>= ; postgres=3D# SELECT xmlagg(xmlelement(name el_name, id)) FROM

>= > >>>>>>>> __table;

>> >>>= >>>>>

>> >>>>>>>>
>> >>>>>>>>

>> >>>>= ;>>>>                 &= nbsp; xmlagg

>> >>>>>>>> -------------= -----------------------------

>> >>>>>>>&= gt;

>> >>>>>>>>  <el_name>1= </el_name><el_name>2</el_name>

>> >>&g= t;>>>>> (1 row)

>> >>>>>>>= >

>> >>>>>>>> Btw, such simple test= s would have failed on the buildfarm for

>> >>>>&g= t;>>> regression xml.sql, so this looks to be an error in your
=
>> >>>>>>>> environment.

>> = >>>>>>>>

>> >>>>>>&g= t;>

>> >>>>>>>>

>> >= ;>>>>>>> Don't you have for example problems with the = client application

>> >>>>>>>> you
=
>> >>>>>>>> use?

>> >>= >>>>>> --

>> >>>>>>>>= ; Michael

>> >>>>>>>

>> >= >>>>>>

>> >>>>>>

&g= t;> >>>>>>

>> >>>>>
>> >>>>

>> >>>

>> >= ;>

>> >>

>> >

>

>=


------=_Part_1407781_78278624.1361294187273--