Re: syntax error on Function return setoff - Mailing list pgsql-novice

From David G. Johnston
Subject Re: syntax error on Function return setoff
Date
Msg-id CAKFQuwZRtJj4PdrGfSXJ2ZQQQHyh8hnpuVA_NJ-tZ6+hLXMqNw@mail.gmail.com
Whole thread Raw
In response to Re: syntax error on Function return setoff  (Garry Chen <gc92@cornell.edu>)
List pgsql-novice
On Mon, Jan 29, 2018 at 6:42 AM, Garry Chen <gc92@cornell.edu> wrote:
Hi Andreas,
        Thank you very much for your reply.  Very strange, in 9.6 the function created/compiled successful  without the table called "acct_nbr_lst".  But in release 10 this table "acct_nbr_lst" must exist in order to create/compiled this function.   In RDBMS function/procedure coding principal, I don’t know which one is the correct way.  Is there any Postgresql documents that states/mentation the prerequisite about the SETOF?   Once again thank you very much for your help.

​Anything outside of the string-literal function body (which includes the RETURNS clause) has to exist and is recorded as a dependency.  The material within a function body usually (not sure if/when expections...) is not required to exist and is not recorded as a dependency.​

David J.

pgsql-novice by date:

Previous
From: Garry Chen
Date:
Subject: Re: syntax error on Function return setoff
Next
From: Not A Scientist
Date:
Subject: Upgrade 8.4.22 to 9.2 - LC_Collate differs