pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Koczan <pjkoczan@gmail.com>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: "any" to functions and function aliases
Date: Sat, 08 Sep 2007 17:33:45 -0400
Message-ID: <6206.1189287225@sss.pgh.pa.us> (raw)
In-Reply-To: <4544e0330709081405gf456792i5ee4f0e7b40860ec@mail.gmail.com>
References: <4544e0330709081405gf456792i5ee4f0e7b40860ec@mail.gmail.com>

"Peter Koczan" <pjkoczan@gmail.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



view thread (2+ messages)

Message-ID: <6206.1189287225@sss.pgh.pa.us>
Permalink:  ../6206.1189287225@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/6206.1189287225@sss.pgh.pa.us

 · 

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-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, pjkoczan@gmail.com
  Subject: Re: "any" to functions and function aliases
  In-Reply-To: <6206.1189287225@sss.pgh.pa.us>

* 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