-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
create extension postgis raises out of memory if pg_store_plans in installed #7
Comments
Hi. 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. 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. |
Hi Kasahara,
thanks for working on that.
Best regards
Daniel
…________________________________
From: Kasahara Tatsuhito <[email protected]>
Sent: Thursday, August 6, 2020 09:05
To: ossc-db/pg_store_plans <[email protected]>
Cc: Daniel Westermann (DWE) <[email protected]>; Author <[email protected]>
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 GitHub<#7 (comment)>, or unsubscribe<https://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
The text was updated successfully, but these errors were encountered: