cyga / www_fdw

fdw extension for postgres
http://wiki.postgresql.org/wiki/WWW_FDW
123 stars 21 forks source link

Setting update scripts for new version 0.1.9 #38

Closed KrzysztofCzajkaTURCOM closed 7 years ago

KrzysztofCzajkaTURCOM commented 7 years ago

To update www_fdw with new feature (username & password header basic authorization) you have to do drop extension & create extension step. (All your sql will be cascaded dropped).

This fix prevents this hard way update. Now you can do:

That's it. Nothing else needed. It will work from next psql session.

Downgrade is more complicated and have some problems. I saw that you will need to restart PostgreSQL server and clean up share/extensions PostgreSQL LIB folder. To downgrade version from 0.1.9 to 0.1.9: ALTER EXTENSION www_fdw UPDATE TO '0.1.8';