Re: Re: volatile void returning function not executed as often as expected in sql function

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: Re: volatile void returning function not executed as often as expected in sql function
Дата
Msg-id CAHyXU0yGXGwpUJBQJJek9WdyZS71OwonRX7yqksJeGtoo6Lqtw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: volatile void returning function not executed as often as expected in sql function  (Ingmar Brouns <swingi@gmail.com>)
Список pgsql-general
On Wed, May 15, 2013 at 5:44 AM, Ingmar Brouns <swingi@gmail.com> wrote:
> When I send the mail, I saw it, the problem is that the function
> should return setof void instead of void, then it works, sorry for
> bothering.

for non-trivial sql language processing functions I tend to return an
error code or string indicating success.

create or replace function foofunc2() returns int as
$func$
    select foofunc(a) from foo;
    select 0;
$func$ language sql;


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

Предыдущее
От: Mike Christensen
Дата:
Сообщение: Re: dblink does not resolve DNS, but works with IP
Следующее
От: Tom Lane
Дата:
Сообщение: Re: seeming overflow during avg() of intervals without errors/warnings