Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 2CCFA6336E7 for ; Fri, 27 Mar 2009 08:34:15 -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 37282-08 for ; Fri, 27 Mar 2009 08:33:58 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from web25805.mail.ukl.yahoo.com (web25805.mail.ukl.yahoo.com [217.12.10.190]) by mail.postgresql.org (Postfix) with SMTP id 8FD2B633362 for ; Fri, 27 Mar 2009 08:34:02 -0300 (ADT) Received: (qmail 69827 invoked by uid 60001); 27 Mar 2009 09:47:20 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s1024; t=1238147240; bh=XMQeVFjpXuMDxJcVFkvG8LXJFjcGRgtnnMJ9JQL43TQ=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding; b=2z71Etl30DnJdIpw8NAgvRfqj0P6CUadQAT6hOG4xKG5CkPjxvKclO3gIX7zysPJefkEfVC2F/NooxnJaxDglANZ4QOFZTome/nEAlNztqpnNfs2qbQKlzgrNREnH8GKdaK+0Sn0naaeXKti7pN94IqAV8oVOQkBe4XQvpRZfU0= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.uk; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding; b=5qXxEEgRLDAHVtMQgMZT0AZ1qp8iqDVTctYgbL7LzP3ixzbpl4JgXkfnAv7dPYe59GQDXow0ZPvG1AwDZk4gNbQzS8m2HxWVkNQmSG3AZSqvmIv3XXPEQigA/T56Kgr1X2wHbZwicW+q8/PAR51rR1cIS2SajVlGFu+OnJ83atw=; Message-ID: <738034.69424.qm@web25805.mail.ukl.yahoo.com> X-YMail-OSG: SHCNyaAVM1lwpzDgUo0vKtwZ6FZ2dxg.57Fzv.xNo7cC7y1PoBt4JCqoF1LFbarnhgOxhfFUPC4Q79c8..swTGOUZs9TGEfnmsT6I8o9_WJtsDrAW0ddpKYDT5WK34IH7B3mHmjJJise1C2F2TUiqS1aAPq1i51RUSoyoXuyNgJx7jSHduCn1LOo4V.F0wbvJRUmb0CZOhNURsE3eQ1SVkEmxvZSVDbVPQ-- Received: from [217.144.152.37] by web25805.mail.ukl.yahoo.com via HTTP; Fri, 27 Mar 2009 09:47:20 GMT X-Mailer: YahooMailClassic/5.1.20 YahooMailWebService/0.7.289.1 Date: Fri, 27 Mar 2009 09:47:20 +0000 (GMT) From: val Subject: Re: pg_ctlcluster not logging error (memory problem likely) To: Tom Lane , Tony Webb Cc: pgsql-admin@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200903/240 X-Sequence-Number: 31740 > Tom Lane wrote: > > Tony Webb > writes: > >=A0=A0=A0 > >> 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. > >>=A0 =A0=A0=A0 > >=20 > >=A0=A0=A0 > >> When the cluster is up and running it seems to > write normally to these locations. > >>=A0 =A0=A0=A0 > >=20 > >=A0=A0=A0 > >> Could pg_ctlcluster be writing somewhere else? > >>=A0 =A0=A0=A0 > >=20 > > 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.=A0 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. > >=20 > > 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. > >=20 > > =A0=A0=A0 =A0=A0=A0 > =A0=A0=A0 regards, tom lane > >=A0=A0=A0 > Thanks Tom. >=20 > Good advice - I'll check out the pg_ctlcluster script. >=20 > I've not looked yet. I'm hoping it's a shell script, not > perl :-). >=20 > Cheers >=20 > Pif > It is a perl script :-). The purpose of which is to make it easier to start= and stop several postgres clusters which might not even be the same versio= n. It usually writes to /var/log/postgresql/postgresql-X.X-main.log. But you c= an just try starting the postmaster from the command line with /etc/init.d/= postgresql-X.X star, that way if there were any errors you will see them pr= inted on the terminal. Regards Val=0A=0A=0A