From: Jayson Callaway <jayson.callaway@iona.com>
To: pgsql-sql@postgresql.org
Subject: changes to table creation syntax in 7.1.2?
Date: Wed, 22 Aug 2001 00:23:54 -0400
Message-ID: <9lvc15$1tr7$1@news.tht.net> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: jayson.callaway@iona.com
Subject: Re: changes to table creation syntax in 7.1.2?
In-Reply-To: <9lvc15$1tr7$1@news.tht.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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