Re: prepare in a do loop

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: prepare in a do loop
Дата
Msg-id CAKFQuwZa0jKc9ipDv-uKo2ZWwUvov6o_dvuw2ynTWpJDiax-rQ@mail.gmail.com
обсуждение исходный текст
Ответ на prepare in a do loop  (Marc Millas <marc.millas@mokadb.com>)
Список pgsql-general
On Mon, Feb 15, 2021 at 9:19 AM Marc Millas <marc.millas@mokadb.com> wrote:

postgres=# prepare moninsert(varchar) as

do $$ begin for counter in 1..1000000 loop execute moninsert(randname());end loop;end;$$;
ERREUR:  la fonction moninsert(character varying) n'existe pas
someone can explain ?


From the pl/pgsql docs:

"The PL/pgSQL EXECUTE statement is not related to the EXECUTE SQL statement supported by the PostgreSQL server. The server's EXECUTE statement cannot be used directly within PL/pgSQL functions (and is not needed)."


David J.

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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: prepare in a do loop
Следующее
От: Ron
Дата:
Сообщение: Re: ADD FOREIGN KEY fails, but the records exist