Opened 7 years ago
Closed 7 years ago
#4036 closed defect (invalid)
OOM when PostGIS installed with pg_store_plans
Reported by: | pramsey | Owned by: | pramsey |
---|---|---|---|
Priority: | medium | Milestone: | PostGIS 2.4.4 |
Component: | postgis | Version: | 2.4.x |
Keywords: | Cc: |
Description
From Kazuki Kariatsumari:
To the DB of the environment where pg_store_plans is enabled, attempting to enable PostGIS will result in OutOfMemory.
The steps that occurred are described below.
- Install PostGIS.
- Install pg_store_plans.
- Write pg_store_plans in shared_preload_libraries in postgresql.conf.
- Restart Postgresql.
- Connect to DB.
- Execute "CREATE EXTENSION postgis".
Note:
See TracTickets
for help on using tickets.
The backtrace during the OOM event indicates that the problem is actually in the pg_store_plans parser trying to handle the PostGIS extension script, not in PostGIS itself. Unfortunately the whole extension script seems to be fed into the pg_store_plans machinery, so it's well nigh impossible on our part to find out which bit it objects to. This issue should be sent to pg_store_plans, as "ability to handle whatever junk is passed to you on input" is an important feature of any extension.