Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bdNMc-0004v5-Gi for pgsql-hackers@arkaria.postgresql.org; Fri, 26 Aug 2016 20:04:30 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bdNMc-0001fX-3J for pgsql-hackers@arkaria.postgresql.org; Fri, 26 Aug 2016 20:04:30 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bdNLC-0007Iy-OP for pgsql-hackers@postgresql.org; Fri, 26 Aug 2016 20:03:02 +0000 Received: from lists.commandprompt.com ([2604:da00:2:2:5054:ff:fe07:7618]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bdNL9-00056e-6N for pgsql-hackers@postgresql.org; Fri, 26 Aug 2016 20:03:01 +0000 Received: from [192.168.1.61] (spinlock.commandprompt.com [69.168.55.30]) by lists.commandprompt.com (Postfix) with ESMTPA id 9E9202BE; Fri, 26 Aug 2016 13:02:56 -0700 (PDT) Received: from c-73-225-27-179.hsd1.wa.comcast.net ([73.225.27.179] helo=[192.168.1.61]) by assp.commandprompt.com with SMTPSA(TLSv1_2 ECDHE-RSA-AES128-GCM-SHA256) (2.5.1); 26 Aug 2016 13:02:56 -0700 Subject: Re: Renaming of pg_xlog and pg_clog To: Tom Lane , Magnus Hagander References: <0a089d6a-ff1d-88b0-5966-44bbbe5aa202@2ndquadrant.com> <28389.1472228921@sss.pgh.pa.us> Cc: Peter Eisentraut , Michael Paquier , PostgreSQL-development From: "Joshua D. Drake" Organization: Command Prompt, Inc. Message-ID: Date: Fri, 26 Aug 2016 13:02:55 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <28389.1472228921@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Assp-Version: 2.5.1(16177) on assp.commandprompt.com X-Assp-ID: assp.commandprompt.com m1-41776-09248 X-Assp-Session: 7F85C8882E40 (mail 1) X-Assp-Original-Subject: Re: [HACKERS] Renaming of pg_xlog and pg_clog X-Assp-Client-SSL: yes X-Pg-Spam-Score: -2.1 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 08/26/2016 09:28 AM, Tom Lane wrote: > Magnus Hagander 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