Skip site navigation (1) Skip section navigation (2)

Re: 8.1 and syntax checking at create time

From: Tony Caduto <tony_caduto(at)amsoftwaredesign(dot)com>
To: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
Cc: PG Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: 8.1 and syntax checking at create time
Date: 2005-08-31 17:31:01
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
here is a case that does not work:

CREATE or REPLACE FUNCTION public.test_func9(out firstname varchar,out 
lastname varchar)
RETURNS SETOF pg_catalog.record AS
row record56;
    for $0 in select '',description from common.common_groups
       -- firstname = row.description;
       -- lastname = '';
    end loop;

notice the for in select, it's for sure wrong, but it raises no errors 
until I execute the function
also note the declaration for row, there is no record56 type, but it 
raises no errors at create.

here is my version string:

PostgreSQL 8.1beta1 on i686-pc-linux-gnu, compiled by GCC 
i686-pc-linux-gnu-gcc (GCC) 3.3.5-20050130 (Gentoo Linux, ssp-, pie-

Alvaro Herrera wrote:

>On Wed, Aug 31, 2005 at 11:39:48AM -0500, Tony Caduto wrote:
>>I saw in the release notes that 8.1 is supposed to do function syntax 
>>checking at create rather than run time, but with the first beta this 
>>does not seem to work.  check function bodies is on by default in the 
>>postgresql.conf file.  Is there a setting that didn't make it into the 
>>conf file?
>It works for me; care to submit an test case?

In response to


pgsql-hackers by date

Next:From: Tom LaneDate: 2005-08-31 17:51:01
Subject: Re: 8.1 and syntax checking at create time
Previous:From: Alvaro HerreraDate: 2005-08-31 17:09:20
Subject: Re: 8.1 OUT params returning more than one row question

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group