Open danielwestermann opened 3 years ago
Hi. Thanks for your report. I confirmed and could reproduce this problem.
When issue CREATE EXTENSION, pg_store_plans parses the query string for entire script per execute each query in the script. So, consume huge memory and killed by OOM-Killer. This problem became apparent because the PostGIS script contains a lot of queries
Since the execution plans of the queries executed by CREATE/ALTER EXTENSION is not very important, we may want to ignore getting the execution plan of these operations.
I'll PR the patch to solve this problem. Best regards,
Hi Kasahara,
thanks for working on that.
Best regards Daniel
From: Kasahara Tatsuhito notifications@github.com Sent: Thursday, August 6, 2020 09:05 To: ossc-db/pg_store_plans pg_store_plans@noreply.github.com Cc: Daniel Westermann (DWE) daniel.westermann@dbi-services.com; Author author@noreply.github.com Subject: Re: [ossc-db/pg_store_plans] create extension postgis raises out of memory if pg_store_plans in installed (#7)
Hi. Thanks for your report. I confirmed and could reproduce this problem.
When issue CREATE EXTENSION, pg_store_plans parses the query string for entire script per execute each query in the script. So, consume huge memory and killed by OOM-Killer. This problem became apparent because the PostGIS script contains a lot of queries
Since the execution plans of the queries executed by CREATE/ALTER EXTENSION is not very important, we may want to ignore getting the execution plan of these operations.
I'll PR the patch to solve this problem. Best regards,
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/ossc-db/pg_store_plans/issues/7#issuecomment-669747593, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADJZHGKMQIRJDTXTQ2RTGMTR7JI5NANCNFSM4PTFJUFA.
Hi,
on RedHat 7.7:
... with this packages installed:
Once pg_store_plans is in shared_preload_libraries this does not work anymore:
OOM kicks in and kills the process. Can someone please have a look at this?
Thanks in advance Daniel