On Thu, Oct 2, 2014 at 9:55 PM, Marti Raudsepp <
marti@juffo.org> wrote:
>
> On Fri, Oct 3, 2014 at 2:15 AM, Marti Raudsepp <
marti@juffo.org> wrote:
> > + ereport(NOTICE,
> > + (errcode(ERRCODE_DUPLICATE_TABLE),
> > + errmsg("relation \"%s\" already exists, skipping",
> > + indexRelationName)));
> >
> > 1. Clearly "relation" should be "index".
> > 2. Use ERRCODE_DUPLICATE_OBJECT not TABLE
>
> My bad, this code is OK. The current code already uses "relation" and
> TABLE elsewhere because indexes share the same namespace with tables.
>
Ok. I reply it in other message.
Fixed and send in other reply...
Why? If you see other places in gram.y it's a common usage...