Re: pg_upgrade : 9.X to 11.X issue CentoOS 7.6

2019-07-23 Thread Perumal Raj
Sorry i missed to refer link. https://dba.stackexchange.com/questions/50135/pg-upgrade-unrecognized-configuration-parameter-unix-socket-directory On Tue, Jul 23, 2019 at 9:20 AM Tom Lane wrote: > Perumal Raj writes: > > Finally upgrade completed successfully after implementing the following >

Re: pg_upgrade : 9.X to 11.X issue CentoOS 7.6

2019-07-23 Thread Tom Lane
Perumal Raj writes: > Finally upgrade completed successfully after implementing the following > Workaround. You didn't say where you got these executables from, but if the 9.2 and 11 packages were from the same packager, you should complain to them about it. If they're patching 9.2 to have unix_

Re: pg_upgrade : 9.X to 11.X issue CentoOS 7.6

2019-07-23 Thread Perumal Raj
Hi All, Finally upgrade completed successfully after implementing the following Workaround. mv /usr/bin/pg_ctl{,-orig} echo '#!/bin/bash' > /usr/bin/pg_ctl echo '"$0"-orig "${@/unix_socket_directory/unix_socket_directories}"' >> /usr/bin/pg_ctl chmod +x /usr/bin/pg_ctl *Special thanks to ''Z

Re: pg_upgrade : 9.X to 11.X issue CentoOS 7.6

2019-07-23 Thread Perumal Raj
Hi All, Yes, , bin file correct only as it came up with CentOS 7.6 . Anyhow , thanks for the pointers which helped me to look at hacking solution :-) Currently , upgrade is running. will keep u posted with results. Thanks, On Tue, Jul 23, 2019 at 7:43 AM Tom Lane wrote: > Adrian Klaver writ

Re: pg_upgrade : 9.X to 11.X issue CentoOS 7.6

2019-07-23 Thread Tom Lane
Adrian Klaver writes: > On 7/23/19 7:17 AM, Perumal Raj wrote: >> command: "/usr/pgsql-9.2/bin/pg_ctl" -w -l "pg_upgrade_server.log" -D >> "/data/db/data" -o "-p 5432 -b -c listen_addresses='' -c >> unix_socket_permissions=0700 -c unix_socket_directory='/var/lib/pgsql'" >> start >> "pg_upgrade

Re: pg_upgrade : 9.X to 11.X issue CentoOS 7.6

2019-07-23 Thread Adrian Klaver
On 7/23/19 7:17 AM, Perumal Raj wrote: Hi Luca -bash-4.2$ "/usr/pgsql-9.2/bin/pg_ctl" -w -l "pg_upgrade_server.log" -D "/data/db/data" -o "-p 5432 -b  -c listen_addresses='' -c unix_socket_permissions=0700 -c unix_socket_directory='/var/lib/pgsql'" start waiting for server to start stopp

Re: pg_upgrade : 9.X to 11.X issue CentoOS 7.6

2019-07-23 Thread Perumal Raj
Hi Luca -bash-4.2$ "/usr/pgsql-9.2/bin/pg_ctl" -w -l "pg_upgrade_server.log" -D "/data/db/data" -o "-p 5432 -b -c listen_addresses='' -c unix_socket_permissions=0700 -c unix_socket_directory='/var/lib/pgsql'" start waiting for server to start stopped waiting pg_ctl: could not start server Exa

Re: pg_upgrade : 9.X to 11.X issue CentoOS 7.6

2019-07-23 Thread Luca Ferrari
On Tue, Jul 23, 2019 at 3:56 PM Perumal Raj wrote: > could not connect to source postmaster started with the command: > "/usr/pgsql-9.2/bin/pg_ctl" -w -l "pg_upgrade_server.log" -D "/data/db/data" > -o "-p 5432 -b -c listen_addresses='' -c unix_socket_permissions=0700 -c > unix_socket_directory

pg_upgrade : 9.X to 11.X issue CentoOS 7.6

2019-07-23 Thread Perumal Raj
Hi Team, Please give me some pointers to resolve this issue. -bash-4.2$ export OLDCLUSTER=/usr/pgsql-9.2 -bash-4.2$ export NEWCLUSTER=/usr/pgsql-11 -bash-4.2$ /usr/pgsql-11/bin/pg_upgrade --old-bindir=$OLDCLUSTER/bin --new-bindir=$NEWCLUSTER/bin --old-datadir=/data/db/data --new-datadir=/pgdata/