Re: Failure to Call a Nested Function - Mailing list pgsql-novice

From Vibhor Kumar
Subject Re: Failure to Call a Nested Function
Date
Msg-id 35304AD1-2A0E-4C69-985E-00783E938509@enterprisedb.com
Whole thread Raw
In response to Failure to Call a Nested Function  (Manlin Vee <maps.this.address@gmail.com>)
Responses Re: Failure to Call a Nested Function
List pgsql-novice
On Feb 25, 2011, at 9:08 AM, Manlin Vee wrote:

> REATE FUNCTION
> psql:/path/to/my.sql:(line 25): ERROR: :  syntax error at or near
> "check_year"
> LINE 1: check_year( $1 )
>        ^
> QUERY:  check_year( $1 )
> CONTEXT:  SQL statement in PL/PgSQL function "check_age" near line 5
> psql:/path/to/my.sql:(line 30): ERROR:  function check_age() does not exist
>
>
> Interestingly, if I append "PERFORM" before line "20" to invoke
> check_year(), the error message subdues. What am I doing wrong? Do I have



Yes. Function can be call using SELECT OR if you want to ignore the Result then you can use perform.

Thanks & Regards,
Vibhor Kumar
EnterpriseDB Corporation
The Enterprise PostgreSQL Company
Cell: +91-932-568-2279
vibhor.kumar@enterprisedb.com
Blog:http://vibhork.blogspot.com


pgsql-novice by date:

Previous
From: Tom Lane
Date:
Subject: Re: Enabling SSL fails to restart server
Next
From: Chetan Suttraway
Date:
Subject: Re: EnterpriseDB