From: Joshua D. Drake <jd@commandprompt.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: Magnus Hagander <magnus@hagander.net>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: Michael Paquier <michael.paquier@gmail.com>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: Renaming of pg_xlog and pg_clog
Date: Fri, 26 Aug 2016 13:02:55 -0700
Message-ID: <a888ec1e-fb19-79a9-a228-1181537d894d@commandprompt.com> (raw)
In-Reply-To: <28389.1472228921@sss.pgh.pa.us>
References: <CAB7nPqTeC-8+zux8_-4ZD46V7YPwooeFxgndfsq5Rg8ibLVm1A@mail.gmail.com>
<0a089d6a-ff1d-88b0-5966-44bbbe5aa202@2ndquadrant.com>
<CABUevExt-XUkHRc-tbQHrCukY=z8_3kDcAhc05_fULfF9q-Fzg@mail.gmail.com>
<28389.1472228921@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
On 08/26/2016 09:28 AM, Tom Lane wrote:
> Magnus Hagander <magnus@hagander.net> writes:
>> On Aug 26, 2016 5:54 PM, "Peter Eisentraut" <
>> peter.eisentraut@2ndquadrant.com> wrote:
>>> If we're going to do some renaming, then I suggest we do a
>>> mini-file-system structure under $PGDATA, like
>>>
>>> $PGDATA/etc
>>> $PGDATA/log
>>> $PGDATA/run (lock files etc.)
>>> $PGDATA/tmp
>>> $PGDATA/var
>>>
>>> The names of all the things under "var" could still be refined, but it's
>>> much less likely that users will confuse data with configuration or
>>> plain logs under that scheme
>
>> Interesting idea. I worry a bit that this might encourage distributions to
>> split it up into different places though, and I'm not sure we want to
>> encourage that..
>
> Yeah, I'm afraid that these names are not as well standardized as Peter
> probably wishes they were. Also, I'd just as soon not move/rename things
> that don't really need it. If, for example, we decide to move
> postgresql.conf to etc/postgresql.conf, that is going to break a metric
> ton of stuff that doesn't need to get broken AFAICS.
I am not so sure that is accurate. Yes, Windows is an outlying but any
Unix person is going to easily understand etc log run. Further as Linux
is by far our most run platform (outside of possibly Windows) it will
feel right at home for the largest growing user base. Personally I
really like the idea of:
$PGDATA/etc/postgresql.conf
$PGDATA/log/Thu.log
$PGDATA/run/postmaster.pid
$PGDATA/var/base/16758
Although... wouldn't run be under var?
JD
>
> regards, tom lane
>
>
--
Command Prompt, Inc. http://the.postgres.company/
+1-503-667-4564
PostgreSQL Centered full stack support, consulting and development.
Everyone appreciates your honesty, until you are honest with them.
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: jd@commandprompt.com, tgl@sss.pgh.pa.us, magnus@hagander.net, peter.eisentraut@2ndquadrant.com, michael.paquier@gmail.com
Subject: Re: Renaming of pg_xlog and pg_clog
In-Reply-To: <a888ec1e-fb19-79a9-a228-1181537d894d@commandprompt.com>
References: <CAB7nPqTeC-8+zux8_-4ZD46V7YPwooeFxgndfsq5Rg8ibLVm1A@mail.gmail.com> <0a089d6a-ff1d-88b0-5966-44bbbe5aa202@2ndquadrant.com> <CABUevExt-XUkHRc-tbQHrCukY=z8_3kDcAhc05_fULfF9q-Fzg@mail.gmail.com> <28389.1472228921@sss.pgh.pa.us> <a888ec1e-fb19-79a9-a228-1181537d894d@commandprompt.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox