Skip site navigation (1) Skip section navigation (2)

Constraint names using 'user namespace'?

From: Philip Warner <pjw(at)rhyme(dot)com(dot)au>
To: Hackers List <pgsql-hackers(at)postgresql(dot)org>
Subject: Constraint names using 'user namespace'?
Date: 2000-11-27 23:09:59
Message-ID: 3.0.5.32.20001128100959.02aade40@mail.rhyme.com.au (view raw or flat)
Thread:
Lists: pgsql-hackers
Just noticed this:

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?


----------------------------------------------------------------
Philip Warner                    |     __---_____
Albatross Consulting Pty. Ltd.   |----/       -  \
(A.B.N. 75 008 659 498)          |          /(@)   ______---_
Tel: (+61) 0500 83 82 81         |                 _________  \
Fax: (+61) 0500 83 82 82         |                 ___________ |
Http://www.rhyme.com.au          |                /           \|
                                 |    --________--
PGP key available upon request,  |  /
and from pgp5.ai.mit.edu:11371   |/

Responses

pgsql-hackers by date

Next:From: mlwDate: 2000-11-27 23:28:36
Subject: 8192 BLCKSZ ?
Previous:From: Norman ClarkeDate: 2000-11-27 21:58:45
Subject: postgres docs (was Re: Crash during WAL recovery?)

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group