Re: multiple function declarations - Mailing list pgsql-sql

From Peter Eisentraut
Subject Re: multiple function declarations
Date
Msg-id Pine.LNX.4.44.0311180721400.639-100000@peter.localdomain
Whole thread Raw
In response to multiple function declarations  ("Majhi, Akas" <amajhi@orbitwerks.com>)
List pgsql-sql
Majhi, Akas writes:

> 1. Can I declare a function (HelperFunc) inside the main function  (MainFunc)
> 2. If yes then how.

You could do it if you create the CREATE FUNCTION command in a string
variable and then use EXECUTE to run it, but the normal way would be to
declare it outside.  There is usually no reason not to do that.

-- 
Peter Eisentraut   peter_e@gmx.net



pgsql-sql by date:

Previous
From: "Majhi, Akas"
Date:
Subject: multiple function declarations
Next
From: Michele Bendazzoli
Date:
Subject: Re: Multicolum index and primary key