]> granicus.if.org Git - postgresql/commit
Fix process startup in pg_rewind.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 7 Apr 2015 20:04:25 +0000 (23:04 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 7 Apr 2015 20:05:25 +0000 (23:05 +0300)
commit8a06c36aff4a94e5ffc3876cd85a1a16a82c754e
tree88f983a406546a4c3164cbb01c710be160ed58bb
parent1cdf4d0b6ac41e200d904d3fe293e43e07fd3e3c
Fix process startup in pg_rewind.

Don't allow pg_rewind to run as root on Unix platforms, as any new or
replaced files in the data directory would become owned by root. On Windows,
it can run under a user that has Administrator rights, but a restricted
token needs to be used. This is the same we do e.g. in pg_resetxlog.

Also, add missing set_pglocale_pgservice() call, to fix localization.

Michael Paquier and Fujii Masao
src/bin/pg_rewind/nls.mk
src/bin/pg_rewind/pg_rewind.c