pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Dominic Jones <jonesd@xmission.com>
Cc: pgsql-general@postgresql.org
Subject: Re: 10.4 upgrade, function markings, and template0
Date: Mon, 14 May 2018 14:30:40 -0700
Message-ID: <b9fdb292-5f34-ba92-b436-5d4021f01e47@aklaver.com> (raw)
In-Reply-To: <6047.1526332959@sss.pgh.pa.us>
References: <20180514144244.fe352659f5085e209594f3ff@xmission.com>
	<5113.1526331745@sss.pgh.pa.us>
	<275c6239-9308-0655-d47f-e37af264f139@aklaver.com>
	<6047.1526332959@sss.pgh.pa.us>

On 05/14/2018 02:22 PM, Tom Lane wrote:
> Adrian Klaver <adrian.klaver@aklaver.com> writes:
>> On 05/14/2018 02:02 PM, Tom Lane wrote:
>>> I didn't bother with spelling it all out in full detail this time,
>>> which maybe was a mistake, but I felt that probably most users
>>> wouldn't need to bother with these changes at all (unlike the case
>>> where a catalog correction is security-related).
> 
>> Well what is nice about the news release is you can cut and past the
>> entire list of commands and do the updates en masse.
> 
> It'd be nice to have some more-automated way of doing this type of
> correction.  Ordinary scripting doesn't look very promising, because
> I don't see an easy way to deal with the need to connect to every
> database in the cluster; that seems to depend on a lot of local
> characteristics about usernames and authentication >
> Maybe it'd be worth building some sort of infrastructure that would
> allow this to be done at a lower level.  It's not hard to imagine
> an autovacuum-like or bgworker-based thingy that could run around
> and apply a given SQL script in every database, bypassing the usual
> worries about authentication and connections-disabled databases.
> That seems like a lot of work for a need that only comes up once in
> awhile, but perhaps it'd have more applications than just catalog
> corrections.

That would be helpful given that a major version has a 5 year supported 
life span. I can see folks not deciding to do the manual work at the 
minor release because at that time it does not apply and the work does 
not seem worth it. Then at some point in the future conditions change 
and they wonder why things are not working the way they should. I know I 
would be grateful.

> 
> 			regards, tom lane
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com




view thread (8+ messages)  latest in thread

Message-ID: <b9fdb292-5f34-ba92-b436-5d4021f01e47@aklaver.com>
Permalink:  ../b9fdb292-5f34-ba92-b436-5d4021f01e47@aklaver.com/
Also on:    postgresql.org/message-id/b9fdb292-5f34-ba92-b436-5d4021f01e47@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, tgl@sss.pgh.pa.us, jonesd@xmission.com
  Subject: Re: 10.4 upgrade, function markings, and template0
  In-Reply-To: <b9fdb292-5f34-ba92-b436-5d4021f01e47@aklaver.com>
  References: <20180514144244.fe352659f5085e209594f3ff@xmission.com> <5113.1526331745@sss.pgh.pa.us> <275c6239-9308-0655-d47f-e37af264f139@aklaver.com> <6047.1526332959@sss.pgh.pa.us> <b9fdb292-5f34-ba92-b436-5d4021f01e47@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox