pg-upgrade

“cannot write to log file pg_upgrade_internal.log” when upgrading from Postgresql 9.1 to 9.3

痞子三分冷 提交于 2019-12-30 07:51:12
问题 I keep on getting the above error whenever I run the following command via a postgres user. /usr/lib/postgresql/9.3/bin/pg_upgrade \ -b /usr/lib/postgresql/9.1/bin/ \ -B /usr/lib/postgresql/9.3/bin/ \ -d /var/lib/postgresql/9.1/main \ -D /var/lib/postgresql/9.3/main cannot write to log file pg_upgrade_internal.log Failure, exiting I'm using Ubuntu 13.10. Both Postgresql 9.1 and 9.3 are running properly. 回答1: Make sure that you run this command from a directory that is writable by the postgres

pg_upgrade with brew mac os 9.6.2 - 10.5

我只是一个虾纸丫 提交于 2019-12-25 00:36:07
问题 I've followed the excellent guide here to upgrade from 9.6.2 to 10.5 on mac os 10.11.6. When I get to the step 6 pg_upgrade -b /usr/local/Cellar/postgresql/9.6.2/bin/ \ -B /usr/local/Cellar/postgresql/10.5/bin/ \ -d /usr/local/Cellar/postgres.old/ \ -D /usr/local/Cellar/postgres.new/ I get this error check for "/usr/local/Cellar/postgresql/9.6.2/bin" failed: No such file or directory even though mv /usr/local/Cellar/postgresql/9.6.2 /usr/local/Cellar/postgres.old ran ok. However when I go to

pg upgrade saving database definition taking time

假装没事ソ 提交于 2019-12-24 14:27:08
问题 I am in process of a pg_upgrade from 8.4 to 9.3. I am using this technique: http://momjian.us/main/writings/pgsql/pg_upgrade.pdf The upgrade has been running since 250 hours, and it has been on the step saving database definition since 160 hours. This is the current output of strace last few lines: poll([{fd=5, events=POLLIN|. POLLERR}], 1, -1) = 1 ([{fd=5, revents=POLLIN}]) recvfrom(5, "T\0\0\0F \0\2reltoastrelid\0\0\0\4\353\0\n \0\0\0\32\0"..., 16384, 0, NULL, NULL) = 122 (5, "Q\0\0\0

CentOS 7 pg_upgrade Permissions Errors

房东的猫 提交于 2019-12-24 01:36:14
问题 I'm trying to migrate PostgreSQL from 9.2 to 10.2 on CentOS 7 I've installed the new version, and I'm trying to implement the changeover: /usr/pgsql-10/bin/pg_upgrade --old-datadir /var/lib/pgsql/data/ --new-datadir /var/lib/pgsql/10/data/ \ --old-bindir /usr/bin/ --new-bindir /usr/pgsql-10/bin/ The error I'm getting is: could not open version file: /var/lib/pgsql/data/PG_VERSION Failure, exiting I try as root, and pg_upgrade cannot be run as root. /var/lib/pgsql belongs to postgres:postgres

PostgreSQL 10 => 11.1 on Brew Update Issues

陌路散爱 提交于 2019-12-11 17:55:06
问题 Trying to find a migration route from PostgreSQL 10.6 to postgreSQL 11.1 . Using pg_upgrade , from both versions, give me errors. From 11.1 which I thought would be used to bring outdated tables to currency: $ /usr/local/Cellar/postgresql/11.1/bin/pg_upgrade -v \ > -b /usr/local/Cellar/postgresql@10/10.6/bin \ > -B /usr/local/Cellar/postgresql/11.1/bin \ > -d /usr/local/var/postgres \ > -D /usr/local/var/postgres Running in verbose mode Performing Consistency Checks --------------------------

pg_upgrade on Windows cannot write to log file pg_upgrade_internal.log

↘锁芯ラ 提交于 2019-12-01 03:21:44
问题 I'm trying to run pg_upgrade on Windows 2008R2, but I'm getting the error: cannot write to log file pg_upgrade_internal.log Failure, exiting I saw a similar question for Linux at 23216734 which explains that the issue is with permissions, but it doesn't help with Windows as I do not have a user named postgres Same goes for the pg_upgrade docs, which mention a postgres user: RUNAS /USER:postgres "CMD.EXE" But again, I do not have such a user, and am trying to run this command as Administrator

“cannot write to log file pg_upgrade_internal.log” when upgrading from Postgresql 9.1 to 9.3

随声附和 提交于 2019-12-01 02:07:58
I keep on getting the above error whenever I run the following command via a postgres user. /usr/lib/postgresql/9.3/bin/pg_upgrade \ -b /usr/lib/postgresql/9.1/bin/ \ -B /usr/lib/postgresql/9.3/bin/ \ -d /var/lib/postgresql/9.1/main \ -D /var/lib/postgresql/9.3/main cannot write to log file pg_upgrade_internal.log Failure, exiting I'm using Ubuntu 13.10. Both Postgresql 9.1 and 9.3 are running properly. Make sure that you run this command from a directory that is writable by the postgres user, like /tmp or /var/lib/postgresql : $ cd /tmp $ usr/lib/postgresql/9.3/bin/pg_upgrade ... 来源: https:/