Re: Resurrecting pg_upgrade

From: "Marc G(dot) Fournier" <scrappy(at)postgresql(dot)org>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: Resurrecting pg_upgrade
Date: 2003-12-12 20:24:00
Message-ID: 20031212161940.K81928@ganymede.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, 12 Dec 2003, Peter Eisentraut wrote:

> Tom Lane wrote:
> > I think it's important to be able to run pg_upgrade with the
> > postmaster shut down. Otherwise there is too much risk that some
> > other user will change the database while we are working. The
> > original pg_upgrade script left it to the DBA to ensure this wouldn't
> > happen, but that seems like a foot-gun of much too large caliber.
> > Instead, all operations should be done through a standalone backend.
> > An additional advantage of doing it this way is that a standalone
> > backend is implicitly superuser, and so no SQL permissions issues
> > will get in the way.
>
> This would also be a nice solution for people who want a standalone,
> server-less database system. But for the purpose of pg_upgrade it
> seems like a lot of work for what could just be a magic switch in the
> postmaster to really kick everyone else out.

I was going to ask that one, in relation to a 'READONLY' mode that only
the superuse can do writes (ie. single master, multi slave with slaves
used as readonly databases), but ... how often do ppl write apps that
connect as the superuse in their normal interactions? I know in our case,
even though I should know better, we still do it to a large extent ... so
how would you know who to legitimately 'kick out'?

Hrmmmmm ... how about a READ ONLY EXCEPT FROM <IP> mode? In the case of a
slave, the IP would be the master server itself ... in the case of
pg_upgrade, it would be localhost?

Then again, in the case of pg_upgrade, wouldn't just disabling access from
anywhere except localhost prevent others from getting in?

----
Marc G. Fournier Hub.Org Networking Services (http://www.hub.org)
Email: scrappy(at)hub(dot)org Yahoo!: yscrappy ICQ: 7615664

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2003-12-12 20:26:40 Re: Resurrecting pg_upgrade
Previous Message Matthew T. O'Connor 2003-12-12 20:19:40 Re: Resurrecting pg_upgrade