Problems with Multixacts LWLocks

2020-07-29 Thread Czarek
Hi, I have problem with my Postgres production server. Sometimes there a lot of Multiexact* LWlocks: MultiXactOffsetControlLock MultiXactMemberControlLock that significantly impact on users queries performance. How to find what is the reason of Multiexact* LWlocks? Hardware: 110 CPU 620 GB RAM Ce

Re: Too few rows expected by Planner on partitioned tables

2020-07-29 Thread Julian Wolf
Hi, Thank you very much for your answers and sorry for the delayed response. > I checked and found that range types don't have "normal" statistics, and in > particular seem to use a poor ndistinct estimate.. > /* Estimate that non-null values are unique */ >stats-