pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Run pg_upgrade and pg_resetxlog with restricted token on Windows 6+ messages / 1 participants [nested] [flat]
* pgsql: Run pg_upgrade and pg_resetxlog with restricted token on Windows @ 2015-03-30 21:20 Andrew Dunstan <andrew@dunslane.net> 0 siblings, 0 replies; 6+ messages in thread From: Andrew Dunstan @ 2015-03-30 21:20 UTC (permalink / raw) To: pgsql-committers Run pg_upgrade and pg_resetxlog with restricted token on Windows As with initdb these programs need to run with a restricted token, and if they don't pg_upgrade will fail when run as a user with Adminstrator privileges. Backpatch to all live branches. On the development branch the code is reorganized so that the restricted token code is now in a single location. On the stable bramches a less invasive change is made by simply copying the relevant code to pg_upgrade.c and pg_resetxlog.c. Patches and bug report from Muhammad Asif Naeem, reviewed by Michael Paquier, slightly edited by me. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/fa1e5afa8a26d467aec7c8b36a0b749b690f636c Modified Files -------------- contrib/pg_upgrade/pg_upgrade.c | 3 + src/bin/initdb/initdb.c | 170 +---------------------------- src/bin/pg_resetxlog/pg_resetxlog.c | 3 + src/common/Makefile | 2 +- src/common/restricted_token.c | 193 +++++++++++++++++++++++++++++++++ src/include/common/restricted_token.h | 24 ++++ src/test/regress/pg_regress.c | 105 ++---------------- src/tools/msvc/Mkvcbuild.pm | 3 +- 8 files changed, 235 insertions(+), 268 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Run pg_upgrade and pg_resetxlog with restricted token on Windows @ 2015-03-30 21:20 Andrew Dunstan <andrew@dunslane.net> 0 siblings, 0 replies; 6+ messages in thread From: Andrew Dunstan @ 2015-03-30 21:20 UTC (permalink / raw) To: pgsql-committers Run pg_upgrade and pg_resetxlog with restricted token on Windows As with initdb these programs need to run with a restricted token, and if they don't pg_upgrade will fail when run as a user with Adminstrator privileges. Backpatch to all live branches. On the development branch the code is reorganized so that the restricted token code is now in a single location. On the stable bramches a less invasive change is made by simply copying the relevant code to pg_upgrade.c and pg_resetxlog.c. Patches and bug report from Muhammad Asif Naeem, reviewed by Michael Paquier, slightly edited by me. Branch ------ REL9_4_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/2366761bf9eb8e9aa3820b9f3491bcfc48b8188f Modified Files -------------- contrib/pg_upgrade/pg_upgrade.c | 166 +++++++++++++++++++++++++++++++++++ src/bin/pg_resetxlog/pg_resetxlog.c | 166 +++++++++++++++++++++++++++++++++++ 2 files changed, 332 insertions(+) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Run pg_upgrade and pg_resetxlog with restricted token on Windows @ 2015-03-30 21:20 Andrew Dunstan <andrew@dunslane.net> 0 siblings, 0 replies; 6+ messages in thread From: Andrew Dunstan @ 2015-03-30 21:20 UTC (permalink / raw) To: pgsql-committers Run pg_upgrade and pg_resetxlog with restricted token on Windows As with initdb these programs need to run with a restricted token, and if they don't pg_upgrade will fail when run as a user with Adminstrator privileges. Backpatch to all live branches. On the development branch the code is reorganized so that the restricted token code is now in a single location. On the stable bramches a less invasive change is made by simply copying the relevant code to pg_upgrade.c and pg_resetxlog.c. Patches and bug report from Muhammad Asif Naeem, reviewed by Michael Paquier, slightly edited by me. Branch ------ REL9_3_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/0904eb3e19842dd103adb6a8b3f65987b678a0e6 Modified Files -------------- contrib/pg_upgrade/pg_upgrade.c | 166 +++++++++++++++++++++++++++++++++++ src/bin/pg_resetxlog/pg_resetxlog.c | 165 ++++++++++++++++++++++++++++++++++ 2 files changed, 331 insertions(+) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Run pg_upgrade and pg_resetxlog with restricted token on Windows @ 2015-03-30 21:20 Andrew Dunstan <andrew@dunslane.net> 0 siblings, 0 replies; 6+ messages in thread From: Andrew Dunstan @ 2015-03-30 21:20 UTC (permalink / raw) To: pgsql-committers Run pg_upgrade and pg_resetxlog with restricted token on Windows As with initdb these programs need to run with a restricted token, and if they don't pg_upgrade will fail when run as a user with Adminstrator privileges. Backpatch to all live branches. On the development branch the code is reorganized so that the restricted token code is now in a single location. On the stable bramches a less invasive change is made by simply copying the relevant code to pg_upgrade.c and pg_resetxlog.c. Patches and bug report from Muhammad Asif Naeem, reviewed by Michael Paquier, slightly edited by me. Branch ------ REL9_2_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/9485663134c1c3d131bcdef8745d69871b193baf Modified Files -------------- contrib/pg_upgrade/pg_upgrade.c | 166 ++++++++++++++++++++++++++++++++ src/bin/pg_resetxlog/pg_resetxlog.c | 180 +++++++++++++++++++++++++++++++++++ 2 files changed, 346 insertions(+) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Run pg_upgrade and pg_resetxlog with restricted token on Windows @ 2015-03-30 21:20 Andrew Dunstan <andrew@dunslane.net> 0 siblings, 0 replies; 6+ messages in thread From: Andrew Dunstan @ 2015-03-30 21:20 UTC (permalink / raw) To: pgsql-committers Run pg_upgrade and pg_resetxlog with restricted token on Windows As with initdb these programs need to run with a restricted token, and if they don't pg_upgrade will fail when run as a user with Adminstrator privileges. Backpatch to all live branches. On the development branch the code is reorganized so that the restricted token code is now in a single location. On the stable bramches a less invasive change is made by simply copying the relevant code to pg_upgrade.c and pg_resetxlog.c. Patches and bug report from Muhammad Asif Naeem, reviewed by Michael Paquier, slightly edited by me. Branch ------ REL9_1_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/22b3f5b26e4eea5e598c7898a77e9368ffadbebb Modified Files -------------- contrib/pg_upgrade/pg_upgrade.c | 167 ++++++++++++++++++++++++++++++++ src/bin/pg_resetxlog/pg_resetxlog.c | 180 +++++++++++++++++++++++++++++++++++ 2 files changed, 347 insertions(+) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Run pg_upgrade and pg_resetxlog with restricted token on Windows @ 2015-03-30 21:20 Andrew Dunstan <andrew@dunslane.net> 0 siblings, 0 replies; 6+ messages in thread From: Andrew Dunstan @ 2015-03-30 21:20 UTC (permalink / raw) To: pgsql-committers Run pg_upgrade and pg_resetxlog with restricted token on Windows As with initdb these programs need to run with a restricted token, and if they don't pg_upgrade will fail when run as a user with Adminstrator privileges. Backpatch to all live branches. On the development branch the code is reorganized so that the restricted token code is now in a single location. On the stable bramches a less invasive change is made by simply copying the relevant code to pg_upgrade.c and pg_resetxlog.c. Patches and bug report from Muhammad Asif Naeem, reviewed by Michael Paquier, slightly edited by me. Branch ------ REL9_0_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/bf22a8e5854a4d3a190d2639d508a7827645a0c4 Modified Files -------------- contrib/pg_upgrade/pg_upgrade.c | 182 +++++++++++++++++++++++++++++++++++ src/bin/pg_resetxlog/pg_resetxlog.c | 182 +++++++++++++++++++++++++++++++++++ 2 files changed, 364 insertions(+) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2015-03-30 21:20 UTC | newest] Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2015-03-30 21:20 pgsql: Run pg_upgrade and pg_resetxlog with restricted token on Windows Andrew Dunstan <andrew@dunslane.net> 2015-03-30 21:20 pgsql: Run pg_upgrade and pg_resetxlog with restricted token on Windows Andrew Dunstan <andrew@dunslane.net> 2015-03-30 21:20 pgsql: Run pg_upgrade and pg_resetxlog with restricted token on Windows Andrew Dunstan <andrew@dunslane.net> 2015-03-30 21:20 pgsql: Run pg_upgrade and pg_resetxlog with restricted token on Windows Andrew Dunstan <andrew@dunslane.net> 2015-03-30 21:20 pgsql: Run pg_upgrade and pg_resetxlog with restricted token on Windows Andrew Dunstan <andrew@dunslane.net> 2015-03-30 21:20 pgsql: Run pg_upgrade and pg_resetxlog with restricted token on Windows Andrew Dunstan <andrew@dunslane.net>
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