Re: Pgsql problem

From: Dmitriy Igrishin <dmitigr(at)gmail(dot)com>
To: pasman pasmański <pasman(dot)p(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Pgsql problem
Date: 2012-01-12 10:59:10
Message-ID: CAAfz9KNdumBAN6zY4pBiDFrocqrfEzXueDqiNffSwncb4TMrHw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hey pasman,

2012/1/12 pasman pasmański <pasman(dot)p(at)gmail(dot)com>

> Hi.
>
> I write function in pgsql. This function needs
> to execute other functions by name.
> I do it using loop:
>
> declare r record;
> begin
> for r in execute 'select ' || $1 || '()'
> loop
> end loop;
>
> But I can't convert a record to array of text.
> How to do it ?
>
Presently, hstore is a most flexible solution in such cases.
See http://www.postgresql.org/docs/9.1/static/hstore.html

--
// Dmitriy.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Achilleas Mantzios 2012-01-12 11:43:21 Re: Pgsql problem
Previous Message pasman pasmański 2012-01-12 10:51:00 Pgsql problem