From: | "Rajesh Kumar Mallah(dot)" <mallah(at)trade-india(dot)com> |
---|---|
To: | Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com> |
Cc: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: Cascading deletions does not seem to work inside PL/PGSQL functions. |
Date: | 2002-07-17 07:12:25 |
Message-ID: | 200207171242.25885.mallah@trade-india.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
On Tuesday 16 July 2002 21:41, you wrote:
> On Tue, 16 Jul 2002, Rajesh Kumar Mallah. wrote:
> > Hi folks,
> >
> > This problem has been troubling me for quite sometime and
> > I would be very thankful for your help.
> >
> > I have included the complete commented script to recreate the problem in
> > question.
> >
> > The problem is inside a plpgsql function i do not see the records in the
> > slave tables getting deleted when i delete the corresponing referenced
> > record from the master table.
> >
> > But things as expected inside a Transaction at the PSQL prompt.
>
> It should get deleted, but it won't be deleted until the end of the
> user's sql statement (ie, not until after the function has finished).
Hi thanks for the reply,
Is it a bug? or is it expected ,
what if i do not want to fire sperate delete SQLs for the slave
tables ?
regds
mallah.
--
Rajesh Kumar Mallah,
Project Manager (Development)
Infocom Network Limited, New Delhi
phone: +91(11)6152172 (221) (L) ,9811255597 (M)
Visit http://www.trade-india.com ,
India's Leading B2B eMarketplace.
From | Date | Subject | |
---|---|---|---|
Next Message | Dror Matalon | 2002-07-17 07:20:30 | Large objects and Meta Data |
Previous Message | Achilleus Mantzios | 2002-07-17 07:00:55 | Re: A SQL Training |