Search Postgresql Archives

Partitioned tables and locks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Is it expected that a lock on a partitioned table will take out 2 locks per child regardless of the number of children which are excluded at plan time?

For example I can select count(*) from a table with 3500 partitions in transaction, and see 7000 AccessShareLocks show up till I finish the transaction.

Bonus question - sometimes if I query pg_locks fast enough I can see ~30K locks - how could this possibly be the case. This is on an otherwise idle system.

Cheers,
James


The contents of this email are confidential and may be subject to legal or professional privilege and copyright. No representation is made that this email is free of viruses or other defects. If you have received this communication in error, you may not copy or distribute any part of it or otherwise disclose its contents to anyone. Please advise the sender of your incorrect receipt of this correspondence.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux