pg.ddx.io pgsql-bugs@postgresql.org mailing list archivehelp / color / mirror / Atom feed
BUG #13859: pg_upgrade permissions on Windows 3+ messages / 3 participants [nested] [flat]
* BUG #13859: pg_upgrade permissions on Windows @ 2016-01-10 18:23 igal@lucee.org 2016-01-18 17:41 ` Re: BUG #13859: pg_upgrade permissions on Windows Bruce Momjian <bruce@momjian.us> 0 siblings, 1 reply; 3+ messages in thread From: igal@lucee.org @ 2016-01-10 18:23 UTC (permalink / raw) To: pgsql-bugs The following bug has been logged on the website: Bug reference: 13859 Logged by: Igal Sapir Email address: igal@lucee.org PostgreSQL version: 9.5.0 Operating system: Windows 2008R2 Description: I'm not sure if this is a known issue or not, but in order to run pg_upgrade on Windows to upgrade from pgsql-9.4 to pgsql-9.5 I had to: 1) Give Write permissions to Everyone for the working directory, old-data directory, and new-data directory. * please note that I was running pg_upgrade as Administrator but still had to add those permissions 2) Set method to trust in pg_hba.conf for both the old database and the new database. If those are the requirements then it should be documented better in my opinion, though it might be better to make it less restrictive if possible. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs ^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: BUG #13859: pg_upgrade permissions on Windows 2016-01-10 18:23 BUG #13859: pg_upgrade permissions on Windows igal@lucee.org @ 2016-01-18 17:41 ` Bruce Momjian <bruce@momjian.us> 2016-01-18 18:20 ` Re: BUG #13859: pg_upgrade permissions on Windows Igal @ Lucee.org <igal@lucee.org> 0 siblings, 1 reply; 3+ messages in thread From: Bruce Momjian @ 2016-01-18 17:41 UTC (permalink / raw) To: igal@lucee.org; +Cc: pgsql-bugs On Sun, Jan 10, 2016 at 06:23:01PM +0000, igal@lucee.org wrote: > The following bug has been logged on the website: > > Bug reference: 13859 > Logged by: Igal Sapir > Email address: igal@lucee.org > PostgreSQL version: 9.5.0 > Operating system: Windows 2008R2 > Description: > > I'm not sure if this is a known issue or not, but in order to run pg_upgrade > on Windows to upgrade from pgsql-9.4 to pgsql-9.5 I had to: > > 1) Give Write permissions to Everyone for the working directory, old-data > directory, and new-data directory. > > * please note that I was running pg_upgrade as Administrator but still had > to add those permissions That is odd. We document: For Windows users, you must be logged into an administrative account, and then start a shell as the <literal>postgres</> user and set the proper path: I have not heard anyone else have this issue. > 2) Set method to trust in pg_hba.conf for both the old database and the new > database. > The documentation suggests pg_pass, though "trust" works too: <step> <title>Adjust authentication</title> <para> <command>pg_upgrade</> will connect to the old and new servers several times, so you might want to set authentication to <literal>peer</> in <filename>pg_hba.conf</> or use a <filename>~/.pgpass</> file (see <xref linkend="libpq-pgpass">). </para> </step> > If those are the requirements then it should be documented better in my > opinion, though it might be better to make it less restrictive if possible. -- Bruce Momjian <bruce@momjian.us> http://momjian.us EnterpriseDB http://enterprisedb.com + As you are, so once was I. As I am, so you will be. + + Roman grave inscription + -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs ^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: BUG #13859: pg_upgrade permissions on Windows 2016-01-10 18:23 BUG #13859: pg_upgrade permissions on Windows igal@lucee.org 2016-01-18 17:41 ` Re: BUG #13859: pg_upgrade permissions on Windows Bruce Momjian <bruce@momjian.us> @ 2016-01-18 18:20 ` Igal @ Lucee.org <igal@lucee.org> 0 siblings, 0 replies; 3+ messages in thread From: Igal @ Lucee.org @ 2016-01-18 18:20 UTC (permalink / raw) To: Bruce Momjian <bruce@momjian.us>; +Cc: pgsql-bugs Bruce, On 1/18/2016 9:41 AM, Bruce Momjian wrote: > On Sun, Jan 10, 2016 at 06:23:01PM +0000, igal@lucee.org wrote: >> The following bug has been logged on the website: >> >> Bug reference: 13859 >> Logged by: Igal Sapir >> Email address: igal@lucee.org >> PostgreSQL version: 9.5.0 >> Operating system: Windows 2008R2 >> Description: >> >> I'm not sure if this is a known issue or not, but in order to run pg_upgrade >> on Windows to upgrade from pgsql-9.4 to pgsql-9.5 I had to: >> >> 1) Give Write permissions to Everyone for the working directory, old-data >> directory, and new-data directory. >> >> * please note that I was running pg_upgrade as Administrator but still had >> to add those permissions > That is odd. We document: > > For Windows users, you must be logged into an administrative account, and > then start a shell as the <literal>postgres</> user and set the proper path: > > I have not heard anyone else have this issue. Thank you for replying. I have documented the issue at http://stackoverflow.com/questions/34664236/pg-upgrade-on-windows-cannot-write-to-log-file-pg-upgrad... at the time that I was experiencing it. Please note that I, like most Windows users who did not use the EnterpriseDB installer, do not have a "postgres" user account on my system. I use the "NT AUTHORITY\LocalService" or "NT AUTHORITY\NetworkService" to run PostgreSQL. >> 2) Set method to trust in pg_hba.conf for both the old database and the new >> database. >> > The documentation suggests pg_pass, though "trust" works too: > > <step> > <title>Adjust authentication</title> > > <para> > <command>pg_upgrade</> will connect to the old and new servers several > times, so you might want to set authentication to <literal>peer</> > in <filename>pg_hba.conf</> or use a <filename>~/.pgpass</> file > (see <xref linkend="libpq-pgpass">). > </para> > </step> Perhaps having a "postgres" account on my system would have resolved this issue as well. Thanks again, Igal -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs ^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2016-01-18 18:20 UTC | newest] Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2016-01-10 18:23 BUG #13859: pg_upgrade permissions on Windows igal@lucee.org 2016-01-18 17:41 ` Bruce Momjian <bruce@momjian.us> 2016-01-18 18:20 ` Igal @ Lucee.org <igal@lucee.org>
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