Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id CC292476052 for ; Thu, 21 Nov 2002 20:00:55 -0500 (EST) Received: from smtp.thirdage.com (smtp.thirdage.com [66.88.20.171]) by postgresql.org (Postfix) with SMTP id 07ED2476027 for ; Thu, 21 Nov 2002 20:00:55 -0500 (EST) Received: by smtp.thirdage.com (Postfix, from userid 97) id EA5938628; Thu, 21 Nov 2002 17:00:57 -0800 (PST) Received: from loisaida (host44.thirdage.com [172.16.2.44]) by smtp.thirdage.com (Postfix) with SMTP id 6B0CE861F for ; Thu, 21 Nov 2002 17:00:57 -0800 (PST) Message-ID: <040901c291c3$3e8a81b0$2c0210ac@loisaida> From: "Tim Lynch" To: References: <02dd01c290d6$71e8abb0$2c0210ac@loisaida> <6907.1037850813@sss.pgh.pa.us> <7165.1037853073@sss.pgh.pa.us> Subject: Re: crash help, pgsql 7.2.1 on RH7.3 Date: Thu, 21 Nov 2002 17:05:27 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Spam-Status: No, hits=0.3 required=7.0 tests=AWL version=2.20 X-Spam-Level: X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/217 X-Sequence-Number: 6405 okay, argh, after messing around with /etc/security/limits.conf, it would have been nice to know that limits.conf doesn't change the default ulimit rather the limits of user ulimit changes! mean to say, pam_limits.so and limits.conf do not change the default ulimit, just the bounds, so then the user can ulimit -c unlimited. i expect regular user to never be able to increase their ulimits - call me old fasioned... what's next, regular user negative renice?!? anyways... but, uh, what am i going to do with a core file? i would need a non-stripped postgres binary first, right? i checked out the cwd in /proc, it is /var/lib/pgsql (actally i symlinked it into another fs) which is postgres:postgres mode 700. ----- Original Message ----- From: "Tom Lane" To: "Tim Lynch" Cc: Sent: Wednesday, November 20, 2002 8:31 PM Subject: Re: [ADMIN] crash help, pgsql 7.2.1 on RH7.3 : I said: : > "Tim Lynch" writes: : >> i don't see a core file. : : > Check that you are starting the postmaster with "ulimit -c unlimited"; : > this is not the default on most Linuxen, so you may have to add that to : > the start script. Also note that the postmaster never does a chdir, : > so if it drops core it will be in the same directory the start script : > was running in. : : Drat, I forgot to mention an important corollary: make sure the : postmaster is started in a directory that's writable by the postgres : user, else you'll get no corefile. : : (For completeness I'll mention here that when individual backends dump : core, it's in the $PGDATA/base/nnn/ directory of the database they're : connected to. So you can easily distinguish a postmaster core from : a backend core, just by where it was dropped.) : : regards, tom lane :