pgsql: Improve error message for the case where a requested foreign key

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Improve error message for the case where a requested foreign key
Date: 2009-08-12 23:00:13
Message-ID: 20090812230013.1008875331E@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Improve error message for the case where a requested foreign key constraint
does match some unique index on the referenced table, but that index is
only deferrably unique. We were doing this nicely for the
default-to-primary-key case, but were being lazy for the other case.

Dean Rasheed

Modified Files:
--------------
pgsql/src/backend/commands:
tablecmds.c (r1.296 -> r1.297)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/commands/tablecmds.c?r1=1.296&r2=1.297)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2009-08-13 16:53:09 pgsql: Put back adjust_appendrel_attrs()'s code for dealing with
Previous Message Tom Lane 2009-08-12 21:03:52 pgsql: The html-stamp and man-stamp files also need to be cvsignore'd.