Re: PostgreSQL and a Catch-22 Issue related to dead rows

2024-12-09 Thread michael...@sqlexec.com
You could always turn off vacuuming at the table level and then resume laterSent from my iPhoneOn Dec 9, 2024, at 6:03 AM, Lars Aksel Opsahl wrote: Hi When processing multiple simple feature layers through PostGIS Topology to perform overlays and eliminate small areas/slivers, we face a co

Re: Advice on best way to store a large amount of data in postgresql

2023-01-09 Thread michael...@sqlexec.com
That’s crazy only having 8GB memory when you have tables with over 100GBs. One general rule of thumb is have enough memory to hold the biggest index. Sent from my iPad > On Jan 9, 2023, at 3:23 AM, spiral wrote: > > Hello, > > We have a table containing ~1.75 billion rows, using 170GB storag

Re: Better, consistent instrumentation for postgreSQL using a similar API as Oracle

2021-10-04 Thread michael...@sqlexec.com
Mladen, Shame on u lecturing a top notch guy in the PostgreSQL world, Laurenz Albe. I think Laurenz knows “a little bit” about Oracle having written the popular extension, fdw_oracle, among his many other contributions to the PG world. So ironic that Laurenz was just named “PostgReSQL person of

Re: When to use PARTITION BY HASH?

2020-06-08 Thread michael...@sqlexec.com
Wow! That is good to know! Sent from my iPad > On Jun 7, 2020, at 5:23 PM, David Rowley wrote: > >> On Sun, 7 Jun 2020 at 23:41, MichaelDBA wrote: >> The article referenced below assumes a worst case scenario for bulk-loading >> with hash partitioned tables. It assumes that the values being

Re: much slower query in production

2020-02-26 Thread michael...@sqlexec.com
Vacuum everything that you restored Sent from my iPhone > On Feb 26, 2020, at 1:19 PM, Michael Lewis wrote: > >  >> UPDATE multicards >>SET defacements = COALESCE( count, 0 ) >> FROM ( SELECT multicard_uid, COUNT(*) AS count FROM tickets GROUP BY >> multicard_uid ) AS sub >> WHERE uid

Re: Postgres not using correct indices for views.

2019-08-10 Thread michael...@sqlexec.com
What a nice catch! Sent from my iPad On Aug 10, 2019, at 6:05 AM, Thomas Rosenstein wrote: >> [ re-adding list ] >> >> "Thomas Rosenstein" writes: On 9 Aug 2019, at 0:45, Tom Lane wrote: However ... it sort of looks like the planner didn't even consider the second plan shape i

Re: Batch insert heavily affecting query performance.

2017-12-24 Thread michael...@sqlexec.com
Are the inserts being done through one connection or multiple connections concurrently? Sent from my iPhone > On Dec 24, 2017, at 2:51 PM, Jean Baro wrote: > > Hi there, > > We are testing a new application to try to find performance issues. > > AWS RDS m4.large 500GB storage (SSD) > > One

Re: Autoanalyze CPU usage

2017-12-19 Thread michael...@sqlexec.com
Perhaps consider running manual vacuum analyze at low load times daily if you have that opportunity. This may stop autovacuums from hitting thresholds during high load times or do the normal/aggressive autovacuum tuning to make it more aggressive during low load times and less aggressive during