Re: [HACKERS] Rethinking placement of latch self-pipe initialization

2012-10-14 Thread Peter Geoghegan
On 14 October 2012 19:17, Tom Lane wrote: > Anyway, the simplest working solution proved to be to put the > InitializeLatchSupport calls in InitProcess and InitAuxiliaryProcess, > plus add them in a few background process types that use InitLatch but > don't call either of those functions. Patch

Re: [HACKERS] Rethinking placement of latch self-pipe initialization

2012-10-14 Thread Tom Lane
I wrote: > Sean Chittenden recently reported that 9.2 can crash after logging > "FATAL: pipe() failed" if the kernel is short of file descriptors: > http://archives.postgresql.org/pgsql-general/2012-10/msg00202.php > ... > What I think would be a better idea is to fix things so that OwnLatch > cann

Re: [HACKERS] Rethinking placement of latch self-pipe initialization

2012-10-08 Thread Tom Lane
Simon Riggs writes: > We still have to consider how Postgres would operate without the > latches. I don't see that it can, so a shutdown seems appropriate. Is > the purpose of this just to allow a cleaner and more informative > shutdown? Or do you think we can avoid? The point is that right now,

Re: [HACKERS] Rethinking placement of latch self-pipe initialization

2012-10-08 Thread Simon Riggs
On 7 October 2012 18:27, Tom Lane wrote: > Sean Chittenden recently reported that 9.2 can crash after logging > "FATAL: pipe() failed" if the kernel is short of file descriptors: > http://archives.postgresql.org/pgsql-general/2012-10/msg00202.php > > The only match to that error text is in initSel

Re: [HACKERS] Rethinking placement of latch self-pipe initialization

2012-10-07 Thread Amit Kapila
On Sunday, October 07, 2012 10:58 PM Tom Lane wrote: > Sean Chittenden recently reported that 9.2 can crash after logging > "FATAL: pipe() failed" if the kernel is short of file descriptors: > http://archives.postgresql.org/pgsql-general/2012-10/msg00202.php > > The only match to that error text

[HACKERS] Rethinking placement of latch self-pipe initialization

2012-10-07 Thread Tom Lane
Sean Chittenden recently reported that 9.2 can crash after logging "FATAL: pipe() failed" if the kernel is short of file descriptors: http://archives.postgresql.org/pgsql-general/2012-10/msg00202.php The only match to that error text is in initSelfPipe(). What I believe is happening is that InitP