Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Admin > postgres doesn'...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 4966 of 5152
Post > Topic >>

postgres doesn't detect other end of the unix socket is gone...

by darrenr+postgres@[EMAIL PROTECTED] (Darren Reed) May 8, 2008 at 07:28 AM

It would appear that sometimes, when a disconnect a unix stream
(ie perl DBI) from postgres in a forceful manner (^C), postgres
doesn't appear to notice and keeps processing the transaction
rather than aborting it.

As an example, I currently see the following open files:
postgres postgres   28780    7* unix stream c3653d80 <-> c2d6d7c0
postgres postgres   23751    7* unix stream c2aeda80 <-> c3615540
postgres postgres   12631    7* unix stream c35e3640 <-> c2ac1000
postgres postgres     586    7* unix stream c35ce400
postgres postgres   29011    5* unix stream c2adb900

The last two are:
  586 ?      Ds   0:00.00 postgres: postgres postgres [local] UPDATE
29011 ttyp0- IW   0:00.00 /usr/pkg/bin/postgres -D /home/postgres/db

In this case, it would appear that 586 hasn't noticed anything strange
happening.  Should it have?

Will this problem go away if I use TCP rather than unix streams?

Or is this a bug of the variety that when postgres is deep inside
an UPDATE, doing lots of disk I/O, it never checks to see if it
should abort because the client has gone?

Actually, I can see aborting being a bug too...is there a way to
control the behaviour here?

Darren


-- 
Sent via pgsql-admin mailing list (pgsql-admin@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
 




 2 Posts in Topic:
postgres doesn't detect other end of the unix socket is gone...
darrenr+postgres@[EMAIL P  2008-05-08 07:28:49 
Re: postgres doesn't detect other end of the unix socket is gone
scott.marlowe@[EMAIL PROT  2008-05-07 17:46:39 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Sun Jul 20 4:01:28 CDT 2008.