문제

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.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top