From: | Vincent Mora <vincent(dot)mora(at)oslandia(dot)com> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | modify custom variables |
Date: | 2014-06-20 15:21:38 |
Message-ID: | 53A45182.6040206@oslandia.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi,
When creating postgis extension, a call to DefineCustomStringVariable is
made to define postgis.backend.
An assign hook allows to change the library used by spatial functions
whith a:
SET postgis.backend = 'sfcgal'; -- or 'geos'
Everything work fine execept when upgrading postgis.
If I understand the problem correctly, on upgrate (ALTER EXTENSION), the
old postgis library is already loaded, the old spatial functions are
replaced by new ones pointing to the new postgis library, a call to
DefineCustomStringVariable is made and:
ERROR: attempt to redefine parameter "postgis.backend"
I need to redefine the assign hook such that is calls the new library
backend and not the old one.
Is there a way to remove/modify custom variables ? I looked in guc.h but
couldn't find anything.
Thanks,
V.
PS: I'm working on http://trac.osgeo.org/postgis/ticket/2382.
From | Date | Subject | |
---|---|---|---|
Next Message | Joey Caughey | 2014-06-20 15:26:56 | JSON and Postgres Variable Queries |
Previous Message | Christoph Berg | 2014-06-20 15:15:05 | Re: Is analyze_new_cluster.sh still useful? |