Re: "any" to functions and function aliases

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Peter Koczan" <pjkoczan(at)gmail(dot)com>
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: "any" to functions and function aliases
Date: 2007-09-08 21:33:45
Message-ID: 6206.1189287225@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"Peter Koczan" <pjkoczan(at)gmail(dot)com> writes:
> FUNCTION isnull("any", "any") postgres
> pg_restore: [archiver (db)] could not execute query: ERROR: plpgsql
> functions cannot return type "any"
> Command was: CREATE FUNCTION "isnull"("any", "any") RETURNS "any"

Use anyelement instead.

regards, tom lane

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message PGallagher 2007-09-10 15:29:18 Postmaster Question
Previous Message Peter Koczan 2007-09-08 21:05:43 "any" to functions and function aliases