pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvar Freude <alvar@a-blast.org>
To: postgres@yahoogroups.de
Subject: Re: [postgres] Foreign Key
Date: Mon, 13 Oct 2003 12:37:14 +0200
Message-ID: <371960000.1066041434@gnarzelwicht.delirium-arts.de> (raw)
In-Reply-To: <20031013085755.6C5981B02C@gnarzelwicht.delirium-arts.de>
References: <20031013085755.6C5981B02C@gnarzelwicht.delirium-arts.de>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hallo,

- -- Stefan Sturm <stefan@urkman.de> wrote:

> In der Tabelle status befinden sich Datensätze. Die Tabelle logins ist
> leer. Nun versuche ich folgenden Befehl:
> 
> ALTER TABLE "public"."login " ADD CONSTRAINT "test" FOREIGN KEY
> ("status__id") REFERENCES "public"."status"("id")
>   ON DELETE RESTRICT
>   ON UPDATE RESTRICT
>   NOT DEFERRABLE;
> 
> Jetzt bekomme ich immer die Fehlermeldung:
> ERROR:  Query was cancelled.

hmmm, die Fehlermeldung ist seltsam und tritt normalerweise bei Abbruch zum
Beispiel bei ^C im Frontent auf.

Bei ALTER TABLE kann Postgres noch nicht alle Features; je älter die
Version, desto weniger ;-)

Evtl. sind auch die Anführungszeichen ein Problem.


Einfach mal in der Doku zu alter Table nachschauen, was da geht

Ciao
  Alvar



- -- 
** Alvar C.H. Freude -- http://alvar.a-blast.org/
** 
**   ODEM.org-Tour:  http://tour.odem.org/
**
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQE/ioBaOndlH63J86wRApScAJ49Wci7CmjVu3qkSOKUCNCTOqY1DQCfSzyW
MjDrIJmz+Yy8/gM5gQcVlDs=
=Guu6
-----END PGP SIGNATURE-----


Wenn Sie Ihr Abonnement fuer diese Gruppe kuendigen moechten, senden 
Sie eine E-Mail an:
postgres-unsubscribe@egroups.de

 

Die Nutzung von Yahoo! Groups ist Bestandteil von http://de.docs.yahoo.com/info/utos.html 





view thread (22+ messages)  latest in thread

Message-ID: <371960000.1066041434@gnarzelwicht.delirium-arts.de>
Permalink:  ../371960000.1066041434@gnarzelwicht.delirium-arts.de/
Also on:    postgresql.org/message-id/371960000.1066041434@gnarzelwicht.delirium-arts.de

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: alvar@a-blast.org, postgres@yahoogroups.de
  Subject: Re: [postgres] Foreign Key
  In-Reply-To: <371960000.1066041434@gnarzelwicht.delirium-arts.de>

* 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