pg.ddx.io pgsql-admin@postgresql.org mailing list archivehelp / color / mirror / Atom feed
adding primary keys 2+ messages / 2 participants [nested] [flat]
* adding primary keys @ 2001-12-03 19:39 jason <jpoley@poley.net> 2001-12-06 16:06 ` Re: adding primary keys Stephan Szabo <sszabo@megazone23.bigpanda.com> 0 siblings, 1 reply; 2+ messages in thread From: jpoley@poley.net @ 2001-12-03 19:39 UTC (permalink / raw) To: pgsql-admin how come you can not alter a table and add a primary key after the table has been created? (or at least i can't seem to) mydb=> alter table actions add primary key (action); ERROR: ALTER TABLE / ADD CONSTRAINT is not implemented for that constraint type. any suggestions? ^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: adding primary keys 2001-12-03 19:39 adding primary keys jason <jpoley@poley.net> @ 2001-12-06 16:06 ` Stephan Szabo <sszabo@megazone23.bigpanda.com> 0 siblings, 0 replies; 2+ messages in thread From: Stephan Szabo @ 2001-12-06 16:06 UTC (permalink / raw) To: jason <jpoley@poley.net>; +Cc: pgsql-admin On 3 Dec 2001, jason wrote: > how come you can not alter a table and add a primary key after the > table has been created? Because it wasn't implemented for that constraint type ;) (I think it'll work in at least some cases for 7.2)? > any suggestions? Check the archives for 7.1 and earlier workarounds, it's come up fairly recently. ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2001-12-06 16:06 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2001-12-03 19:39 adding primary keys jason <jpoley@poley.net> 2001-12-06 16:06 ` Stephan Szabo <sszabo@megazone23.bigpanda.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox