pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: KÖPFERL Robert <robert.koepferl@sonorys.at>
Cc: pgsql-sql@postgresql.org
Subject: Lambda expressions in SQL
Date: Mon, 7 Mar 2005 19:20:56 +0100
Message-ID: <ED4E30DD9C43D5118DFB00508BBBA76EB16622@neptun.sonorys.at> (raw)

Coming from functional programming, I often wish to write something like
that:

(LAMDA "expesiveFcn"(x y z) as exfcn
	update "Tbl5" SET "Column" = exfcn
)

In this case "expensiveFcn" is VOLATILE...


Is there a way?

At least: substituting the lambda by a select doesn't work with update as
subquery



Message-ID: <ED4E30DD9C43D5118DFB00508BBBA76EB16622@neptun.sonorys.at>
Permalink:  ../ED4E30DD9C43D5118DFB00508BBBA76EB16622@neptun.sonorys.at/
Also on:    postgresql.org/message-id/ED4E30DD9C43D5118DFB00508BBBA76EB16622@neptun.sonorys.at

 · 

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: robert.koepferl@sonorys.at
  Subject: Re: Lambda expressions in SQL
  In-Reply-To: <ED4E30DD9C43D5118DFB00508BBBA76EB16622@neptun.sonorys.at>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox