Re: Allowing multiple versions of PG under NetBSD

Поиск
Список
Период
Сортировка
Искать
От
Larry Rosenman
Тема
Re: Allowing multiple versions of PG under NetBSD
Дата
Msg-id
d8e53e1987878d75aff964eb6f882902@thebighonker.lerctr.org
Ответ на
Список
Дерево обсуждения
Uber migrated from Postgres to MySQL Guyren Howe <guyren@gmail.com>
Re: Uber migrated from Postgres to MySQL "Joshua D. Drake" <jd@commandprompt.com>
Re: Uber migrated from Postgres to MySQL Chris Travers <chris.travers@gmail.com>
Re: Uber migrated from Postgres to MySQL Bruce Momjian <bruce@momjian.us>
Re: Uber migrated from Postgres to MySQL Bruce Momjian <bruce@momjian.us>
Re: Uber migrated from Postgres to MySQL Dorian Hoxha <dorian.hoxha@gmail.com>
Re: Uber migrated from Postgres to MySQL Rakesh Kumar <rakeshkumar464a3@gmail.com>
Re: Uber migrated from Postgres to MySQL "Joshua D. Drake" <jd@commandprompt.com>
Re: Uber migrated from Postgres to MySQL Rakesh Kumar <rakeshkumar464a3@gmail.com>
Re: Uber migrated from Postgres to MySQL Condor <condor@stz-bg.com>
Re: Uber migrated from Postgres to MySQL Achilleas Mantzios <achill@matrix.gatewaynet.com>
Re: Uber migrated from Postgres to MySQL Scott Mead <scottm@openscg.com>
Re: Uber migrated from Postgres to MySQL Bruce Momjian <bruce@momjian.us>
Re: Uber migrated from Postgres to MySQL Jerry Sievers <gsievers19@comcast.net>
Re: Uber migrated from Postgres to MySQL Stephen Frost <sfrost@snowman.net>
Re: Uber migrated from Postgres to MySQL Bruce Momjian <bruce@momjian.us>
Re: Uber migrated from Postgres to MySQL Rakesh Kumar <rakeshkumar464a3@gmail.com>
Re: Uber migrated from Postgres to MySQL Bruce Momjian <bruce@momjian.us>
Re: Uber migrated from Postgres to MySQL Bruce Momjian <bruce@momjian.us>
Re: Uber migrated from Postgres to MySQL Bruce Momjian <bruce@momjian.us>
Re: Uber migrated from Postgres to MySQL Marc Fournier <marc.fournier@2ndquadrant.com>
Re: Uber migrated from Postgres to MySQL Bruce Momjian <bruce@momjian.us>
Re: Uber migrated from Postgres to MySQL Rakesh Kumar <rakeshkumar464a3@gmail.com>
Re: Uber migrated from Postgres to MySQL Andrew Sullivan <ajs@crankycanuck.ca>
Re: Uber migrated from Postgres to MySQL Rakesh Kumar <rakeshkumar464a3@gmail.com>
Re: Uber migrated from Postgres to MySQL Bruce Momjian <bruce@momjian.us>
Re: Uber migrated from Postgres to MySQL Rakesh Kumar <rakeshkumar464a3@gmail.com>
Re: Uber migrated from Postgres to MySQL Bruce Momjian <bruce@momjian.us>
Re: Uber migrated from Postgres to MySQL Alex Ignatov <a.ignatov@postgrespro.ru>
Re: Uber migrated from Postgres to MySQL Rakesh Kumar <rakeshkumar464a3@gmail.com>
Re: Uber migrated from Postgres to MySQL Alex Ignatov <a.ignatov@postgrespro.ru>
Re: Uber migrated from Postgres to MySQL Igor Neyman <ineyman@perceptron.com>
Re: Uber migrated from Postgres to MySQL Alex Ignatov <a.ignatov@postgrespro.ru>
Re: Uber migrated from Postgres to MySQL Igor Neyman <ineyman@perceptron.com>
Re: Uber migrated from Postgres to MySQL Alex Ignatov <a.ignatov@postgrespro.ru>
Re: Uber migrated from Postgres to MySQL "D'Arcy J.M. Cain" <darcy@druid.net>
Re: Uber migrated from Postgres to MySQL Chris Travers <chris.travers@gmail.com>
Re: Uber migrated from Postgres to MySQL Scott Marlowe <scott.marlowe@gmail.com>
Re: Uber migrated from Postgres to MySQL Alex Ignatov <a.ignatov@postgrespro.ru>
Re: Uber migrated from Postgres to MySQL Rakesh Kumar <rakeshkumar464a3@gmail.com>
Re: Uber migrated from Postgres to MySQL Scott Marlowe <scott.marlowe@gmail.com>
Re: Uber migrated from Postgres to MySQL "Joshua D. Drake" <jd@commandprompt.com>
Re: Uber migrated from Postgres to MySQL Igor Neyman <ineyman@perceptron.com>
Re: Uber migrated from Postgres to MySQL Geoff Winkless <pgsqladmin@geoff.dj>
Re: Uber migrated from Postgres to MySQL Kevin Grittner <kgrittn@gmail.com>
Re: Uber migrated from Postgres to MySQL Andrew Sullivan <ajs@crankycanuck.ca>
Re: Uber migrated from Postgres to MySQL Patrick B <patrickbakerbr@gmail.com>
pg_upgrade and not working (was Re: Uber migrated from Postgres to MySQL) Andrew Sullivan <ajs@crankycanuck.ca>
Re: Uber migrated from Postgres to MySQL Kevin Grittner <kgrittn@gmail.com>
Re: Uber migrated from Postgres to MySQL Patrick B <patrickbakerbr@gmail.com>
Re: Uber migrated from Postgres to MySQL Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Uber migrated from Postgres to MySQL Bruce Momjian <bruce@momjian.us>
Re: Uber migrated from Postgres to MySQL Geoff Winkless <pgsqladmin@geoff.dj>
Re: Uber migrated from Postgres to MySQL Andrew Sullivan <ajs@crankycanuck.ca>
Re: Uber migrated from Postgres to MySQL Geoff Winkless <pgsqladmin@geoff.dj>
Re: Uber migrated from Postgres to MySQL Scott Marlowe <scott.marlowe@gmail.com>
Re: Uber migrated from Postgres to MySQL James Keener <jim@jimkeener.com>
Re: Uber migrated from Postgres to MySQL Chris Travers <chris.travers@gmail.com>
Re: Uber migrated from Postgres to MySQL Edson Richter <edsonrichter@hotmail.com>
Re: Uber migrated from Postgres to MySQL Achilleas Mantzios <achill@matrix.gatewaynet.com>
Re: Uber migrated from Postgres to MySQL Chris Travers <chris.travers@gmail.com>
Re: Uber migrated from Postgres to MySQL Chris Travers <chris.travers@gmail.com>
Re: Uber migrated from Postgres to MySQL Vik Fearing <vik@2ndquadrant.fr>
Re: Uber migrated from Postgres to MySQL Tatsuo Ishii <ishii@sraoss.co.jp>
Re: Uber migrated from Postgres to MySQL Simon Riggs <simon@2ndquadrant.com>
Re: Uber migrated from Postgres to MySQL Tatsuo Ishii <ishii@sraoss.co.jp>
Re: Uber migrated from Postgres to MySQL Simon Riggs <simon@2ndquadrant.com>
Re: Uber migrated from Postgres to MySQL Tatsuo Ishii <ishii@sraoss.co.jp>
Re: Uber migrated from Postgres to MySQL Jerry Sievers <gsievers19@comcast.net>
Re: Uber migrated from Postgres to MySQL Condor <condor@stz-bg.com>
Re: Uber migrated from Postgres to MySQL Kevin Grittner <kgrittn@gmail.com>
Re: Uber migrated from Postgres to MySQL Marc Fournier <marc.fournier@2ndquadrant.com>
Re: Uber migrated from Postgres to MySQL "Greg Sabino Mullane" <greg@turnstep.com>
Re: Uber migrated from Postgres to MySQL Bruce Momjian <bruce@momjian.us>
Re: Uber migrated from Postgres to MySQL Jeff Janes <jeff.janes@gmail.com>
Re: Uber migrated from Postgres to MySQL John R Pierce <pierce@hogranch.com>
Re: Uber migrated from Postgres to MySQL James Keener <jim@jimkeener.com>
Re: Uber migrated from Postgres to MySQL Jeff Janes <jeff.janes@gmail.com>
Re: Uber migrated from Postgres to MySQL Bruce Momjian <bruce@momjian.us>
Re: Uber migrated from Postgres to MySQL Jeff Janes <jeff.janes@gmail.com>
Re: Uber migrated from Postgres to MySQL Bruce Momjian <bruce@momjian.us>
Re: Uber migrated from Postgres to MySQL Joe Conway <mail@joeconway.com>
Re: Uber migrated from Postgres to MySQL "Joshua D. Drake" <jd@commandprompt.com>
Re: Uber migrated from Postgres to MySQL John R Pierce <pierce@hogranch.com>
Re: Uber migrated from Postgres to MySQL Bruce Momjian <bruce@momjian.us>
Re: Uber migrated from Postgres to MySQL Kevin Grittner <kgrittn@gmail.com>
Re: Uber migrated from Postgres to MySQL Jason Dusek <jason.dusek@gmail.com>
Re: Uber migrated from Postgres to MySQL Gavin Flower <GavinFlower@archidevsys.co.nz>
Re: Uber migrated from Postgres to MySQL Jason Dusek <jason.dusek@gmail.com>
Re: Uber migrated from Postgres to MySQL "Maeldron T." <maeldron@gmail.com>
Re: Uber migrated from Postgres to MySQL Bruce Momjian <bruce@momjian.us>
Re: Uber migrated from Postgres to MySQL Larry Rosenman <ler@lerctr.org>
Re: Uber migrated from Postgres to MySQL "D'Arcy J.M. Cain" <darcy@druid.net>
Re: Uber migrated from Postgres to MySQL Bruce Momjian <bruce@momjian.us>
Re: Allowing multiple versions of PG under NetBSD "D'Arcy J.M. Cain" <darcy@druid.net>
Re: Allowing multiple versions of PG under NetBSD Larry Rosenman <ler@lerctr.org>
Re: Allowing multiple versions of PG under NetBSD Larry Rosenman <ler@lerctr.org>
Re: Allowing multiple versions of PG under NetBSD "D'Arcy J.M. Cain" <darcy@druid.net>
Re: Allowing multiple versions of PG under NetBSD Larry Rosenman <ler@lerctr.org>
Re: Allowing multiple versions of PG under NetBSD Kevin Grittner <kgrittn@gmail.com>
Re: Allowing multiple versions of PG under NetBSD Adrian Klaver <adrian.klaver@aklaver.com>
Re: Allowing multiple versions of PG under NetBSD Bruce Momjian <bruce@momjian.us>
Re: Allowing multiple versions of PG under NetBSD Larry Rosenman <ler@lerctr.org>
Re: Allowing multiple versions of PG under NetBSD Stephen Frost <sfrost@snowman.net>
Re: Allowing multiple versions of PG under NetBSD Thomas Munro <thomas.munro@enterprisedb.com>
Re: Uber migrated from Postgres to MySQL Achilleas Mantzios <achill@matrix.gatewaynet.com>
Re: Uber migrated from Postgres to MySQL Amitabh Kant <amitabhkant@gmail.com>
On 2016-07-29 15:04, D'Arcy J.M. Cain wrote:
> On Fri, 29 Jul 2016 15:07:53 -0400
> Bruce Momjian  wrote:
>> > The answer is either chroot or mount and run pg_upgrade on another
>> > server. If you can afford the downtime you can also delete PG,
>> > install the new version and run pg_upgrade without modifying the
>> > existing DB. If it succeeds then replace the directories and
>> > restart the new version.  If it fails then uninstall PG, reinstall
>> > the older version and restart. Lather, rinse, repeat until it
>> > upgrades cleanly.
>> 
>> pg_upgrade needs to run the old and new server binaries as part of its
>> operation, so that would not work.
> 
> My mistake.  I must have used the chroot idea last time I did an
> upgrade.
> 
> I might take a look at the NetBSD package (I'm a developer) to see how
> hard it would be to allow multiple versions.  We do keep all the lib
> stuff in a separate directory so that part would be relatively simple.
> We just need to find all the binaries and make the names versioned and
> add a symlink to the user selected primary version to the bare version
> of the binary name.  Example:
>  - psql.8.3
>  - psql.9.1
>  - psql.9.3
>  - psql ==> psql.9.3
> 
> Other than linking to the correct library can you think of any other
> issues with this?

Data Directory naming, as well as keeping the init-scripts straight.

-- 
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 214-642-9640                 E-Mail: ler@lerctr.org
US Mail: 17716 Limpia Crk, Round Rock, TX 78664-7281

В списке pgsql-general по дате отправления
От: D'Arcy J.M. Cain
Дата:
От: Larry Rosenman
Дата:
FAQ