From: Christoph Berg <myon@debian.org>
To: Kirill Kuznetsov <kir@evilmartians.com>
To: Greg Smith <greg@2ndQuadrant.com>
Cc: pgsql-pkg-debian@postgresql.org
Subject: Re: "ulimit -n" in postgresql/pgbouncer init scripts.
Date: Fri, 28 Dec 2012 12:56:54 +0100
Message-ID: <20121228115654.GB26096@msgid.df7cb.de> (raw)
In-Reply-To: <50DB32C7.50608@2ndQuadrant.com> <CAKK=MJaZ+4+ApL4+3c0h4S4shB4uciwMJ5GVbSr01i68O4n5XA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-pkg-debian>
Re: Greg Smith 2012-12-26 <50DB32C7.50608@2ndQuadrant.com>
> -Edit either /etc/pam.d/su and/or /etc/pam.d/common-session and make
> sure this line is there:
>
> session required pam_limits.so
>
> That makes the way PAM is involved in switching users references the
> new user's ulimit values.
I agree that this should be the prefered way to get this resolved,
except that pg_ctlcluster doesn't invoke su(1), but does the uid
change in pure perl. We should probably fix postgresql-common to use
PAM.
That said, there's nothing really wrong with editing
/etc/default/pgbouncer or /etc/init.d/postgresql to do the ulimit
changes. These files are "conffiles", i.e. changes to them will be
preserved on package upgrades. (Of course using PAM would be nicer,
but we are not there yet.)
Christoph
--
cb@df7cb.de | http://www.df7cb.de/Attachments:
signature.asc (application/pgp-signature, 835B) download
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-pkg-debian@postgresql.org
Cc: myon@debian.org, kir@evilmartians.com, greg@2ndQuadrant.com
Subject: Re: "ulimit -n" in postgresql/pgbouncer init scripts.
In-Reply-To: <20121228115654.GB26096@msgid.df7cb.de>
References: <20121228115654.GB26096@msgid.df7cb.de>
* 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