Re: Remove superuser() checks from pgstattuple - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Remove superuser() checks from pgstattuple
Date
Msg-id 682a41e2-075a-86d7-769a-c046c2a34011@2ndquadrant.com
Whole thread Raw
In response to Re: Remove superuser() checks from pgstattuple  (Stephen Frost <sfrost@snowman.net>)
Responses Re: Remove superuser() checks from pgstattuple  (Stephen Frost <sfrost@snowman.net>)
List pgsql-hackers
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



pgsql-hackers by date:

Previous
From: "Daniel Verite"
Date:
Subject: Re: Surprising behaviour of \set AUTOCOMMIT ON
Next
From: Tom Lane
Date:
Subject: Default make target in test modules