appending items to record variable

From: x y <charliesen(at)googlemail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: appending items to record variable
Date: 2010-05-14 13:12:59
Message-ID: AANLkTilZtEESG95u_ZQMmTWkk5J69xOwH6qQD9gruLtT@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi all

In plpgsql, is there a way to append rows to a record variable?

Each time a query like
SELECT mycolumn INTO myrecordvariable FROM ...
is executed, myrecordvariable seems to be reseted and previous entries are lost.

What I want to do is collect values throughout several conditionals
and then (when the collection is finished) continue processing these
values - all in a single function.

An array does not suite because searching is to slow and creating a
temporary table is not what I want either..
Or are there any other means to collect items into a searchable list of values?

Cheers
Tobias

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Greg Stark 2010-05-14 13:16:47 Re: List traffic
Previous Message I. B. 2010-05-14 12:35:34 Re: Persistence problem