Re: Stored function debugging help

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Stored function debugging help
Date: 2011-11-28 09:43:24
Message-ID: 4ED357BC.5020907@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 11/28/11 1:30 AM, JavaNoobie wrote:
> 1) Get a list of all the consumers and store their id's stored in a temp
> table.
> 2) Iterate over a particular table and retrieve values corresponding to each
> value from the above list and store in a temp table.
> 3)Return the temp table.

couldn't that all be done by a JOIN without involving a temporary table,
or iteration?

this seems like a conventional programmers approach to problem solving,
rather than using the power of the relational database.

--
john r pierce N 37, W 122
santa cruz ca mid-left coast

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Condor 2011-11-28 11:31:48 Re: How to add conversion between LATIN1 and WIN1251 ?
Previous Message tamanna madaan 2011-11-28 09:30:39 psql query gets stuck indefinitely