Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eA0Re-0005K6-LC for pgsql-admin@arkaria.postgresql.org; Wed, 01 Nov 2017 21:21:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1eA0Re-0002ST-64 for pgsql-admin@arkaria.postgresql.org; Wed, 01 Nov 2017 21:21:06 +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 1eA0Rd-0002S2-8e for pgsql-admin@postgresql.org; Wed, 01 Nov 2017 21:21:05 +0000 Received: from cat-porwal-prod-mail1.catalyst.net.nz ([2404:130:4080::4]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eA0RX-0004f7-7v for pgsql-admin@postgresql.org; Wed, 01 Nov 2017 21:21:04 +0000 Received: from localhost (localhost [127.0.0.1]) by cat-porwal-prod-mail1.catalyst.net.nz (Postfix) with ESMTP id 0F8D780EF8; Thu, 2 Nov 2017 10:20:53 +1300 (NZDT) X-Virus-Scanned: Debian amavisd-new at cat-porwal-prod-mail1.servers.catalyst.net.nz Received: from cat-porwal-prod-mail1.catalyst.net.nz ([127.0.0.1]) by localhost (cat-porwal-prod-mail1.servers.catalyst.net.nz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05SsaxkXgs_U; Thu, 2 Nov 2017 10:20:51 +1300 (NZDT) Received: from [IPv6:2406:e001:c36:1:b57b:dddd:f3ce:afc4] (unknown [IPv6:2406:e001:c36:1:b57b:dddd:f3ce:afc4]) (Authenticated sender: mark.kirkwood@catalyst.net.nz) by cat-porwal-prod-mail1.catalyst.net.nz (Postfix) with ESMTPSA id C42B780EF2; Thu, 2 Nov 2017 10:20:51 +1300 (NZDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=catalyst.net.nz; s=catalyst; t=1509571251; bh=/j6+GG5Ztz06ohl9GaYP1DDz/DfTM3DS8CsMdYe7yfk=; h=Subject:To:Cc:References:From:Date:In-Reply-To; b=jReK7AnDJCb0e9Pva1XfzaXkDi4T2NVZjj/LaDMRDse8hCDgaKVajiNlVOvgKwlva 9tIs7qUF4noe6V4E/TD7Y+YY+yghVrX39caze6lfo4j8wvXVpr3Vbxmw+vNwMEHnUl 5A8QjJxqqdeR4fovhk7PVaXxMbdwxRYTs/NkbKo0= Subject: Re: Bad recovery: no pg_xlog/RECOVERYXLOG To: Stephen Frost Cc: pgsql-admin@postgresql.org References: <1070071508952614@web46j.yandex.ru> <20171030154706.GE4628@tamriel.snowman.net> <7966ee9e-2241-eced-4639-e32c157b915a@catalyst.net.nz> <20171031114756.GP4628@tamriel.snowman.net> <2e3453d3-da6f-88af-05ec-7530e7f60547@catalyst.net.nz> <20171101122847.GS4628@tamriel.snowman.net> From: Mark Kirkwood Message-ID: <4efa2769-78c4-7bf0-5c33-0cf2d942ce74@catalyst.net.nz> Date: Thu, 2 Nov 2017 10:20:51 +1300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171101122847.GS4628@tamriel.snowman.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org On 02/11/17 01:28, Stephen Frost wrote: > Mark, > > * Mark Kirkwood (mark.kirkwood@catalyst.net.nz) wrote: >> While I agree that the scripts concerned would benefit from some >> development/qa etc, I'm really disagreeing with your point that folk >> 'should not do this'. I would like to say that folk 'should do this' >> - but try to do it well - and we should help them (isn't that idea >> kinda tied up with the whole point of these lists)? > I'm all for someone else starting up a new project to improve the > situation around backups for PG. That not going to be three shell > scripts amounting to maybe 100 lines of code and what I really am > concerned about is people seeing these simple shell scripts thinking > "oh, I'll just use these simple things" without realizing that they're > going to end up in a bad spot because those simple shell scripts aren't > sufficient to do backups with PG properly and reliably. > > We could store data in a CSV file and access it through shell scripts > too and call it a database. If someone posted those as an alternative > to PG, I don't doubt that they'd get shot down pretty hard too. > > These aren't just perfectionism complaints about shell scripts being > used to do backups of PG either, I've seen people using them and doing > so in ways that result in not having reliable backups which has then > lead to literally days of work be lost. > > Put these shell scripts out on a github website with a big "in > development, not for production use, do not use" readme and continue to > hack on them as much as you'd like. Don't post them to these lists with > a "this is how you do backups in PG". > > I don't think either the original script author - or myself - are attempting to suggest a few shell scripts were the next, complete coverage backup solution (ahem - it is only yourself that is pushing this extreme interpretation)! However there is the use case for people that just want a minimal backup solution that works for their specific environment, and don't want to bring along a lot of extra machinery that a full coverage all-singing-and-dancing product includes - this *can* be accomplished by a few shell scripts. Yes, it does mean that you spend extra time testing and debugging [1]. Err - I think that is all the original author (who is probably scared off now), was wanting a bit of help with. regards Mark [1] which is where a pre-existing more complex solution is likely to be better - it has had more testing in the field, and of course it is fine to point that out. -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin