Function inside query status

Поиск
Список
Период
Сортировка
От Rama Krishnan
Тема Function inside query status
Дата
Msg-id CAJWX+EN7KBmA1MTsjz_-ZaC4ZM-=7oU5uo-nkWkp1YS6FhAoYg@mail.gmail.com
обсуждение исходный текст
Ответы Re: Function inside query status  (Adrian Klaver <adrian.klaver@aklaver.com>)
Список pgsql-general
Hi All, 


Is it possible to check the query execution status inside the function. 



 created or replace function data_purge() returns void as$$
Declare
Begin
Drop table test_old;
Create table test_old as select * from sales where bill_date<now() -interval '1 year';

Delete table sales where sales_id in (select sales_id from test_old;

End;
$$ language plpgsql;



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

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: User's responsibility when using a chain of "immutable" functions?
Следующее
От: eswar reddy
Дата:
Сообщение: Fatel: unsupported frientend protocol error