unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* A plan for upgrading postgres?
@ 2016-06-23 15:13 Christopher Allan Webber
  2016-06-24 12:48 ` Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Christopher Allan Webber @ 2016-06-23 15:13 UTC (permalink / raw)
  To: guix-devel

Heya everyone,

I'm not sure anyone else is seriously running postgresql right now, but
I've been using it for some test development, and eventually I intend to
deploy to GNU Guix machines.

I think to do this, we'll need to keep around the prior version of
postgres.  pg_upgrade requires it:

  https://www.postgresql.org/docs/9.4/static/pgupgrade.html

I think the right approach will be to keep around the prior version,
eg postgresql-9.4, as a first step.  As a second step, it might be nice
to have a package that's something like "postgres-upgrade-recent" which
has all the shorthands for pointing at both the prior postgres binary
and this one, and so hands the user a single script for running the
upgrade.

Just thought I'd write this out while thinking about it.  Does it make
sense?

 - Chris

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: A plan for upgrading postgres?
  2016-06-23 15:13 A plan for upgrading postgres? Christopher Allan Webber
@ 2016-06-24 12:48 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2016-06-24 12:48 UTC (permalink / raw)
  To: Christopher Allan Webber; +Cc: guix-devel

Hi, Chris!

Christopher Allan Webber <cwebber@dustycloud.org> skribis:

> I think to do this, we'll need to keep around the prior version of
> postgres.  pg_upgrade requires it:
>
>   https://www.postgresql.org/docs/9.4/static/pgupgrade.html
>
> I think the right approach will be to keep around the prior version,
> eg postgresql-9.4, as a first step.  As a second step, it might be nice
> to have a package that's something like "postgres-upgrade-recent" which
> has all the shorthands for pointing at both the prior postgres binary
> and this one, and so hands the user a single script for running the
> upgrade.

According to the description, we must keep a package of the previous
major version so that we can pass it to ‘pg_upgrade -b’.

I agree that it would be convenient to have a ‘postgresql-upgrade’
package that would contain a program roughly doing:

  NEW/bin/pg_upgrade -b OLD/bin -B NEW/bin "$@"

(Disclaimer: I have little experience with PG!)

Ludo’.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-06-24 12:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-23 15:13 A plan for upgrading postgres? Christopher Allan Webber
2016-06-24 12:48 ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).