pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Petr Jelinek <petr@2ndquadrant.com>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: xi@resolvent.net, PostgreSQL mailing lists <pgsql-bugs@postgresql.org>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: BUG #13126: table constraint loses its comment
Date: Tue, 07 Jul 2015 11:24:28 +0200
Message-ID: <559B9ACC.2060103@2ndquadrant.com> (raw)
In-Reply-To: <CAB7nPqT+3iVJs=WB9y4d+R_O2rmRJTCmJxzxYK3bT+0oko0e4A@mail.gmail.com>
References: <20150422154850.5198.26685@wrigleys.postgresql.org>
	<8519.1429995948@sss.pgh.pa.us>
	<CAB7nPqT5dzkfYBwaz-NnojU8-aQNGas1P=AQBa9n9hg8mjv+hg@mail.gmail.com>
	<CAB7nPqRk+Y_agaYWtjyQtghGL_m8_PSER=d85E2yvhtY3sh0ug@mail.gmail.com>
	<559547A2.2000204@2ndquadrant.com>
	<CAB7nPqRXLGYh4HZbW2_m5kJNjNtnt1zwAndkZGRdHuaj7d-jHQ@mail.gmail.com>
	<5596A36D.4030008@2ndquadrant.com>
	<CAB7nPqT+3iVJs=WB9y4d+R_O2rmRJTCmJxzxYK3bT+0oko0e4A@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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



view thread (15+ messages)  latest in thread

Message-ID: <559B9ACC.2060103@2ndquadrant.com>
Permalink:  ../559B9ACC.2060103@2ndquadrant.com/
Also on:    postgresql.org/message-id/559B9ACC.2060103@2ndquadrant.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: petr@2ndquadrant.com, michael.paquier@gmail.com, tgl@sss.pgh.pa.us, pgsql-hackers@postgresql.org
  Subject: Re: BUG #13126: table constraint loses its comment
  In-Reply-To: <559B9ACC.2060103@2ndquadrant.com>
  References: <20150422154850.5198.26685@wrigleys.postgresql.org> <8519.1429995948@sss.pgh.pa.us> <CAB7nPqT5dzkfYBwaz-NnojU8-aQNGas1P=AQBa9n9hg8mjv+hg@mail.gmail.com> <CAB7nPqRk+Y_agaYWtjyQtghGL_m8_PSER=d85E2yvhtY3sh0ug@mail.gmail.com> <559547A2.2000204@2ndquadrant.com> <CAB7nPqRXLGYh4HZbW2_m5kJNjNtnt1zwAndkZGRdHuaj7d-jHQ@mail.gmail.com> <5596A36D.4030008@2ndquadrant.com> <CAB7nPqT+3iVJs=WB9y4d+R_O2rmRJTCmJxzxYK3bT+0oko0e4A@mail.gmail.com> <559B9ACC.2060103@2ndquadrant.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox