Re: [SQL] 7.1beta4 bug creating a certain table

From: Najm Hashmi <najm(at)mondo-live(dot)com>
To: Kovacs Zoltan <kovacsz(at)pc10(dot)radnoti-szeged(dot)sulinet(dot)hu>
Cc: pgsql-hackers(at)postgresql(dot)org, pgsql-sql(at)postgresql(dot)org
Subject: Re: [SQL] 7.1beta4 bug creating a certain table
Date: 2001-01-30 21:36:38
Message-ID: 3A7733E6.E02FCF22@mondo-live.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-sql

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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Mount 2001-01-30 22:31:36 Re: Open 7.1 items
Previous Message Peter Mount 2001-01-30 21:33:07 Re: Re: [GENERAL] Trouble porting postgreSQL to WinNT

Browse pgsql-sql by date

  From Date Subject
Next Message Keith Gray 2001-01-30 21:55:23 DROP Column
Previous Message Stephan Szabo 2001-01-30 18:19:17 Re: 7.1beta4 bug creating a certain table