pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: harry@harryclarke.me.uk
To: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15451: Error adding foriegn key constraint
Date: Mon, 22 Oct 2018 16:12:08 -0300
Message-ID: <20181022191208.po23ymm4c45qziqk@alvherre.pgsql> (raw)
In-Reply-To: <15451-d33ba98cab3afa91@postgresql.org>

On 2018-Oct-22, PG Bug reporting form wrote:

> 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;

Is table2 an unlogged table perchance?

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




view thread (3+ messages)

Message-ID: <20181022191208.po23ymm4c45qziqk@alvherre.pgsql>
Permalink:  ../20181022191208.po23ymm4c45qziqk@alvherre.pgsql/
Also on:    postgresql.org/message-id/20181022191208.po23ymm4c45qziqk@alvherre.pgsql

 · 

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: alvherre@2ndquadrant.com, harry@harryclarke.me.uk
  Subject: Re: BUG #15451: Error adding foriegn key constraint
  In-Reply-To: <20181022191208.po23ymm4c45qziqk@alvherre.pgsql>
  References: <15451-d33ba98cab3afa91@postgresql.org> <20181022191208.po23ymm4c45qziqk@alvherre.pgsql>

* 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