WARNING: out of shared memory

Started by akp geekalmost 16 years ago3 messagesgeneral
Jump to latest
#1akp geek
akpgeek@gmail.com

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.

appreciate your help

regards

#2John R Pierce
pierce@hogranch.com
In reply to: akp geek (#1)
Re: WARNING: out of shared memory

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)

#3akp geek
akpgeek@gmail.com
In reply to: John R Pierce (#2)
Re: WARNING: out of shared memory

That's what I did. I did it for every 500 tables . 4 chunks.. It worked

Regards

On Wed, Apr 21, 2010 at 12:30 PM, John R Pierce <pierce@hogranch.com> wrote:

Show quoted text

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)