Re: Patch to remove connection hook and JDK 1.3 dependencies

Поиск
Список
Период
Сортировка
От Barry Lind
Тема Re: Patch to remove connection hook and JDK 1.3 dependencies
Дата
Msg-id 3B4A167A.3040503@xythos.com
обсуждение исходный текст
Ответ на Re: Re: Patch to remove connection hook and JDK 1.3 dependencies  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-jdbc
If you shutdown the JVM without closing your connections this is the
behavior I would expect in to see in that case.  Your code should be
closing any open connections to the database before exiting.

This same behavior can be seen in psql as well.  If psql exits
unexpectedly (i.e. you kill a psql process) you will get the same
'unexpected EOF...' message on the server.

thanks,
--Barry



Joseph Shraibman wrote:

> Bruce Momjian wrote:
>
>>>Barry Lind wrote:
>>>
>>>>Attached is a patch to remove the ConnectionHook functionality and thus
>>>>the JDK 1.3 dependency.  For a further explanation see my posting to the
>>>>JDBC list on Friday, explaining why this is being done.
>>>>
>>>>
>>>I don't see any post on Friday.  Why is this being done?  Now I'll have
>>>to code my own shutdown hooks.
>>>
>>The consensus was that the function didn't work or wasn't needed.  We
>>can always re-add it.  I will wait for a discussion.
>>
>>
> If it doesn't work that's one thing but I think it is needed.  Whenever
> I shut down my java programs I get 'pq_recvbuf: unexpected EOF on client
> connection  ' in my postgres log.  I was going to make my own shutdown
> hooks when I moved to java 1.3 but I noticed that there were ones in the
> jdbc driver so I thought I didn't have to.  And when I kept getting
> those messages I just thought I built the driver wrong.
>
>
>
>



В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Barry Lind
Дата:
Сообщение: Re: Patch to remove connection hook and JDK 1.3 dependencies
Следующее
От: Barry Lind
Дата:
Сообщение: Re: [PATCH] Cleanup of JDBC character encoding