Re: notice on explicit primary key or index name

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Tomas Psika <tomas(dot)psika(at)gmail(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: notice on explicit primary key or index name
Date: 2009-09-19 22:20:25
Message-ID: 6531.1253398825@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Tomas Psika <tomas(dot)psika(at)gmail(dot)com> writes:
> when primary key or unique index is created using explicit name, strange
> notice will say that implicit name was generated. But it didnt.

> # alter table dummy add constraint pk_dummy_x primary key (x);
> NOTICE: ALTER TABLE / ADD PRIMARY KEY will create implicit index
> "pk_dummy_x" for table "dummy"

The index is what's implicit, not the name.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2009-09-19 23:33:01 Re: BUG #5067: vacuum problem
Previous Message Pasquale 2009-09-19 21:48:32 BUG #5067: vacuum problem