agora inbox for pgsql-sql@postgresql.org
help / color / mirror / Atom feedFrom: Adrian Klaver <adrian.klaver@gmail.com>
To: James Sharrett <jsharrett@tidemark.com>
To: pgsql-sql@postgresql.org
Subject: Re: dynamically referencing a column name in a function
Date: Sat, 15 Feb 2014 15:29:39 -0800
Message-ID: <52FFF863.5060508@gmail.com> (raw)
In-Reply-To: <CF25559D.477AC%jsharrett@tidemark.com>
References: <CF254376.47760%jsharrett@tidemark.com>
<CF25476A.47780%jsharrett@tidemark.com>
<52FFE6CC.8090605@gmail.com>
<CF25559D.477AC%jsharrett@tidemark.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-sql>
On 02/15/2014 02:41 PM, James Sharrett wrote:
> Thanks Adrian. The problem is that the data query will return many
> columns all of which I need in later operations. For this specific block
> in the process, I need to take a pair of columns, based on user inputs,
> and run their values them thru the operations performed in the sub
> function to perform some operations and return the results and I need the
> values I pass into the parameter to be in sync with the recordset which
> will have many records with the same values for the column pairs so
> keeping the whole record being operated on in line with the values passed
> to the sub-function becomes the difficult part. I¹m trying to avoid using
> a cursor but even with that I think I may run into similar issues.
>
Well I did say it probably would not scale:) Without a concrete example
of the actual process it would be hard to offer any specific advice.
--
Adrian Klaver
adrian.klaver@gmail.com
--
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql
view thread (4+ messages)
Message-ID: <52FFF863.5060508@gmail.com>
Permalink: ../52FFF863.5060508@gmail.com/
Also on: postgresql.org/message-id/52FFF863.5060508@gmail.com
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: adrian.klaver@gmail.com, jsharrett@tidemark.com
Subject: Re: dynamically referencing a column name in a function
In-Reply-To: <52FFF863.5060508@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox