Re: Cascading deletions does not seem to work inside PL/PGSQL

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: "Rajesh Kumar Mallah(dot)" <mallah(at)trade-india(dot)com>
Cc: <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Cascading deletions does not seem to work inside PL/PGSQL
Date: 2002-07-16 16:11:13
Message-ID: 20020716090915.M50015-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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).

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Bruce Momjian 2002-07-16 16:26:49 Re: [SQL] line datatype
Previous Message Lamar Owen 2002-07-16 16:10:23 Re: [SQL] line datatype