On 9/4/16 7:36 PM, Stephen Frost wrote: > Perhaps if the versioned install script was actually a non-versioned > install script in the source tree, and the Makefile simply installed it > into the correct place, then we could eliminate that part. (All very > hand-wavy, I've not looked at what it'd take to do.)
A number of external extensions actually do it that way, but it also has its problems. For example, if you don't preserve the old base install scripts, you can't actually test whether your upgrade scripts work in the sense that they upgrade you to the same place. This is now being obsoleted by the later idea of allowing base installs from a chain of upgrade scripts. But if your upgrade scripts contain ALTER TABLE commands, you will probably still want to write base install scripts that do a fresh CREATE TABLE instead. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers