pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Najm Hashmi <najm@mondo-live.com>
To: Kovacs Zoltan <kovacsz@pc10.radnoti-szeged.sulinet.hu>
Cc: pgsql-hackers@postgresql.org
Cc: pgsql-sql@postgresql.org
Subject: Re: [SQL] 7.1beta4 bug creating a certain table
Date: Tue, 30 Jan 2001 16:36:38 -0500
Message-ID: <3A7733E6.E02FCF22@mondo-live.com> (raw)
References: <Pine.LNX.4.21.0101292205450.1541-100000@pc10.radnoti-szeged.sulinet.hu>

Hi, I ran the same code on 7.1beta 3 and it works... I don't have beta4
installed...

newdb=# CREATE TABLE pakolas_cikktetel (
newdb(#     pakolas int4 not null,
newdb(#     cikk int4 not null,
newdb(#     minoseg int4 not null,
newdb(#     sorszam int4 check (sorszam > 0),
newdb(#     helyrol int4,
newdb(#     helyre int4,
newdb(#     mennyi numeric(14,4) not null ,
newdb(#     lezarva bool default 'f',
newdb(#     primary key (pakolas, cikk, minoseg, sorszam),
newdb(#     unique (pakolas, cikk, minoseg, helyrol, helyre));
NOTICE:  CREATE TABLE/PRIMARY KEY will create implicit index
'pakolas_cikktetel_pkey' for table 'pakolas_cikktetel'
NOTICE:  CREATE TABLE/UNIQUE will create implicit index
'pakolas_cikktetel_pakolas_key' for table 'pakolas_cikktetel'
CREATE
Najm

Kovacs Zoltan wrote:

> I cannot create a certain table in 7.1beta4. With 7.0.2 there was not any
> problem.
>
> ------------------------------------------------------------------------------
> CREATE TABLE pakolas_cikktetel (
>     pakolas int4 not null,
>     cikk int4 not null,
>     minoseg int4 not null,
>     sorszam int4 check (sorszam > 0),
>     helyrol int4,
>     helyre int4,
>     mennyi numeric(14,4) not null ,
>     lezarva bool default 'f',
>     primary key (pakolas, cikk, minoseg, sorszam),
>     unique (pakolas, cikk, minoseg, helyrol, helyre));
>
> CREATE TABLE keszlet_bevetel (
>     keszletnovekedes int4 not null primary key,
>     pakolas int4 not null,
>     cikk int4 not null,
>     minoseg int4 NOT NULL,
>     foreign key (pakolas, cikk, minoseg)
>         references pakolas_cikktetel(pakolas, cikk, minoseg));
> ------------------------------------------------------------------------------
>
> Here I get the following error:
>
> ERROR:  UNIQUE constraint matching given keys for referenced table
> "pakolas_cikktetel" not found
>
> (The second table will not be created.)
>
> By the way, is it possible generating patches between beta releases and
> putting on the ftp server?
>
> TIA, Zoltan




view thread (5+ messages)

Message-ID: <3A7733E6.E02FCF22@mondo-live.com>
Permalink:  ../3A7733E6.E02FCF22@mondo-live.com/
Also on:    postgresql.org/message-id/3A7733E6.E02FCF22@mondo-live.com

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: najm@mondo-live.com, kovacsz@pc10.radnoti-szeged.sulinet.hu, pgsql-hackers@postgresql.org
  Subject: Re: [SQL] 7.1beta4 bug creating a certain table
  In-Reply-To: <3A7733E6.E02FCF22@mondo-live.com>
  References: <Pine.LNX.4.21.0101292205450.1541-100000@pc10.radnoti-szeged.sulinet.hu> <3A7733E6.E02FCF22@mondo-live.com>

* 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