pg.ddx.io pgsql-bugs@postgresql.org mailing list archivehelp / color / mirror / Atom feed
BUG #13813: pg_upgrade fails to run pg_ctl 2+ messages / 2 participants [nested] [flat]
* BUG #13813: pg_upgrade fails to run pg_ctl @ 2015-12-13 04:37 romandashkov@gmail.com 2015-12-15 00:48 ` Re: BUG #13813: pg_upgrade fails to run pg_ctl Michael Paquier <michael.paquier@gmail.com> 0 siblings, 1 reply; 2+ messages in thread From: romandashkov@gmail.com @ 2015-12-13 04:37 UTC (permalink / raw) To: pgsql-bugs The following bug has been logged on the website: Bug reference: 13813 Logged by: Roman D Email address: romandashkov@gmail.com PostgreSQL version: 9.4.5 Operating system: Windows 10 x64 Description: I ran pg_upgrade as a test, trying to move data files from 9.4.5 to 9.4.5 (same version in two separate directories). Both old and new servers were off. Command issued: pg_upgrade --username postgres --no-paswword -old-datadir... -new-datadir... -old-bindir... -new-bindir... It failed with this a message like this: could not start old postmaster... with this command... "path\to\data-directory/pg_ctl" -option 1 -option 2... I noticed it is using a forward slash as a path to pg_ctl within the data directory. It should be using backward slash in windows. I'm sorry I was not able to record the error message exactly before it was lost (and the logs too). -- 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] 2+ messages in thread
* Re: BUG #13813: pg_upgrade fails to run pg_ctl 2015-12-13 04:37 BUG #13813: pg_upgrade fails to run pg_ctl romandashkov@gmail.com @ 2015-12-15 00:48 ` Michael Paquier <michael.paquier@gmail.com> 0 siblings, 0 replies; 2+ messages in thread From: Michael Paquier @ 2015-12-15 00:48 UTC (permalink / raw) To: romandashkov@gmail.com; +Cc: pgsql-bugs On Sun, Dec 13, 2015 at 1:37 PM, <romandashkov@gmail.com> wrote: > I ran pg_upgrade as a test, trying to move data files from 9.4.5 to 9.4.5 > (same version in two separate directories). Both old and new servers were > off. Command issued: > > pg_upgrade --username postgres --no-paswword -old-datadir... -new-datadir... > -old-bindir... -new-bindir... > > It failed with this a message like this: > > could not start old postmaster... with this command... > "path\to\data-directory/pg_ctl" -option 1 -option 2... > > I noticed it is using a forward slash as a path to pg_ctl within the data > directory. It should be using backward slash in windows. Both are recognized on Windows so that's not really an issue to mix them. > I'm sorry I was not able to record the error message exactly before it was > lost (and the logs too). It would be good to get more information, or it will be difficult to diagnose a problem, something that got fixed lately for pg_upgrade on Windows is for example the detection of copy failures: commit: 025106e314627f5aacdf72fca52ba0ed985d696e author: Bruce Momjian <bruce@momjian.us> date: Sat, 14 Nov 2015 11:47:12 -0500 pg_upgrade: properly detect file copy failure on Windows Previously, file copy failures were ignored on Windows due to an incorrect return value check. Perhaps you got bitten by that... Or not. Regards, -- Michael -- 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] 2+ messages in thread
end of thread, other threads:[~2015-12-15 00:48 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2015-12-13 04:37 BUG #13813: pg_upgrade fails to run pg_ctl romandashkov@gmail.com 2015-12-15 00:48 ` Michael Paquier <michael.paquier@gmail.com>
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