Question

How do I modify source code for a postgres extension? I'm trying to do it with pgRouting: so the code is in ../postgresql/9.1/contrib, and when I save the changes, nothing's applied. I tried to restart postgresql service, to drop and re-create extension for the database - still no luck.

Was it helpful?

Solution

After you've edited the source you need to rebuild it (typically "make") and then reinstall it (typically "make install"). For most extensions you don't need to restart postgres, but you do have to disconnect your session and start a new one.

If you have made any changes to SQL or PL/SQL or similar objects in the extension, you should either give it a new version number and upgrade it, or drop and recreate it.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top