From: Bruce Momjian <bruce@momjian.us>
To: Marc Millas <marc.millas@mokadb.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: syntax question
Date: Thu, 3 Jun 2021 15:01:08 -0400
Message-ID: <20210603190108.GC22019@momjian.us> (raw)
In-Reply-To: <CADX_1aa=8woWOoOzo0iMjvkFkJC1=31+fziMaAUfFu4u7d0_xg@mail.gmail.com>
References: <CADX_1aa=8woWOoOzo0iMjvkFkJC1=31+fziMaAUfFu4u7d0_xg@mail.gmail.com>
On Thu, Jun 3, 2021 at 08:58:03PM +0200, Marc Millas wrote:
> Hi,
>
> within a function, I want to create another function.
> no pb.
> but if I write:
> declare bidule text;
> begin
> bidule:='myfunc';
> create function bidule() ...
>
>
> it does create a function named bidule and not myfunc.
> so I am obviously missing something too obvious.
You can't create functions inside of functions; same for procedures.
--
Bruce Momjian <bruce@momjian.us> https://momjian.us
EDB https://enterprisedb.com
If only the physical world exists, free will is an illusion.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: bruce@momjian.us, marc.millas@mokadb.com
Subject: Re: syntax question
In-Reply-To: <20210603190108.GC22019@momjian.us>
References: <CADX_1aa=8woWOoOzo0iMjvkFkJC1=31+fziMaAUfFu4u7d0_xg@mail.gmail.com> <20210603190108.GC22019@momjian.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox