Received: from postgresql.org.org (webmail.postgresql.org [216.126.85.28]) by postgresql.org (8.11.3/8.11.4) with SMTP id f7TGe9f87997 for ; Wed, 29 Aug 2001 12:40:09 -0400 (EDT) (envelope-from pgsql-sql-owner@postgresql.org) Received: from news.tht.net (news.hub.org [216.126.91.242]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f7M4XHP18868 for ; Wed, 22 Aug 2001 00:33:17 -0400 (EDT) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.4/8.11.4) id f7M4LwS63338 for pgsql-sql@postgresql.org; Wed, 22 Aug 2001 00:21:58 -0400 (EDT) (envelope-from news) From: "Jayson Callaway" X-Newsgroups: comp.databases.postgresql.sql Subject: changes to table creation syntax in 7.1.2? Date: Wed, 22 Aug 2001 00:23:54 -0400 Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 21 Message-ID: <9lvc15$1tr7$1@news.tht.net> X-Complaints-To: scrappy@hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 To: pgsql-sql@postgresql.org X-Archive-Number: 200108/352 X-Sequence-Number: 4602 In postgres 7.0.x I had some working code that lookes something like: CREATE TABLE category ( uid int4 PRIMARY KEY, description text NOT NULL, parent int4 NULL REFERENCES category(uid) ) After upgrading to postgres 7.1.2 however this syntax is not accepted anymore. I receive an error that says it can not create the reference because the table category does not exist. How do I setup this type of reference structure in 7.1.2? Did the syntax change? I am running under Linux. -- Jayson Callaway