Skip to content

Commit 2e2b4c0

Browse files
committed
Make sure pg_dump is a symlink
1 parent 692b6bb commit 2e2b4c0

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

install/centos/README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -360,19 +360,26 @@ Quit the database session:
360360

361361
NOTE: because we need to make use of extensions we need at least pgsql 9.1 and the default 8.x on centos will not work. We need to get the PGDG repositories enabled
362362

363-
Install the pgdg repositories
363+
If there are any previous versions remove them:
364364

365-
rpm -Uvh http://yum.postgresql.org/9.3/redhat/rhel-6-x86_64/pgdg-centos93-9.3-1.noarch.rpm
365+
yum remove postgresql
366+
367+
Install the pgdg repositories:
366368

369+
rpm -Uvh http://yum.postgresql.org/9.3/redhat/rhel-6-x86_64/pgdg-centos93-9.3-1.noarch.rpm
367370

368371
Install `postgresql93-server` and the `postgreqsql93-devel` libraries:
369372

370373
yum install postgresql93-server postgresql93-devel
371374

372-
Rename the service script
375+
Rename the service script:
373376

374377
mv /etc/init.d/{postgresql-9.3,postgresql}
375378

379+
Make a symlink for `pg_dump` otherwise backup will fail:
380+
381+
ln -s /usr/pgsql-9.3/bin/pg_dump /usr/bin/pg_dump
382+
376383
Initialize the database:
377384

378385
service postgresql initdb

0 commit comments

Comments
 (0)