Disconnection problem
Posted: Sat 09 Jul 2005 22:33
I have just noticed that when I disconnect from PostgreSQL, its logfile shows this:
127.0.0.1(1369), otto@test, 1456 [2005-07-10 00:23:26] LOG: statement: SELECT * FROM pgsqldirect.Dept
127.0.0.1(1369), otto@test, 1456 [2005-07-10 00:24:25] LOG: unexpected EOF on client connection
127.0.0.1(1369), otto@test, 1456 [2005-07-10 00:24:25] LOG: disconnection: session time: 0:01:16.86 user=otto database=test host=127.0.0.1 port=1369
The first line is my command
Then I clicked disconnect in the DataReader sample. And nothing happened in the logfile.
Then I closed the DataReader sample application, and the 2nd and 3rd lines was added into the logfile.
This is abnormal termination, Connection.Close() method should disconnect, and it should be shown in the logfile like with psql command line tool, that disconnects correctly.
127.0.0.1(1369), otto@test, 1456 [2005-07-10 00:23:26] LOG: statement: SELECT * FROM pgsqldirect.Dept
127.0.0.1(1369), otto@test, 1456 [2005-07-10 00:24:25] LOG: unexpected EOF on client connection
127.0.0.1(1369), otto@test, 1456 [2005-07-10 00:24:25] LOG: disconnection: session time: 0:01:16.86 user=otto database=test host=127.0.0.1 port=1369
The first line is my command
Then I clicked disconnect in the DataReader sample. And nothing happened in the logfile.
Then I closed the DataReader sample application, and the 2nd and 3rd lines was added into the logfile.
This is abnormal termination, Connection.Close() method should disconnect, and it should be shown in the logfile like with psql command line tool, that disconnects correctly.