Re: 8.4 -> 9.1 : ANALYSE VERBOSE; -> out of shared memory

From: Souquieres Adam <adam(dot)souquieres(at)axege(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: 8.4 -> 9.1 : ANALYSE VERBOSE; -> out of shared memory
Date: 2014-05-12 14:05:23
Message-ID: 5370D523.1090600@axege.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I just hit the 20k locks in pg_locks, on 18k differents relations owned
by the same virtual transaction and PID.

I only have like 500 tables and like 2k indexes, i must miss something.

Le 12/05/2014 15:42, Tom Lane a écrit :
> Souquieres Adam <adam(dot)souquieres(at)axege(dot)com> writes:
>> ANALYSE VERBOSE; should use only one transaction or one transaction per
>> table it analyse ?
> ANALYZE is just a simple statement: it doesn't start or stop any
> transactions. So all the locks will be acquired in the calling
> transaction.
>
> You might be better off using VACUUM ANALYZE, which although it
> does more work will divide the work into a transaction per table.
>
> regards, tom lane
>
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2014-05-12 14:24:16 Re: 8.4 -> 9.1 : ANALYSE VERBOSE; -> out of shared memory
Previous Message Jack Douglas 2014-05-12 13:56:36 returning clause and source columns