pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dimitri Fontaine <dimitri@2ndQuadrant.fr>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Henry <henka@cityweb.co.za>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #5736: 9.0.1 segmentation fault (sig11) during long-lived update
Date: Sun, 31 Oct 2010 16:32:48 +0100
Message-ID: <m2pquqe5sv.fsf@2ndQuadrant.fr> (raw)
In-Reply-To: <23040.1288471381@sss.pgh.pa.us>
References: <201010301918.o9UJIxIc015004@wwwmaster.postgresql.org>
	<23040.1288471381@sss.pgh.pa.us>

Tom Lane <tgl@sss.pgh.pa.us> writes:
> Also, make sure the ulimit command is effective in the shell that will
> actually launch the postmaster.  This can be tricky if your PG launch
> script uses "su".  If you're using the RH or PGDG RPMs' initscript,
> I'd suggest putting the ulimit command in ~postgres/.bash_profile.

Under debian or ubuntu you can add the -c switch to pg_ctl options so
that IIRC it will change the ulimit settings for you. An example on a
8.4 install:

$ cat /etc/postgresql/8.4/main/pg_ctl.conf 
# Automatic pg_ctl configuration
# This configuration file contains cluster specific options to be passed to
# pg_ctl(1).

pg_ctl_options = ''

Also see the /etc/postgresql/X.Y/cluster/environment file. For archives
sake and people following without a debian based installation handy:

$ cat /etc/postgresql/8.4/main/environment
# environment variables for postmaster process
# This file has the same syntax as postgresql.conf: 
#  VARIABLE = simple_value
#  VARIABLE2 = 'any value!'
# I. e. you need to enclose any value which does not only consist of letters,
# numbers, and '-', '_', '.' in single quotes. Shell commands are not
# evaluated.

Regards,
-- 
Dimitri Fontaine
http://2ndQuadrant.fr     PostgreSQL : Expertise, Formation et Support



view thread (4+ messages)  latest in thread

Message-ID: <m2pquqe5sv.fsf@2ndQuadrant.fr>
Permalink:  ../m2pquqe5sv.fsf@2ndQuadrant.fr/
Also on:    postgresql.org/message-id/m2pquqe5sv.fsf@2ndQuadrant.fr

 · 

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-bugs@postgresql.org
  Cc: dimitri@2ndQuadrant.fr, tgl@sss.pgh.pa.us, henka@cityweb.co.za
  Subject: Re: BUG #5736: 9.0.1 segmentation fault (sig11) during long-lived update
  In-Reply-To: <m2pquqe5sv.fsf@2ndQuadrant.fr>
  References: <201010301918.o9UJIxIc015004@wwwmaster.postgresql.org> <23040.1288471381@sss.pgh.pa.us> <m2pquqe5sv.fsf@2ndQuadrant.fr>

* 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