Re: how to list or array of key value pairs

From: Sergey Konoplev <gray(dot)ru(at)gmail(dot)com>
To: "J(dot)V(dot)" <jvsrvcs(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: how to list or array of key value pairs
Date: 2011-10-13 08:18:35
Message-ID: CAL_0b1siJrBhuH98x8YEQAgNawWA41R-hfWOyqo2_-DHARJbLA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Probably this will help you
http://www.postgresql.org/docs/current/interactive/hstore.html

ps. Look at the each() function.

On 12 October 2011 22:45, J.V. <jvsrvcs(at)gmail(dot)com> wrote:
> I need to rephrase this because of some confusion as to what I was looking
> for.
>
> I want to create and initialize a list or array of key/value pairs.  Then I
> want to iterate through this list (or array) retrieving each key/value for
> use in a sql statement.
>
> I want to do this in a stored function.
>
> that's all
>
> any ideas?
>
> J.V.
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>

--
Sergey Konoplev

Blog: http://gray-hemp.blogspot.com /
Linkedin: http://ru.linkedin.com/in/grayhemp /
JID/GTalk: gray(dot)ru(at)gmail(dot)com / Skype: gray-hemp

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Albe Laurenz 2011-10-13 08:21:09 Re: Are file system level differential/incremental backups possible?
Previous Message Pavel Stehule 2011-10-13 06:31:30 Re: Dynamic sql real examples