Re: where is the "applied"? - Mailing list pgsql-general

From Anand Surelia
Subject Re: where is the "applied"?
Date
Msg-id 37AF6712.D566CB9D@bytekinc.com
Whole thread Raw
Responses Re: [GENERAL] Re: where is the "applied"?
List pgsql-general
Hi Kai,

It beats me too. I was under the impression that the patch was applied for
all versions greater than 6.3.2. I haven't bothered to upgrade since then so
I don't know if it was ever actually applied. Here is a working copy of
refint.c which I am using now, you can try using it but I haven't tested it
for V6.5.

-- Anand.

kai qu wrote:

> hi, Anand,
>
> why I can not find it in the source code in V6.5? isn't it applied? Am I
> missing something ?
>
> Kai
>
> ##########################################################
> From: Bruce Momjian <maillist@candle.pha.pa.us>
>     To: anand@bytekinc.com (Anand Surelia)
>     Subject: Re: [GENERAL] Foreign Keys: check_primary_function
>     Date: Sun, 14 Mar 1999 19:34:27 -0500 (EST)
>
> Applied.
>
> > Hi All,
> > I've changed the check_primary_key() function code to allow for either
>
> > the "automatic insert key rule" or "dependent insert key rule".
> > Previously it restricted the addtion of a child entry if the
> > corresponding parent entry was not there. Now if the option is
> > "automatic" it will add an entry in the parent too ( it will be
> > successful if there are no no-null fields in the parent apart from the
>
> > primary key).
> > The way to use it now is:
> > /*
> >  * check_primary_key () -- check that key in tuple being
> > inserted/updated
> >  *                       references existing tuple in "primary" table.
>
> >  * Though it's called without args You have to specify referenced
> >  * table/keys while creating trigger:  key field names in triggered
> > table,
> >  * referenced table name, referenced key field names,type of action
> > [automatic|dependent]:
> >  * EXECUTE PROCEDURE
> >  * check_primary_key ('Fkey1', 'Fkey2', 'Ptable', 'Pkey1', 'Pkey2',
> > '[automatic|dependent]').
> >  */
> > I am attaching the new ../contrib/spi/refint.c file which will do
> this.
> > I will be glad to help in case of any problems.
> >
> > - Anand.
> >
> >



Attachment

pgsql-general by date:

Previous
From: Rex McMaster
Date:
Subject: Re: [GENERAL] Speed of joins using sparse indexes
Next
From: David Bryant
Date:
Subject: ...