"Kyle F. Downey" <kdowney(at)amberarcher(dot)com> writes:
> In 7.1rc2, this same DDL results in this error:
> ERROR: UNIQUE constraint matching given keys for referenced table
> "incidents" not found
7.1 enforces the requirement that the referenced column be marked UNIQUE
(or PRIMARY KEY, which implies UNIQUE). Seems to work if you add that.
regards, tom lane