Skip site navigation (1) Skip section navigation (2)

Re: Access a Field / Column of a resultset by Number

From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: Daniel Schuchardt <d(dot)schuchardt(at)prodat-sql(dot)de>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Access a Field / Column of a resultset by Number
Date: 2009-11-28 06:08:15
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-general
On Fri, Nov 27, 2009 at 10:09 AM, Daniel Schuchardt
<d(dot)schuchardt(at)prodat-sql(dot)de> wrote:
> thats exactly the same i'm looking for:
> (todo list for plpgsql)
> *Server-Side Languages
> *PL/pgSQL
> *
> *[D] Allow listing of record column names, and access to record columns *via
> variables, e.g. columns := r.(*), tval2 := r.(colname)
> *
> *Re: PL/PGSQL: Dynamic Record Introspection
> is that is possible in any pl* language?

Yes, if the language has the architecture to handle it.  plpgsql
doesn't right now.  pltcl, plperl, and plain old C functions can
examine records and do dynamic stuff with them.  Any attempt at doing
dynamic queries right now in plpgsql leads to madness, or so I've been

In response to


pgsql-general by date

Next:From: 2009-11-28 10:46:18
Subject: Locale query
Previous:From: Paul RamseyDate: 2009-11-28 00:28:05
Subject: Re: incorrect restore from pg_dumpall

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group