Skip to content

Commit 1c76c05

Browse files
committed
Merge pull request #212 from nukepuppy/master
Ensure we're using at least pgsql 9.1 for extensions to work during gitlab:setup
2 parents 41a03e2 + 6ff06a9 commit 1c76c05

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

install/centos/README.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,9 +342,20 @@ Try connecting to the new database with the new user:
342342

343343
### 5.2 PostgreSQL
344344

345-
Install `postgresql-server` and the `postgreqsql-devel` libraries:
345+
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
346346

347-
yum install postgresql-server postgresql-devel
347+
Install the pgdg repositories
348+
349+
rpm -Uvh http://yum.postgresql.org/9.3/redhat/rhel-6-x86_64/pgdg-centos93-9.3-1.noarch.rpm
350+
351+
352+
Install `postgresql93-server` and the `postgreqsql93-devel` libraries:
353+
354+
yum install postgresql93-server postgresql93-devel
355+
356+
Rename the service script
357+
358+
mv /etc/init.d/{postgresql-9.3,postgresql}
348359

349360
Initialize the database:
350361

@@ -382,6 +393,11 @@ If you see the following:
382393

383394
Your password has been accepted successfully and you can type \q to quit.
384395

396+
You should ensure you are using the right settings in your pg_hba.conf to not get ident issues
397+
NOTE: set to something like "host all all 127.0.0.1/32 trust" use trust over ident
398+
399+
vi /var/lib/pgsql/9.3/data/pg_hba.conf
400+
385401

386402
----------
387403
## 6. GitLab

0 commit comments

Comments
 (0)