dbTalk Databases Forums  

LockAcquire: lock table 1 is out of memory

comp.databases.postgresql.novice comp.databases.postgresql.novice


Discuss LockAcquire: lock table 1 is out of memory in the comp.databases.postgresql.novice forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Tom Lane
 
Posts: n/a

Default Re: LockAcquire: lock table 1 is out of memory - 09-13-2004 , 09:47 AM






Betsy Barker <betsy.barker (AT) supportservicesinc (DOT) com> writes:
Quote:
I am getting the following error while running a series of stored procedures. I have increased the max_locks_per_transaction
parameter from 64 (the default) to 128 and I still received this
error. Can anyone tell me waht else I could do?
Raise it further ...

Note also that you need a postmaster restart (not just SIGHUP) to make
the increase take effect.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo (AT) postgresql (DOT) org



Reply With Quote
  #2  
Old   
Betsy Barker
 
Posts: n/a

Default LockAcquire: lock table 1 is out of memory - 09-13-2004 , 10:16 AM






Hello,
I am getting the following error while running a series of stored procedures. I have increased the max_locks_per_transaction
parameter from 64 (the default) to 128 and I still received this error. Can anyone tell me waht else I could do?

Thank you!

WARNING: ShmemAlloc: out of memory
WARNING: Error occurred while executing PL/pgSQL function get_facility_percentiles
WARNING: line 37 at execute statement
ERROR: LockAcquire: lock table 1 is out of memory

--
Betsy Barker
IT Manager
Support Services, Inc
(720)489-1630 X 38

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo (AT) postgresql (DOT) org


Reply With Quote
  #3  
Old   
Burçin Gülen
 
Posts: n/a

Default unsubcribe - 09-14-2004 , 10:43 AM



Once I subcribed this mail group but I wish to unsubscribe now.
Can anyone help me by unsubscribing me or tell me how I can do it.

Thanks for your help.

Burçin

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org


Reply With Quote
  #4  
Old   
Betsy Barker
 
Posts: n/a

Default Re: LockAcquire: lock table 1 is out of memory - 09-14-2004 , 11:24 AM



I raised the parameter to 256 and the process finished. Thank you Tom. Does raising that parameter cause the database to slow down? The process ended up taking 14.5 hours to finish! That seems like a long long time.

Also, do you think that the use of a temporary table inside an inner loop, being created and dropped over and over again could have caused the problem in the beginning?

Thank you,
Betsy Barker

On Mon, 13 Sep 2004 10:47:55 -0400
Tom Lane <tgl (AT) sss (DOT) pgh.pa.us> wrote:

Quote:
Betsy Barker <betsy.barker (AT) supportservicesinc (DOT) com> writes:
I am getting the following error while running a series of stored procedures. I have increased the max_locks_per_transaction
parameter from 64 (the default) to 128 and I still received this
error. Can anyone tell me waht else I could do?

Raise it further ...

Note also that you need a postmaster restart (not just SIGHUP) to make
the increase take effect.

regards, tom lane


--
Betsy Barker
IT Manager
Support Services, Inc
(720)489-1630 X 38

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.