pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tim Lynch <admin@thirdage.com>
To: pgsql-admin@postgresql.org
Subject: Re: crash help, pgsql 7.2.1 on RH7.3
Date: Thu, 21 Nov 2002 17:05:27 -0800
Message-ID: <040901c291c3$3e8a81b0$2c0210ac@loisaida> (raw)
References: <02dd01c290d6$71e8abb0$2c0210ac@loisaida>
	<6907.1037850813@sss.pgh.pa.us>
	<7165.1037853073@sss.pgh.pa.us>

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" <tgl@sss.pgh.pa.us>
To: "Tim Lynch" <admin+pgsqladmin@thirdage.com>
Cc: <pgsql-admin@postgresql.org>
Sent: Wednesday, November 20, 2002 8:31 PM
Subject: Re: [ADMIN] crash help, pgsql 7.2.1 on RH7.3


: I said:
: > "Tim Lynch" <admin+pgsqladmin@thirdage.com> 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
:




view thread (8+ messages)  latest in thread

Message-ID: <040901c291c3$3e8a81b0$2c0210ac@loisaida>
Permalink:  ../040901c291c3$3e8a81b0$2c0210ac@loisaida/
Also on:    postgresql.org/message-id/040901c291c3$3e8a81b0$2c0210ac@loisaida

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: admin@thirdage.com
  Subject: Re: crash help, pgsql 7.2.1 on RH7.3
  In-Reply-To: <040901c291c3$3e8a81b0$2c0210ac@loisaida>
  References: <02dd01c290d6$71e8abb0$2c0210ac@loisaida> <6907.1037850813@sss.pgh.pa.us> <7165.1037853073@sss.pgh.pa.us> <040901c291c3$3e8a81b0$2c0210ac@loisaida>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox