Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

Deferred uniqueness versus foreign keys


  • From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
  • To: Jeff Davis <pgsql(at)j-davis(dot)com>, Dean Rasheed <dean(dot)a(dot)rasheed(at)googlemail(dot)com>
  • Cc: pgsql-hackers(at)postgreSQL(dot)org
  • Subject: Deferred uniqueness versus foreign keys
  • Date: Tue, 28 Jul 2009 16:08:58 -0400
  • Message-id: <7260.1248811738@sss.pgh.pa.us> <text/plain>

[sigh, forgot to cc hackers the first time ]

Foreign key behavior is only sane if the referenced column(s) are
unique.  With the proposed patch, it is possible that the uniqueness
check on the referenced columns is deferred, which means it might not
occur till after an FK check does.  Discuss.

			regards, tom lane



Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group