Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 0F5F06343F0 for ; Thu, 26 Mar 2009 19:35:47 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 63745-08 for ; Thu, 26 Mar 2009 19:35:39 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 233BB6325D8 for ; Thu, 26 Mar 2009 19:35:37 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id n2QMZZt2028230; Thu, 26 Mar 2009 18:35:36 -0400 (EDT) To: Tony Webb cc: pgsql-admin@postgresql.org Subject: Re: pg_ctlcluster not logging error (memory problem likely) In-reply-to: <49CB4A35.1030002@sanger.ac.uk> References: <49CB4A35.1030002@sanger.ac.uk> Comments: In-reply-to Tony Webb message dated "Thu, 26 Mar 2009 09:26:13 -0000" Date: Thu, 26 Mar 2009 18:35:35 -0400 Message-ID: <28229.1238106935@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.013 tagged_above=0 required=5 tests=AWL=0.013 X-Spam-Level: X-Archive-Number: 200903/235 X-Sequence-Number: 31735 Tony Webb writes: > I'm trying to find out why my cluster won't start. It looks like I'm > pushing up max_connections too high although I think my memory and > semaphore settings are OK. Thing is, when the cluster fails to start I > can't see any errors in pg_log or in /var/log/messages. > When the cluster is up and running it seems to write normally to these > locations. > Could pg_ctlcluster be writing somewhere else? I'm not familar with pg_ctlcluster, but it seems possible that the Debian setup is such that messages issued early in startup go somewhere else than where messages go once the postmaster is fully up and running. In particular, until the postmaster has absorbed the logging settings in postgresql.conf, it's *always* going to write to its stderr. I've seen startup scripts that send postmaster stderr to /dev/null :-( because they suppose that pointing log_destination to syslog or some such means that everything of interest will go there. Advice is to look into the startup script, see where it sends postmaster's stderr, and fix that if it's not someplace you can read. regards, tom lane