Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 8A7E36327B8 for ; Sat, 26 Sep 2009 16:33:30 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 91895-04 for ; Sat, 26 Sep 2009 19:33:22 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from glacier.frostconsultingllc.com (glacier.frostconsultingllc.com [69.36.227.170]) by mail.postgresql.org (Postfix) with ESMTP id C6927632615 for ; Sat, 26 Sep 2009 16:33:22 -0300 (ADT) Received: from adsl-63-195-55-98.dsl.snfc21.pacbell.net ([63.195.55.98] helo=Sidney-Stratton.local) by glacier.frostconsultingllc.com with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.69) (envelope-from ) id 1Mrd1B-0008BW-Um for pgsql-hackers@postgresql.org; Sat, 26 Sep 2009 12:33:20 -0700 Message-ID: <4ABE6C72.7070507@agliodbs.com> Date: Sat, 26 Sep 2009 12:33:06 -0700 From: Josh Berkus Organization: PostgreSQL Experts Inc. User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b3pre) Gecko/20090223 Thunderbird/3.0b2 MIME-Version: 1.0 To: pgsql-hackers@postgresql.org Subject: Re: Hot Standby on git References: <1253958559.4449.833.camel@ebony.2ndQuadrant> <603c8f070909260629s1f070a8bl8aa6dc97fa87ce43@mail.gmail.com> <1253973877.4449.899.camel@ebony.2ndQuadrant> In-Reply-To: <1253973877.4449.899.camel@ebony.2ndQuadrant> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200909/1700 X-Sequence-Number: 146506 > I feel like I need a better way of unit testing new code. Some of the > code in the patch is to handle corner cases, so recreating them is > fairly hard. It is a nagging feeling that I am missing some knowledge > here and would welcome some insight, or research, into better ways of > doing general case unit testing. There's always pgtap. Whenever we find a new corner case, we add it to the development test suite. -- Josh Berkus PostgreSQL Experts Inc. www.pgexperts.com