Thread: refint.sql

refint.sql

From
"Anand Raman"
Date:
Hi guys
I have been trying to get refrential integrity working on postgre 6.5.3.. I understand after reading all the manuals and lot of posts on the mailing list that i have to run refint.sql .. However the tar ball i downloaded doesnt have this. The only refint files present in contrib/spi are
refint.c       
refint.example 
refint.source
 
Can any one of u please mail it to me..
 
I am using SuSE 6.2 and postgresql 6.5.2
 
Thanx for ur time..
Anand

Re: refint.sql

From
Marc Tardif
Date:
Those are all the files you need. First, run gmake in contrib/spi and
you'll notice two more files are created:
refint.so
refint.sql

Also, take note that referential integrity on postgresql 6.5.3 works by
using triggers. So you must first CREATE FUNCTION which is detailed in
refint.sql which, in turn, was created from refint.source by the Makefile.
Then, you must CREATE TRIGGER for which there is an example in
refint.example.

On Fri, 28 Apr 2000, Anand Raman wrote:

> Hi guys
> I have been trying to get refrential integrity working on postgre
> 6.5.3.. I understand after reading all the manuals and lot of posts on
> the mailing list that i have to run refint.sql .. However the tar ball i
> downloaded doesnt have this. The only refint files present in
> contrib/spi are
> refint.c
> refint.example
> refint.source
>
> Can any one of u please mail it to me..
>
> I am using SuSE 6.2 and postgresql 6.5.2
>
> Thanx for ur time..
> Anand
>