Re: PERFORM statement inside procedure - Mailing list pgsql-general

From Tom Lane
Subject Re: PERFORM statement inside procedure
Date
Msg-id 5890.1081316725@sss.pgh.pa.us
Whole thread Raw
In response to Re: PERFORM statement inside procedure  ("Rajat Katyal" <rajatk@intelesoftech.com>)
List pgsql-general
"Rajat Katyal" <rajatk@intelesoftech.com> writes:
> checkPKSql := ''select * from "transform_customer_billing" '';
> checkPKSql := checkPKSql || '' where "inv_no" = '' || quote_literal(new=
> ."inv_no");
> PERFORM checkPKSql;

You seem to be confusing PERFORM with EXECUTE.  They are very different.
The above PERFORM is really equivalent to
    SELECT 'select ...';
which naturally yields a row containing a not-very-useful string value.

            regards, tom lane

pgsql-general by date:

Previous
From: David Garamond
Date:
Subject: BYTEA maximum sizes (Re: Storing jpgs)
Next
From: Tom Lane
Date:
Subject: Re: 7.4.1 & invalid page header in block