| From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
|---|---|
| To: | Philip Warner <pjw(at)rhyme(dot)com(dot)au> |
| Cc: | Hackers List <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: Constraint names using 'user namespace'? |
| Date: | 2000-11-27 23:33:57 |
| Message-ID: | Pine.LNX.4.21.0011280031590.832-100000@peter.localdomain |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Philip Warner writes:
> pjw=# create table pk1(f1 integer, constraint zzz primary key(f1));
> NOTICE: CREATE TABLE/PRIMARY KEY will create implicit index 'zzz' for
> table 'pk1'
> CREATE
> pjw=# create table zzz(f1 integer);
> ERROR: Relation 'zzz' already exists
>
> Is there a good reason why the automatically created items do not have a
> 'pg_' in front of their names?
One thing that has always bugged me is why indexes have names at all. I
can never think of any. The table name and the attribute
name(s)/number(s) should suffice.
--
Peter Eisentraut peter_e(at)gmx(dot)net http://yi.org/peter-e/
| From | Date | Subject | |
|---|---|---|---|
| Next Message | selkovjr | 2000-11-28 00:03:33 | Re: [HACKERS] Indexing for geographic objects? |
| Previous Message | Tom Lane | 2000-11-27 23:30:09 | Ancient lock bug figured out |