Problem with pg_upgrade (8.4 -> 9.0) due to ALTER DATABASE SET ROLE

Поиск
Список
Период
Сортировка
Искать
От
Florian Pflug
Тема
Problem with pg_upgrade (8.4 -> 9.0) due to ALTER DATABASE SET ROLE
Дата
Msg-id
A42848D9-D6DC-4C45-A6F7-27D363571CF0@phlo.org
Список
Дерево обсуждения
Problem with pg_upgrade (8.4 -> 9.0) due to ALTER DATABASE SET ROLE Florian Pflug <fgp@phlo.org>
Re: Problem with pg_upgrade (8.4 -> 9.0) due to ALTER DATABASE SET ROLE Bruce Momjian <bruce@momjian.us>
Re: Problem with pg_upgrade (8.4 -> 9.0) due to ALTER DATABASE SET ROLE Robert Haas <robertmhaas@gmail.com>
Re: Problem with pg_upgrade (8.4 -> 9.0) due to ALTER DATABASE SET ROLE Bruce Momjian <bruce@momjian.us>
Re: Problem with pg_upgrade (8.4 -> 9.0) due to ALTER DATABASE SET ROLE Florian Pflug <fgp@phlo.org>
Re: Problem with pg_upgrade (8.4 -> 9.0) due to ALTER DATABASE SET ROLE Bruce Momjian <bruce@momjian.us>
Re: Problem with pg_upgrade (8.4 -> 9.0) due to ALTER DATABASE SET ROLE Tom Lane <tgl@sss.pgh.pa.us>
Re: Problem with pg_upgrade (8.4 -> 9.0) due to ALTER DATABASE SET ROLE Florian Pflug <fgp@phlo.org>
Re: Problem with pg_upgrade (8.4 -> 9.0) due to ALTER DATABASE SET ROLE Bruce Momjian <bruce@momjian.us>
Re: Problem with pg_upgrade (8.4 -> 9.0) due to ALTER DATABASE SET ROLE Andrew Dunstan <andrew@dunslane.net>
Re: Problem with pg_upgrade (8.4 -> 9.0) due to ALTER DATABASE SET ROLE Robert Haas <robertmhaas@gmail.com>
Re: Problem with pg_upgrade (8.4 -> 9.0) due to ALTER DATABASE SET ROLE Bruce Momjian <bruce@momjian.us>
Re: Problem with pg_upgrade (8.4 -> 9.0) due to ALTER DATABASE SET ROLE Robert Haas <robertmhaas@gmail.com>
Re: Problem with pg_upgrade (8.4 -> 9.0) due to ALTER DATABASE SET ROLE Bruce Momjian <bruce@momjian.us>
Re: Problem with pg_upgrade (8.4 -> 9.0) due to ALTER DATABASE SET ROLE Robert Haas <robertmhaas@gmail.com>
Re: Problem with pg_upgrade (8.4 -> 9.0) due to ALTER DATABASE SET ROLE Tom Lane <tgl@sss.pgh.pa.us>
Re: Problem with pg_upgrade (8.4 -> 9.0) due to ALTER DATABASE SET ROLE Robert Haas <robertmhaas@gmail.com>
Re: Problem with pg_upgrade (8.4 -> 9.0) due to ALTER DATABASE SET ROLE Florian Pflug <fgp@phlo.org>
Re: Problem with pg_upgrade (8.4 -> 9.0) due to ALTER DATABASE SET ROLE Tom Lane <tgl@sss.pgh.pa.us>
Re: Problem with pg_upgrade (8.4 -> 9.0) due to ALTER DATABASE SET ROLE Florian Pflug <fgp@phlo.org>
Re: Problem with pg_upgrade (8.4 -> 9.0) due to ALTER DATABASE SET ROLE Florian Pflug <fgp@phlo.org>
Hi

I've just ran into a problem while upgrading from 8.4 to 9.0.

pg_upgrade aborted during the step "Adding support functions to new cluster" with "ERROR:  permission denied for language c" error. Unfortunately, the log didn't include the name of the database where the error occurred, so it took me a while to figure out that the culprit was a "ALTER DATABASE SET ROLE = " I had done on one of my databases, which effectively prevented pg_upgrade from connection with superuser privileges.

While one could argue that this behaviour is perfectly consistent, I believe most users will expect pg_upgrade (and to a lesser extent also pg_dump and pg_restore) to be unaffected by such settings.

Should we provide a way (for super-users only, of course) to skip per-database/per-role settings when connecting?

best regards
Florian Pflug


В списке pgsql-hackers по дате отправления
От: Florian Pflug
Дата:
От: Simon Riggs
Дата:
FAQ