Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZCP8W-0000qN-Bl for pgsql-bugs@arkaria.postgresql.org; Tue, 07 Jul 2015 09:25:56 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZCP8V-0004gD-0w for pgsql-bugs@arkaria.postgresql.org; Tue, 07 Jul 2015 09:25:55 +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 1ZCP7G-0003If-BZ for pgsql-bugs@postgresql.org; Tue, 07 Jul 2015 09:24:38 +0000 Received: from mail-wg0-f50.google.com ([74.125.82.50]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZCP7C-0005ia-V8 for pgsql-bugs@postgresql.org; Tue, 07 Jul 2015 09:24:37 +0000 Received: by wgbgr6 with SMTP id gr6so8275562wgb.3 for ; Tue, 07 Jul 2015 02:24:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=mZCp5cXju96Uv6P+11SCYCyxtMd81rYRK/42gLEIvjY=; b=FV0rH1PD5bT46LNHW4C/fA+jJRnfPBjIJS6Tw2L7OB+QAO9MG6Nb+OCrPxt7ZIlKis +1zjbmh+Z0lh60tw+QtlrwGcsx5nZLwj94UYtDsO6iadnIP/Gf4YWx96zBhyS+b5zInL 3N6ngXZg40FokO3wwGBCBx7YBJf9kUN2QGmO3m7ba2w5N4n2NcQydZxWwmlxlPQxyUgf CdJW3nBF2mDGFt84Foh3Y9IYVMlzPxSYD4IiKpdMaXH5/SCKg5A50MACKKAPKFNSTjKU Dp3yHg9xdi5ibTtVlTH8J88HrMIf07ss5kMRXXZZs/9GYFFqQU4qp8GL0qs7n2Shym// LYEw== X-Gm-Message-State: ALoCoQliGnJr3z2EbbTL7ndudJqz/JpUo8K822cE2tLivmduVWgZ1xAZrhWWyDYQ84nXdwjc4dm/ X-Received: by 10.194.189.80 with SMTP id gg16mr6592256wjc.9.1436261073072; Tue, 07 Jul 2015 02:24:33 -0700 (PDT) Received: from ?IPv6:2a00:1028:9941:52fa:6048:fddc:5820:75bd? (dynamic-2a00-1028-9941-52fa-6048-fddc-5820-75bd.ipv6.broadband.iol.cz. [2a00:1028:9941:52fa:6048:fddc:5820:75bd]) by mx.google.com with ESMTPSA id di9sm51501276wib.16.2015.07.07.02.24.30 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Jul 2015 02:24:32 -0700 (PDT) Message-ID: <559B9ACC.2060103@2ndquadrant.com> Date: Tue, 07 Jul 2015 11:24:28 +0200 From: Petr Jelinek User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Michael Paquier CC: Tom Lane , xi@resolvent.net, PostgreSQL mailing lists , PostgreSQL-development Subject: Re: BUG #13126: table constraint loses its comment References: <20150422154850.5198.26685@wrigleys.postgresql.org> <8519.1429995948@sss.pgh.pa.us> <559547A2.2000204@2ndquadrant.com> <5596A36D.4030008@2ndquadrant.com> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 2015-07-04 13:45, Michael Paquier wrote: > On Fri, Jul 3, 2015 at 11:59 PM, Petr Jelinek wrote: >> Well for indexes you don't really need to add the new AT command, as >> IndexStmt has char *idxcomment which it will automatically uses as comment >> if not NULL. While I am not huge fan of the idxcomment it doesn't seem to >> be easy to remove it in the future and it's what transformTableLikeClause >> uses so it might be good to be consistent with that. > > Oh, right, I completely missed your point and this field in IndexStmt. > Yes it is better to be consistent in this case and to use it. It makes > as well the code easier to follow. > Btw, regarding the new AT routines, I am getting find of them, it > makes easier to follow which command is added where in the command > queues. > > Updated patch attached. > Cool, I am happy with the patch now. Marking as ready for committer. -- Petr Jelinek http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs