Re: Warning for exceeding max locks?

From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Warning for exceeding max locks?
Date: 2007-07-15 14:54:42
Message-ID: 469A3532.60509@commandprompt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
> "Joshua D. Drake" <jd(at)commandprompt(dot)com> writes:
>> We ran into a problem with a customer this weekend. They had >128,000
>> tables and we were trying to run a pg_dump. When we reached
>> max_locks_per_transaction, the dump just hung waiting to lock the next
>> table.
>
>> Would it make sense to have some sort of timeout for that?
>
> I don't think you have diagnosed this correctly. Running out of lock
> table slots generates an "out of shared memory" error, with a HINT that
> you might want to increase max_locks_per_transaction. If you can prove
> otherwise, please supply a test case.

You are correct, I didn't have all the information from my team members.
Not that it should surprise you that you are correct ;)

Thanks for replying.

Joshua D. Drake

>
> regards, tom lane
>

--

=== The PostgreSQL Company: Command Prompt, Inc. ===
Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240
Providing the most comprehensive PostgreSQL solutions since 1997
http://www.commandprompt.com/

Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate
PostgreSQL Replication: http://www.commandprompt.com/products/

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Stefan Kaltenbrunner 2007-07-15 18:00:40 Re: compiler warnings on the buildfarm
Previous Message Pavel Stehule 2007-07-15 05:00:03 Re: plpgsql and qualified variable names