win32/1.8.4 newlines inconsistent in Query window's Messages pane

Lists: pgadmin-support
From: Kev <kevinjamesfield(at)gmail(dot)com>
To: pgadmin-support(at)postgresql(dot)org
Subject: win32/1.8.4 newlines inconsistent in Query window's Messages pane
Date: 2008-11-04 14:25:52
Message-ID: 27784704-def8-4c62-9494-eabfadad6ec1@n33g2000pri.googlegroups.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-support

Whenever I have a standard 'raise notice' in one of my functions for
debugging, and I run a select statement on the function in the query,
the Messages pane only sometimes puts newlines after "NOTICE: ..."
lines, and if I just keep hitting F5, it's after different lines every
time. Often there are many lines in a row with newlines, and often
there are many in a row that are bunched together without newlines:

NOTICE: test
NOTICE: test
NOTICE: test
NOTICE: test
NOTICE: test
NOTICE: testNOTICE: testNOTICE: testNOTICE: testNOTICE: test
NOTICE: testNOTICE: test
Total query runtime: 344 ms.
1 rows retrieved.

NOTICE: test
NOTICE: test
NOTICE: test
NOTICE: testNOTICE: testNOTICE: test
NOTICE: testNOTICE: testNOTICE: testNOTICE: test
NOTICE: testNOTICE: test
Total query runtime: 453 ms.
1 rows retrieved.

If I do this in psql, all newlines come out correctly, one after each
"NOTICE" line.


From: Ashesh D Vashi <ashesh(dot)vashi(at)enterprisedb(dot)com>
To: Kev <kevinjamesfield(at)gmail(dot)com>
Cc: pgadmin-support(at)postgresql(dot)org
Subject: Re: win32/1.8.4 newlines inconsistent in Query window's Messages pane
Date: 2008-11-05 10:14:37
Message-ID: 4911720D.8030801@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-support

Hi Kev,

I have tried to reproduce this case with the version 1.8.4, and as you
said - i am getting the same issue.
But, when I tried to do the same thing with the latest source (checked
out from svn), surprisingly the problem disappear.

If you can run your testcase(s) with latest source or share the
testcase(s) with us, that would be help to investigate the problem.

Regards,
Ashesh

Kev wrote:
> Whenever I have a standard 'raise notice' in one of my functions for
> debugging, and I run a select statement on the function in the query,
> the Messages pane only sometimes puts newlines after "NOTICE: ..."
> lines, and if I just keep hitting F5, it's after different lines every
> time. Often there are many lines in a row with newlines, and often
> there are many in a row that are bunched together without newlines:
>
> NOTICE: test
> NOTICE: test
> NOTICE: test
> NOTICE: test
> NOTICE: test
> NOTICE: testNOTICE: testNOTICE: testNOTICE: testNOTICE: test
> NOTICE: testNOTICE: test
> Total query runtime: 344 ms.
> 1 rows retrieved.
>
>
> NOTICE: test
> NOTICE: test
> NOTICE: test
> NOTICE: testNOTICE: testNOTICE: test
> NOTICE: testNOTICE: testNOTICE: testNOTICE: test
> NOTICE: testNOTICE: test
> Total query runtime: 453 ms.
> 1 rows retrieved.
>
> If I do this in psql, all newlines come out correctly, one after each
> "NOTICE" line.
>
>


From: "Dave Page" <dpage(at)pgadmin(dot)org>
To: "Ashesh D Vashi" <ashesh(dot)vashi(at)enterprisedb(dot)com>
Cc: Kev <kevinjamesfield(at)gmail(dot)com>, pgadmin-support(at)postgresql(dot)org
Subject: Re: win32/1.8.4 newlines inconsistent in Query window's Messages pane
Date: 2008-11-05 10:51:18
Message-ID: 937d27e10811050251j3211208fmf7ff1fff582fbbf4@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-support

On Wed, Nov 5, 2008 at 5:14 AM, Ashesh D Vashi
<ashesh(dot)vashi(at)enterprisedb(dot)com> wrote:
> Hi Kev,
>
> I have tried to reproduce this case with the version 1.8.4, and as you said
> - i am getting the same issue.
> But, when I tried to do the same thing with the latest source (checked out
> from svn), surprisingly the problem disappear.
>
> If you can run your testcase(s) with latest source or share the testcase(s)
> with us, that would be help to investigate the problem.

Hmm, I may have wasted your time I'm afraid Ashesh :-(. I had a glance
over http://svn.pgadmin.org, and found this commit (which I had
completely forgotten about) which may explain things:

http://svn.pgadmin.org/cgi-bin/viewcvs.cgi?rev=7388&view=rev

That change is in trunk, and will be in 1.8.5 if it's ever released.

Sorry.

--
Dave Page
EnterpriseDB UK: http://www.enterprisedb.com


From: "Kevin Field" <kev(at)brantaero(dot)com>
To: "Dave Page" <dpage(at)pgadmin(dot)org>
Cc: kevinjamesfield(at)gmail(dot)com, pgadmin-support(at)postgresql(dot)org, ashesh(dot)vashi(at)enterprisedb(dot)com
Subject: Re: win32/1.8.4 newlines inconsistent in Query window's Messages pane
Date: 2008-11-05 13:29:02
Message-ID: 49119f9e.1e2a400a.12d6.3245@mx.google.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-support

> On Wed, Nov 5, 2008 at 5:14 AM, Ashesh D Vashi
> <ashesh(dot)vashi(at)enterprisedb(dot)com> wrote:
> > Hi Kev,
> >
> > I have tried to reproduce this case with the version 1.8.4, and as
> > you said
> > - i am getting the same issue.
> > But, when I tried to do the same thing with the latest source
> > (checked out
> > from svn), surprisingly the problem disappear.
> >
> > If you can run your testcase(s) with latest source or share the
> > testcase(s)
> > with us, that would be help to investigate the problem.
>
> Hmm, I may have wasted your time I'm afraid Ashesh :-(. I had a
> glance
> over http://svn.pgadmin.org, and found this commit (which I had
> completely forgotten about) which may explain things:
>
> http://svn.pgadmin.org/cgi-bin/viewcvs.cgi?rev=7388&view=rev
>
> That change is in trunk, and will be in 1.8.5 if it's ever released.
>
> Sorry.

Thanks Ashesh and Dave, I'll try to remember to check the commit log
next time too.

Peace out,
Kev