From: | Pawel Veselov <pawel(dot)veselov(at)gmail(dot)com> |
---|---|
To: | Dave Cramer <pg(at)fastcrypt(dot)com> |
Cc: | List <pgsql-jdbc(at)postgresql(dot)org> |
Subject: | Re: getting async raise notice messages |
Date: | 2015-01-28 19:55:29 |
Message-ID: | CAMnJ+BcVykTHTKM0F4yyVoiS3UtVi42oKWWs6vfuSe8co1AO0w@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
Hi Dave.
On Wed, Jan 28, 2015 at 2:38 AM, Dave Cramer <pg(at)fastcrypt(dot)com> wrote:
> Pawel,
>
> Thanks, this looks interesting.
>
> 1) why are you using such an old driver?
>
Only for the "If it ain't broke, don't touch it" principle :) It's a part
of a large J2EE application. Will probably update it along with other
middleware at some point.
> 2) what are you referring to with the comment about it not being async?
>
My original question was about "async notifications". Technically async in
this case would mean calling back on a separate thread. This fix calls back
on the same thread. So it needs to be realized that any work inside that
call back will affect the execution of the statement.
>
> Dave Cramer
>
> dave.cramer(at)credativ(dot)ca
> http://www.credativ.ca
>
> On 27 January 2015 at 17:33, Pawel Veselov <pawel(dot)veselov(at)gmail(dot)com>
> wrote:
>
>>
>> [skipped]
>>
>>
>>> I've put together this patch (over 9.1-902, which is just what I
>>> currently use), if anybody's interested: http://pastebin.com/KftdtdNq
>>> ,but:
>>> - it uses JDK6 stuff
>>> - has effect of copying all statements/resultset warnings into
>>> connection warnings
>>>
>>
>> And one other thing. That's not asynchronous, it simply provides
>> callbacks into the caller's app to allow to process notifications as they
>> are received.
>>
>> [skipped]
>>
>
>
--
With best of best regards
Pawel S. Veselov
From | Date | Subject | |
---|---|---|---|
Next Message | Dave Cramer | 2015-01-28 20:03:59 | Re: getting async raise notice messages |
Previous Message | Dave Cramer | 2015-01-28 10:38:40 | Re: getting async raise notice messages |