Re: Index Partition Size Double of its Table Partition?

2024-10-30 Thread David Mullineux
Are you able to cluster the table ? The idea is that rows ordered in the same way as the index might reduce it's size ? On Wed, 30 Oct 2024, 16:29 Don Seiler, wrote: > On Wed, Oct 30, 2024 at 11:23 AM Peter Geoghegan wrote: > >> >> If a substantial amount of the index was written by CREATE IND

Re: Index Partition Size Double of its Table Partition?

2024-10-30 Thread Don Seiler
On Wed, Oct 30, 2024 at 11:23 AM Peter Geoghegan wrote: > > If a substantial amount of the index was written by CREATE INDEX (and > not by retail inserts) then my theory is unlikely to be correct. It > could just be that you managed to absorb most inserts in one > partition, but not in the other.

Re: Index Partition Size Double of its Table Partition?

2024-10-30 Thread Peter Geoghegan
On Wed, Oct 30, 2024 at 12:08 PM Don Seiler wrote: > Why would last month's index be so much smaller? Because the split heuristics worked as designed there. That's the theory, at least. > Both indexes were created using CONCURRENTLY, as each was created during its > month when we started testin

Re: Index Partition Size Double of its Table Partition?

2024-10-30 Thread Don Seiler
On Wed, Oct 30, 2024 at 10:45 AM Peter Geoghegan wrote: > > It sounds like you have no updates and deletes. Right? So the only > thing that could be different is the way that the pages are being > split (aside from variations in the width of index tuples, which seems > highly unlikely to be the o

Re: What to do with a PAAS-pg server

2024-10-30 Thread Ron Johnson
Settings, like "SELECT * FROM pg_settings;" On Wed, Oct 30, 2024 at 11:32 AM alexander al (leiden) wrote: > Hi, > > we have a supplier (via our client) who has an self build PAAS-version > of postgresql. Ok, you would say, that's fine. But, there is always an > but, we think the settings are not

Re: Index Partition Size Double of its Table Partition?

2024-10-30 Thread Peter Geoghegan
On Wed, Oct 30, 2024 at 11:39 AM Don Seiler wrote: > Thanks Peter, I'll look into that shortly. It sounds like you have no updates and deletes. Right? So the only thing that could be different is the way that the pages are being split (aside from variations in the width of index tuples, which see

What to do with a PAAS-pg server

2024-10-30 Thread alexander al (leiden)
Hi, we have a supplier (via our client) who has an self build PAAS-version of postgresql. Ok, you would say, that's fine. But, there is always an but, we think the settings are not quite ok. We really want to know how much memory etc there is on that server. So we can recommend the recommended set

Re: Index Partition Size Double of its Table Partition?

2024-10-30 Thread Don Seiler
On Wed, Oct 30, 2024 at 10:35 AM Peter Geoghegan wrote: > On Wed, Oct 30, 2024 at 11:24 AM Don Seiler wrote: > > One thing worth mentioning is that the table is 4 columns, the index is > on two of them and includes the other two. I can't think of an explanation > for the index being so much larg

Re: Index Partition Size Double of its Table Partition?

2024-10-30 Thread Peter Geoghegan
On Wed, Oct 30, 2024 at 11:24 AM Don Seiler wrote: > One thing worth mentioning is that the table is 4 columns, the index is on > two of them and includes the other two. I can't think of an explanation for > the index being so much larger than its table, especially compared to last > month's in

Index Partition Size Double of its Table Partition?

2024-10-30 Thread Don Seiler
We're trying out a new non-unique covering (including) index on a couple of table partitions. We put the index on partitions for last month and this month. Both table partitions have similar sizes (45-46 GB) and row counts (330-333 million). The covering index on last month's partition is 50GB, but

Re: Delays between "connection received" and "connection authenticated" because of localhost entries in hba

2024-10-30 Thread Daniel Westermann (DWE)
>>Greg Sabino Mullane writes: >> I'd echo the suggestion to strace this. You can use the pre_auth_delay >> setting to help facilitate that. See: >IIUC, the delays are rare and unpredictable, so that strace'ing seems >unlikely to be practical. >If rebuilding from source is feasible, you could ins

Re: Delays between "connection received" and "connection authenticated" because of localhost entries in hba

2024-10-30 Thread Tom Lane
Greg Sabino Mullane writes: > I'd echo the suggestion to strace this. You can use the pre_auth_delay > setting to help facilitate that. See: IIUC, the delays are rare and unpredictable, so that strace'ing seems unlikely to be practical. If rebuilding from source is feasible, you could insert mon

Re: Delays between "connection received" and "connection authenticated" because of localhost entries in hba

2024-10-30 Thread Greg Sabino Mullane
I'd echo the suggestion to strace this. You can use the pre_auth_delay setting to help facilitate that. See: https://www.postgresql.org/docs/current/runtime-config-developer.html Cheers, Greg

Re: Random memory related errors on live postgres 14.13 instance on Ubuntu 22.04 LTS

2024-10-30 Thread Vijaykumar Jain
On Wed, 30 Oct 2024 at 13:04, Ian J Cottee wrote: > Hello everyone, I’ve been using postgres for over 25 years now and never > had any major issues which were not caused by my own stupidity. In the last > 24 hours however I’ve had a number of issues on one client's server which I > assume are a b

Random memory related errors on live postgres 14.13 instance on Ubuntu 22.04 LTS

2024-10-30 Thread Ian J Cottee
Hello everyone, I’ve been using postgres for over 25 years now and never had any major issues which were not caused by my own stupidity. In the last 24 hours however I’ve had a number of issues on one client's server which I assume are a bug in postgres or a possible hardware issue (they are runnin

Re: Delays between "connection received" and "connection authenticated" because of localhost entries in hba

2024-10-30 Thread Daniel Westermann (DWE)
>> What we've found out so far is, that this only happens if we have a >> localhost(or any other hostname) line before the line matching our >> connection, something like this: >> host    replication x localhost    md5 >> host    all x xx.xx.xx.0/24