Calling Functions With OUT paramaters - Mailing list pgsql-general

From David Greco
Subject Calling Functions With OUT paramaters
Date
Msg-id CDFA9340E95A764E9366B4EDF3A431250108B64E29F0@VA3DIAXVS091.RED001.local
Whole thread Raw
Responses Re: Calling Functions With OUT paramaters
List pgsql-general

I have a function definited as such:

 

CREATE OR REPLACE FUNCTION address_pkg.parse_zip(IN cpostal character varying, OUT czip character varying, OUT czip4 character varying) LANGUAGE plpgsql;

 

 

How does one call this from another plpgsql function? Currently, I am using something of the form:

 

SELECT * INTO cZip, cZip4 FROM Address_pkg.Parse_Zip(postal_code);

 

But, I am not a big fan of this. Is there another way?

 

 

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Client encoding not the same as the db encoding
Next
From: "McGehee, Robert"
Date:
Subject: Arbitrary and mixed data types in function