Search Postgresql Archives

Re: naming a primary key possible?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux