From: | Ben <bench(at)silentmedia(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: validation of postgresql functions |
Date: | 2003-10-03 16:30:41 |
Message-ID: | Pine.LNX.4.44.0310030928230.22485-100000@localhost.localdomain |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
I never found a way. Instead I hacked up a general stored proceedure
testbed. I was going to release it when I had some time to make it
somewhat clean, but if you're desperate for something now I can give you
what I've got....
On 29 Sep 2003, giant food wrote:
> Hi, I'm in the process of converting an Oracle database into
> postgresql. One thing I've noticed is that postgresql functions keep
> the entire function body in a string, e.g.:
>
> CREATE OR REPLACE FUNCTION f_do_something(varchar, numeric, varchar)
> RETURNS varchar AS
> '
> ...
> '
> LANGUAGE 'plpgsql' VOLATILE;
>
> The problem I'm having with this is that I can never find any errors
> in my functions until runtime, unlike with Oracle where the "create
> function" script will fail if, for example, I misspelled a table name.
>
> Is there any way to force postgresql to compile functions, without
> running them first?
>
> --Frank
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: the planner will ignore your desire to choose an index scan if your
> joining column's datatypes do not match
>
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2003-10-03 16:32:00 | Re: Postgres low end processing. |
Previous Message | Bruno Wolff III | 2003-10-03 16:16:07 | Re: updating records |