Re: Passing a row

From: Terry Lee Tucker <terry(at)esc1(dot)com>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Passing a row
Date: 2004-03-27 22:09:37
Message-ID: 200403271709.37439.terry@esc1.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ok. Now I get it. Guess I worked on this too long yesterday. Thanks for the
help.

On Friday 26 March 2004 04:46 pm, Terry Lee Tucker saith:
> Thanks for your response. I looked the posts you reference, but, to be
> quite frank, I didn't understand. I am confused regarding the sample code
> in the documentation I am looking at. Here it is:
>
> CREATE FUNCTION use_many_fields(tablename) RETURNS TEXT AS '
> DECLARE
> in_t ALIAS FOR $1;
> BEGIN
> RETURN in_t.f1 || in_t.f3 || in_t.f5 || in_t.f7;
> END;
> ' LANGUAGE 'plpgsql';
>
> If this code is workable code, I would love to see an example of the code
> that would call such a function so I can determine how to pass the
> parameter. I think I did a poor job of expressing my ignorance ;o)
>
> Thanks...
>
> On Friday 26 March 2004 10:59 am, Tom Lane saith:
> > Terry Lee Tucker <terry(at)esc1(dot)com> writes:
> > > Can anybody show me the error of my ways?
> >
> > Seems like I just answered this yesterday ... ah, here we go:
> > http://archives.postgresql.org/pgsql-general/2004-03/msg00862.php
> >
> > I don't recall if 7.3 has all the functionality of 7.4 in this regard.
> >
> > regards, tom lane
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 8: explain analyze is your friend

--
Work: 1-336-372-6812
Cell: 1-336-363-4719
email: terry(at)esc1(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Pablo Montilla 2004-03-28 00:41:17 Re: Waiting for Commit
Previous Message Tom Lane 2004-03-27 20:16:19 Re: License on PostgreSQL