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

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Cascading deletions does not seem to work inside PL/PGSQL
Дата
Msg-id 20020716090915.M50015-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Cascading deletions does not seem to work inside PL/PGSQL functions.  ("Rajesh Kumar Mallah." <mallah@trade-india.com>)
Ответы Re: Cascading deletions does not seem to work inside PL/PGSQL functions.
Список 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).





В списке pgsql-sql по дате отправления:

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: Indexing UNIONs
Следующее
От: "Josh Berkus"
Дата:
Сообщение: Re: Indexing UNIONs