Re: Function syntax checking

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Karim Nassar <Karim(dot)Nassar(at)NAU(dot)EDU>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Function syntax checking
Date: 2004-10-25 00:56:31
Message-ID: 29747.1098665791@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Karim Nassar <Karim(dot)Nassar(at)NAU(dot)EDU> writes:
> I am writing functions and I find it curious that CREATE FUNCTION does
> not do syntax checking.

Try 8.0 ;-)

regression=# CREATE FUNCTION foo(INTEGER) RETURNS BOOLEAN
regression-# AS 'this is total crap' LANGUAGE plpgsql;
ERROR: syntax error at or near "this" at character 50
LINE 2: AS 'this is total crap' LANGUAGE plpgsql;
^

We could be doing more along this line, but it's a start ...

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2004-10-25 01:05:17 Re: Memory exhausted on DELETE.
Previous Message Doug McNaught 2004-10-25 00:02:45 Re: Importing a tab delimited text file - How?