Re: pg can create duplicated index without any errors even warnning

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alex <zhihui(dot)fan1213(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: pg can create duplicated index without any errors even warnning
Date: 2019-08-06 05:32:52
Message-ID: 31587.1565069572@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Alex <zhihui(dot)fan1213(at)gmail(dot)com> writes:
> postgres=# create table t (a int, b int);
> CREATE TABLE
> postgres=# create index m on t(a);
> CREATE INDEX
> postgres=# create index m2 on t(a);
> CREATE INDEX

> is this by design?

Yes.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2019-08-06 05:41:18 Re: The unused_oids script should have a reminder to use the 8000-8999 OID range
Previous Message Michael Paquier 2019-08-06 05:17:54 Re: Putting kerberos/ldap logs somewhere useful