Effectively I had to create the function externally, I am in the process of migrating from Oracle to Postgresql and I have many cases of encapsulated functions and transactions. Thank you very much for the return. Rossana Ocampos -----Ursprüngliche Nachricht----- Von: Laurenz Albe [mailto:laurenz.albe@xxxxxxxxxxx] Gesendet: Dienstag, 16. Januar 2024 15:42 An: Rossana Ocampos; pgsql-general@xxxxxxxxxxxxxxxxxxxx Betreff: Re: Nested-Internal Functions On Tue, 2024-01-16 at 13:15 +0100, Rossana Ocampos wrote: > I have a query about creating nested functions in PostgreSQL. There are no "nested functions" in PostgreSQL. You'd need to rewrite that to use a proper stand-alone function. Yours, Laurenz Albe