Re: naming a primary key possible? - Mailing list pgsql-general

From Michael Glaesemann
Subject Re: naming a primary key possible?
Date
Msg-id 4C33DFD1-E012-43FB-991C-A84F0D9E427A@seespotcode.net
Whole thread Raw
In response to naming a primary key possible?  (Ow Mun Heng <Ow.Mun.Heng@wdc.com>)
List pgsql-general
On Aug 27, 2007, at 20:50 , Ow Mun Heng wrote:

> Is it possible to name a primary key (composite) primary key rather
> than
> have pg default to table_name_pkey??
>
> I tried something like
>
> primary key pkey_table_short_form_name (a,b,c)

create table tab (col text, constraint col_is_pkey primary key (col));

http://www.postgresql.org/docs/8.2/interactive/sql-createtable.html

Michael Glaesemann
grzm seespotcode net



pgsql-general by date:

Previous
From: Erik Jones
Date:
Subject: Re: naming a primary key possible?
Next
From: Tom Lane
Date:
Subject: Re: Tables dissapearing