[GENERAL] Foreign Keys in PostgreSQL

1999-07-15 Thread Simeó

How can I implement foreign Keys with postgres? thanks.

 

  
   Simeó Reig 
[EMAIL PROTECTED] 
  Barcelona   (SPAIN)
  -   



Re: [GENERAL] Foreign Keys in PostgreSQL

1999-07-15 Thread Howie

On Thu, 15 Jul 1999, [iso-8859-1] Simeó wrote:

 How can I implement foreign Keys with postgres? thanks.

pgsql/contrib/spi has refint.c.  you'd want to compile that and execute
refint.sql.  it also comes with documentation.

refit is, for now, the way postgres handles foreign keys.  two functions
are involved, check_foreign_key() and check_primary_key().

---
Howie [EMAIL PROTECTED]   URL: http://www.toodarkpark.org
"The distance between insanity and genius is measured only by success."