Re: [GENERAL] Is it OK to create a directory in PGDATA dir - Mailing list pgsql-general

From Igal @ Lucee.org
Subject Re: [GENERAL] Is it OK to create a directory in PGDATA dir
Date
Msg-id 1e5a94bc-d58a-7f6d-ae06-f8bad2cfddcc@lucee.org
Whole thread Raw
In response to Re: [GENERAL] Is it OK to create a directory in PGDATA dir  (Tomas Vondra <tomas.vondra@2ndquadrant.com>)
Responses Re: [GENERAL] Is it OK to create a directory in PGDATA dir  (rakeshkumar464 <rakeshkumar464@outlook.com>)
List pgsql-general
On 10/19/2017 1:25 PM, Tomas Vondra wrote:
On 10/19/2017 09:58 PM, rakeshkumar464 wrote:
In the container world, sometime the only persistent storage path
(that is, storage outside container world) is PGDATA.>
I don't want to be the "You're doing it wrong!" guy, but you're doing it
wrong. If a container only gives you a single persistent storage path,
then don't use it as PGDATA directly, but create PGDATA as one of the
directories in that path. And create a directory for other stuff next to
it, not in the data directory.

+1

That will also pave the way for an upgrade in the future, where you might need another directory for data, e.g. PGDATA-10, PGDATA-11, etc.


Igal Sapir
Lucee Core Developer
Lucee.org

pgsql-general by date:

Previous
From: Tomas Vondra
Date:
Subject: Re: [GENERAL] Is it OK to create a directory in PGDATA dir
Next
From: Juliano
Date:
Subject: [GENERAL] Alternative to pgAdmin Postgres Manager that support pgagent (jobs)