pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: harry@harryclarke.me.uk
Subject: BUG #15451: Error adding foriegn key constraint
Date: Mon, 22 Oct 2018 19:05:51 +0000
Message-ID: <15451-d33ba98cab3afa91@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      15451
Logged by:          Harry Clarke
Email address:      harry@harryclarke.me.uk
PostgreSQL version: 10.5
Operating system:   Windows Server 2008 R2 standard
Description:        

When trying to create a table, or to add a foreign key constraint to a
table, an error (see below) is produced. However, both tables are permanent
tables, and there are no temporary tables that I am aware of.

ERROR: constraints on permanent tables may reference only permanent tables

ALTER TABLE bnm.table1
    ADD CONSTRAINT id_fk FOREIGN KEY (bnm_id)
    REFERENCES bnm.table2 (id) MATCH SIMPLE
    ON UPDATE NO ACTION
    ON DELETE NO ACTION;



view thread (3+ messages)  latest in thread

Message-ID: <15451-d33ba98cab3afa91@postgresql.org>
Permalink:  ../15451-d33ba98cab3afa91@postgresql.org/
Also on:    postgresql.org/message-id/15451-d33ba98cab3afa91@postgresql.org

 · 

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-bugs@postgresql.org
  Cc: noreply@postgresql.org, harry@harryclarke.me.uk
  Subject: Re: BUG #15451: Error adding foriegn key constraint
  In-Reply-To: <15451-d33ba98cab3afa91@postgresql.org>
  References: <15451-d33ba98cab3afa91@postgresql.org>

* 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