Re: Table Constraints Bug

From: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
To: Matthew Arp <x00010000(at)att(dot)net>
Cc: pgadmin-support(at)postgresql(dot)org
Subject: Re: Table Constraints Bug
Date: 2008-09-01 16:34:37
Message-ID: 48BC199D.2050100@lelarge.info
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

Matthew Arp a écrit :
> pgAdminIII will not allow you to add a self-referential constraint while
> using the GUI table editor, see the below example:
>
> CREATE TABLE "role"
> (
> uid integer NOT NULL,
> "name" character varying(32) NOT NULL,
> parent integer NOT NULL DEFAULT 1,
> CONSTRAINT role_pkey PRIMARY KEY (uid),
> CONSTRAINT role_parent_fkey FOREIGN KEY (parent)
> REFERENCES "role" (uid) MATCH SIMPLE
> ON UPDATE NO ACTION ON DELETE RESTRICT
> )
> WITH (OIDS=FALSE);
> ALTER TABLE "role" OWNER TO glasshook_admin;

Can we have more details? because I can add a foreign key which refers
to the same table with the GUI table editor.

--
Guillaume.
http://www.postgresqlfr.org
http://dalibo.com

In response to

Browse pgadmin-support by date

  From Date Subject
Next Message ADRIANITA ELIZABETH BONILLA SANDOVAL 2008-09-03 07:31:24 Tutorial urgente!!!!
Previous Message Matthew Arp 2008-08-31 01:12:42 Table Constraints Bug