Skip to content

Commit dad1039

Browse files
author
Geo
committed
making fixes to ensure we're telling folks to use at least postgresql-server 9.3 as extenions are not supported in 8.x and therefore bundle exec rake gitlab:setup RAILS_ENV=production would fail otherwise
1 parent ec5e905 commit dad1039

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

install/centos/README.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,9 +342,19 @@ 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+
rpm -Uvh http://yum.postgresql.org/9.3/redhat/rhel-6-x86_64/pgdg-centos93-9.3-1.noarch.rpm
349+
350+
351+
Install `postgresql93-server` and the `postgreqsql93-devel` libraries:
352+
353+
yum install postgresql93-server postgresql93-devel
354+
355+
Rename the service script
356+
357+
mv /etc/init.d/{postgresql-9.3,postgresql}
348358

349359
Initialize the database:
350360

@@ -382,6 +392,11 @@ If you see the following:
382392

383393
Your password has been accepted successfully and you can type \q to quit.
384394

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

386401
----------
387402
## 6. GitLab

0 commit comments

Comments
 (0)