Re: WARNING: out of shared memory

From: John R Pierce <pierce(at)hogranch(dot)com>
To: akp geek <akpgeek(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: WARNING: out of shared memory
Date: 2010-04-21 16:30:06
Message-ID: 4BCF280E.9030900@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

akp geek wrote:
> Hi All -
>
> I have been trying to drop 2000 tables using a script.
> I am getting the following error message. I have the value set
> for max_locks_per_transaction = 100 . Error message is as follows
>
> WARNING: out of shared memory
> ERROR: out of shared memory
> HINT: You might need to increase max_locks_per_transaction.
>
> ********** Error **********
>
> ERROR: out of shared memory
> SQL state: 53200
> Hint: You might need to increase max_locks_per_transaction.

is your script bracketed by BEGIN; ..... COMMIT; ?

if so, you might consider breaking it up into smaller chunks, like
BEGIN; (drop about 50 tables); COMMIT; (repeat)

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message akp geek 2010-04-21 16:32:21 Re: WARNING: out of shared memory
Previous Message Andre Lopes 2010-04-21 15:52:59 Re: Database viewpoint of subject - Sending e-mails from database table with Cronjob