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
---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match