Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 7CDA31336705 for ; Sun, 31 Oct 2010 12:33:07 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 39522-04 for ; Sun, 31 Oct 2010 15:33:00 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from acidenitrix.villemain.org (acidenitrix.villemain.org [91.121.90.165]) by mail.postgresql.org (Postfix) with ESMTP id 264661336473 for ; Sun, 31 Oct 2010 12:33:00 -0300 (ADT) Received: from 89-158-241-48.rev.dartybox.com ([89.158.241.48] helo=DimIMac.local) by acidenitrix.villemain.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1PCZtv-0005G4-R1; Sun, 31 Oct 2010 16:32:55 +0100 Received: by DimIMac.local (Postfix, from userid 501) id D756210FB35F; Sun, 31 Oct 2010 16:32:48 +0100 (CET) From: Dimitri Fontaine To: Tom Lane Cc: "Henry" , pgsql-bugs@postgresql.org Subject: Re: BUG #5736: 9.0.1 segmentation fault (sig11) during long-lived update Organization: 2ndQuadrant References: <201010301918.o9UJIxIc015004@wwwmaster.postgresql.org> <23040.1288471381@sss.pgh.pa.us> User-Mail-Address: dimitri@2ndQuadrant.fr Date: Sun, 31 Oct 2010 16:32:48 +0100 In-Reply-To: <23040.1288471381@sss.pgh.pa.us> (Tom Lane's message of "Sat, 30 Oct 2010 16:43:01 -0400") Message-ID: User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (darwin) MIME-Version: 1.0 Content-Type: text/plain X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201010/289 X-Sequence-Number: 28579 Tom Lane 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