Re: [GENERAL] Functions as first-class values

2011-04-06 Thread Merlin Moncure
On Wed, Apr 6, 2011 at 9:10 AM, Pavel Stehule wrote: > Hello > > 2011/4/6 Jon Smark : >> Hi, >> >> Is there support in PL/pgSQL for treating functions as first-class values? >> Consider the pseudo-code simple example below, which illustrates how this >> feature can be useful.  I reckon that this b

Re: [GENERAL] Functions as first-class values

2011-04-06 Thread Pavel Stehule
Hello 2011/4/6 Jon Smark : > Hi, > > Is there support in PL/pgSQL for treating functions as first-class values? > Consider the pseudo-code simple example below, which illustrates how this > feature can be useful.  I reckon that this behaviour can be emulated using > EXECUTE, but I suspect there ar

[GENERAL] Functions as first-class values

2011-04-06 Thread Jon Smark
Hi, Is there support in PL/pgSQL for treating functions as first-class values? Consider the pseudo-code simple example below, which illustrates how this feature can be useful. I reckon that this behaviour can be emulated using EXECUTE, but I suspect there are serious performance penalties. Your t