Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZH5ot-0003ja-0k for pgsql-hackers@arkaria.postgresql.org; Mon, 20 Jul 2015 07:49:03 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZH5os-0003zJ-IK for pgsql-hackers@arkaria.postgresql.org; Mon, 20 Jul 2015 07:49:02 +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) (envelope-from ) id 1ZH5nc-0002WW-72 for pgsql-hackers@postgresql.org; Mon, 20 Jul 2015 07:47:44 +0000 Received: from mail-wi0-x233.google.com ([2a00:1450:400c:c05::233]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZH5nV-00082q-1t for pgsql-hackers@postgresql.org; Mon, 20 Jul 2015 07:47:43 +0000 Received: by wicgb10 with SMTP id gb10so19138801wic.1 for ; Mon, 20 Jul 2015 00:47:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:reply-to:user-agent:mime-version:to:cc :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=J/xlbXUh+jfPxDWvvxpHY8BURc48Hyi0myyzDKWy0Eo=; b=Dipn5ATuqmHzkfwPHNbt/l6B1Z+wixK71teux3UtdNbRnxrp3ntxWAhKgIxegaKV57 zrlbx9dojCiRJ452vZ/Dv0Z+ILLHcNIyZa7rW/9KaFEBDPnCsJogb6ljLD7fwUmT9DfX BOC7XoRNY8RZXG9EAH9j/HXL191whTseHaOGb8kLmcN78+u5kN4IfOJu0WnDTg2r0w5x W85yDUT9rJzPL8efGmboklLe3dvhh/X1H8dbiT1BLrfM72sz/JbtLmR2cBKsWru+HQab H9oi/iiab23M2UVgRDvnaeFu4msLhW88VeegpBFFsXC+58orUb1lD+DT5E0Rw1icnGvi Hf9w== X-Received: by 10.180.9.7 with SMTP id v7mr19291455wia.60.1437378454990; Mon, 20 Jul 2015 00:47:34 -0700 (PDT) Received: from [192.168.1.105] (dsl-hkibrasgw1-58c38f-82.dhcp.inet.fi. [88.195.143.82]) by smtp.gmail.com with ESMTPSA id b13sm10462705wic.15.2015.07.20.00.47.32 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Jul 2015 00:47:33 -0700 (PDT) Message-ID: <55ACA793.7080400@iki.fi> Date: Mon, 20 Jul 2015 10:47:31 +0300 From: Heikki Linnakangas Reply-To: hlinnaka@iki.fi User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.7.0 MIME-Version: 1.0 To: Alvaro Herrera CC: Michael Paquier , Kevin Grittner , "pgsql-hackers@postgresql.org" Subject: Re: [COMMITTERS] pgsql: Retain comments on indexes and constraints at ALTER TABLE ... TY References: <81620362.883169.1437142581761.JavaMail.yahoo@mail.yahoo.com> <55A94C2D.1010204@iki.fi> <20150718131528.GV2301@postgresql.org> In-Reply-To: <20150718131528.GV2301@postgresql.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.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 07/18/2015 04:15 PM, Alvaro Herrera wrote: > Heikki Linnakangas wrote: >> If it's there just to so you can run the regression tests that come >> with it, it might make sense to just add a "default" case to that >> switch to handle any unrecognized commands, and perhaps even remove >> the cases for the currently untested subcommands as it's just dead >> code. > > Well, I would prefer to have an output that says "unrecognized" and then > add more test cases to the SQL files so that there's not so much dead > code. I prefer that to removing the C support code, because then as > we add extra tests we don't need to modify the C source. Ok. I added a case for AT_ReAddComment, and also a default-case that says "unrecognized". - Heikki -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers