Re: Need help with INOUT mis-understanding

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Troy" <troy(at)hendrix(dot)biz>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Need help with INOUT mis-understanding
Date: 2005-10-27 15:10:11
Message-ID: 19208.1130425811@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Troy" <troy(at)hendrix(dot)biz> writes:
> P.S. - Tom if the return of func2 = var_X = (10,5) how can I parse the
> varible out like:
> var_Y = var_X[1] -- first ARRAY item
> to get var_Y = 10?

Try assigning the function result to a RECORD variable, perhaps

SELECT * INTO rec FROM foo(...);

Then you can access the record variable's fields.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alex Stapleton 2005-10-27 15:14:22 Re: Why database is corrupted after re-booting
Previous Message Tom Lane 2005-10-27 15:07:37 Re: Why database is corrupted after re-booting