Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id AE3B4B5DBDA for ; Mon, 8 Aug 2011 18:25:52 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 67217-08 for ; Mon, 8 Aug 2011 21:25:46 +0000 (UTC) Received: from news.hub.org (news.hub.org [200.46.204.72]) by mail.postgresql.org (Postfix) with ESMTP id B1373B5DBE4 for ; Mon, 8 Aug 2011 18:25:46 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.14.4/8.14.4) with ESMTP id p78LPknR084877 for ; Mon, 8 Aug 2011 18:25:46 -0300 (ADT) (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.14.4/8.14.4/Submit) id p78L6Jp9041807 for pgsql-admin@postgresql.org; Mon, 8 Aug 2011 18:06:19 -0300 (ADT) (envelope-from news) From: jtkells@verizon.net X-Newsgroups: pgsql.admin Subject: Re: pg_dump: Error message from server: ERROR: out of shared memory on one system works fine on another Message-ID: References: <1set379ibe1biogcgbq7se6k0m5610b5ds@4ax.com> <23190.1312735042@sss.pgh.pa.us> X-Newsreader: Forte Agent 6.00/32.1186 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 40 X-Complaints-To: abuse@easynews.com Organization: Forte Inc. http://www.forteinc.com/apn/ X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly. Date: Mon, 08 Aug 2011 17:06:14 -0400 To: pgsql-admin@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.711 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.811 X-Spam-Level: X-Archive-Number: 201108/30 X-Sequence-Number: 38017 Tom, That did the trick. I made a bad assumption that the shared_memory was causing the problem and not the other way around. I set it up to 256, last attempt was 128 and it still failed, not sure what value would have given me success (128 - 256) but it needed quite a bit more. Thanks for your help On Sun, 07 Aug 2011 12:37:22 -0400, tgl@sss.pgh.pa.us (Tom Lane) wrote: >jtkells@verizon.net writes: >> I am having a problem running "pg_dump -s database "on one system >> while it runs fine on another system. > >> when I run the following dump on the Ubuntu system I get : >> pg_dump -s DB >/tmp/DB_schema_only.dmp >> pg_dump: WARNING: out of shared memory >> pg_dump: SQL command failed >> pg_dump: Error message from server: ERROR: out of shared memory >> HINT: You might need to increase max_locks_per_transaction. >> pg_dump: The command was: LOCK TABLE schema_x.x_table IN ACCESS SHARE >> MODE > >> I don't understand what I am doing wrong since I have given a larger >> amount of resources on the Ubuntu system and continue to fail. Am I >> missing anything else? > >The HINT told you what you need to do: increase max_locks_per_transaction. > >The exact point at which you run out of shared memory after exceeding >max_locks_per_transaction will vary depending on a number of >hard-to-predict factors (in this case I'll bet 32-bitness vs 64-bitness >has a lot to do with it), so the fact that it fails on one machine and >not another is not that surprising. You can be sure though that if the >databases are identical, the "working" machine has not got a lot of >headroom; so you'd be well advised to apply the max_locks_per_transaction >adjustment to both. > > regards, tom lane