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

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: Can a function be parameter in PL/PGSQL function?



On 30 Jan 2007 12:32:04 -0800, Karen Hill <karen_hill22(at)yahoo(dot)com> wrote:
Is it possible to have a pl/pgsql function take another pl/pgsql
function as one of the parameters?

not exactly. you can take a string and execute it via dynamic sql, but
this is going to cause problems with record and array types and
generally just uglify your code.  If you want to implement a callback,
you can improvise one if you are willing to cut a little C:

http://archives.postgresql.org/pgsql-performance/2005-11/msg00012.php


I've followed this mechanism, and it works...

merlin



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group