Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1beO8w-0004CL-Bs for pgsql-hackers@arkaria.postgresql.org; Mon, 29 Aug 2016 15:06:34 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1beO8v-0003EP-Ri for pgsql-hackers@arkaria.postgresql.org; Mon, 29 Aug 2016 15:06:33 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1beO7X-0001bX-7a for pgsql-hackers@postgresql.org; Mon, 29 Aug 2016 15:05:07 +0000 Received: from lists.commandprompt.com ([2604:da00:2:2:5054:ff:fe07:7618]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1beO7S-0002fz-3F for pgsql-hackers@postgresql.org; Mon, 29 Aug 2016 15:05:06 +0000 Received: from [192.168.1.61] (spinlock.commandprompt.com [69.168.55.30]) by lists.commandprompt.com (Postfix) with ESMTPA id 5AFDA4A2; Mon, 29 Aug 2016 08:04:59 -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); 29 Aug 2016 08:04:58 -0700 Subject: Re: Renaming of pg_xlog and pg_clog To: Daniel Verite , Craig Ringer References: <1aa50266-418e-4b77-a0b4-5e23b8db35ac@mm> Cc: Jim Nasby , Michael Paquier , PostgreSQL Hackers , Andres Freund , Peter Eisentraut From: "Joshua D. Drake" Organization: Command Prompt, Inc. Message-ID: <597971b8-5b35-82fc-7b64-ee42afbdc342@commandprompt.com> Date: Mon, 29 Aug 2016 08:04:58 -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: <1aa50266-418e-4b77-a0b4-5e23b8db35ac@mm> Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Assp-Version: 2.5.1(16177) on assp.commandprompt.com X-Assp-ID: assp.commandprompt.com m1-83099-03030 X-Assp-Session: 7FB4C1532FC8 (mail 1) X-Assp-Original-Subject: Re: [HACKERS] Renaming of pg_xlog and pg_clog X-Assp-Client-SSL: yes X-Pg-Spam-Score: -3.4 (---) 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/29/2016 06:42 AM, Daniel Verite wrote: > > Aside from that, we might also question how much of the excuse > "pg_xlog looked like it was just deletable logs" is a lie made up > after the fact, because anybody wrecking a database is not against > deflecting a bit of the blame to the software, that's human. > > The truth being that they took the gamble that postgres > will somehow recover from the deletion, at the risk of possibly > loosing the latest transactions. That doesn't necessarily look > so bad when current transactions are failing anyway for lack of disk > space, users are yelling at you, and you're frantically searching for > anything to delete in the FS to come back online quickly. > Personally I'm quite skeptical of the *name* of the directory > playing that much of a role in this scenario. Oh it makes perfect sense. User who isn't a postgres/database person installs X software. X software uses PostgreSQL and you have read on the intertubes about how Postgres is awesome. So you install it, get everything up and running from the README.md on Github. You walk away. A year later, after it becomes crucial to whatever it is you do the system crashes. You have no idea what is going on, you just set this up on some recycled server or VM. You log in, see that all the space and you find that you are using a ton of disk space. You look around for anything you can delete. You find a directory called pg_xlog, it says log, junior ignorant, don't want to be a sysadmin 101 says, "delete logs". Boom, crushed server. Let us not forget that by far the number of PostgreSQL users we have, have never done ANYTHING with postgres except make it so something like Drupal can connect to it. JD > > Best regards, > -- 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