Skip site navigation (1) Skip section navigation (2)

Re: EINTR error in SunOS

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Qingqing Zhou <zhouqq(at)cs(dot)toronto(dot)edu>
Cc: Greg Stark <gsstark(at)mit(dot)edu>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: EINTR error in SunOS
Date: 2006-01-01 17:48:51
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
Qingqing Zhou <zhouqq(at)cs(dot)toronto(dot)edu> writes:
> I understand put a CHECK_FOR_INTERRUPTS() in the retry-loop may make more
> graceful stop, but it won't work in some cases -- notice that the io
> routines we will patch can be used before the signal mechanism is setup.

I don't think it will help much at all: too many of the operations in
question are invoked in places where CHECK_FOR_INTERRUPTS is a no-op.
* disk writes are mostly done by the bgwriter and not backends at all
* unlinks are generally done during xact commit/rollback

Qingqing's point about failures in system()-invoked commands (think
archive_command for PITR) is a mighty good one too.  That puts a
serious crimp into any illusion that we can really fix this in any
reliable way.

			regards, tom lane

In response to


pgsql-hackers by date

Next:From: Tom LaneDate: 2006-01-01 17:56:11
Subject: Re: Removing SORTFUNC_LT/REVLT
Previous:From: Tom LaneDate: 2006-01-01 17:42:21
Subject: Re: Checks for command string

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group