Customising pg directories

From: Ben Carbery <ben(dot)carbery(at)gmail(dot)com>
To: postgresql Forums <pgsql-general(at)postgresql(dot)org>
Subject: Customising pg directories
Date: 2012-06-28 07:50:32
Message-ID: CACp6DjBBCYcfwAOtVOMRSvwtyOpv1=Qz=15Lz9qWJjON9BtS1g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I am building a new server with a separate partition for data and
xlogs. What is the correct way to do this?

Can I create a symlink from /var/lib/pgsql/9.1/data -> /pg_data (and
then a symlink in /pgdata for xlogs-> /pg_xlog)
Or do I have to modify $PGDATA in the init script?

This is all after installing packages but prior to 'service
postgresql-91 initdb'

cheers

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Albe Laurenz 2012-06-28 07:55:48 Re: log_min_duration_statement modification for non superusers?
Previous Message Alban Hertroys 2012-06-28 06:40:38 Re: create database from template requires the source database to be unused