validation of postgresql functions

From: dinosaur8000(at)yahoo(dot)com (giant food)
To: pgsql-general(at)postgresql(dot)org
Subject: validation of postgresql functions
Date: 2003-09-29 21:40:07
Message-ID: a61ab53c.0309291340.6e227508@posting.google.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Joseph Shraibman 2003-09-29 22:54:39 Is there any way to force analyze to run on a whole table?
Previous Message Christopher Browne 2003-09-29 21:01:34 Re: Postgres vs. Progress performance