Re: using a plpgsql function argument as a table column.

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Shaun Savage <savages(at)taxnvote(dot)org>
Cc: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: using a plpgsql function argument as a table column.
Date: 2018-08-29 05:58:05
Message-ID: CAKFQuwa7opqbgshpMDSMpnsA+F8RQiDvzZ993O1er8fHDUkByg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tuesday, August 28, 2018, Shaun Savage <savages(at)taxnvote(dot)org> wrote:

> I want to dynamically return a column from a function.
>

Variable object identifiers requires executing dynamic SQL. See:

https://www.postgresql.org/docs/10/static/plpgsql-statements.html#PLPGSQL-STATEMENTS-EXECUTING-DYN

David J.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Pavel Stehule 2018-08-29 05:58:39 Re: using a plpgsql function argument as a table column.
Previous Message ss 2018-08-29 05:40:16 Re: using a plpgsql function argument as a table column.