Overloading - Mailing list pgsql-general

From Ralph Smith
Subject Overloading
Date
Msg-id 8B4F4031-2363-4C3C-A851-4B0947499502@washington.edu
Whole thread Raw
Responses Re: Overloading
Re: Overloading
List pgsql-general
I never did get an answer to this.

I get:
ERROR:  cannot change return type of existing function
HINT:  Use DROP FUNCTION first.

********** Error **********

ERROR: cannot change return type of existing function
SQL state: 42P13
Hint: Use DROP FUNCTION first.


When I try to:

  CREATE OR REPLACE FUNCTION check_date_ymd(given_date varchar) RETURNS BOOLEAN  AS
and
  CREATE OR REPLACE FUNCTION check_date_ymd(given_date varchar, OUT isvalid boolean, OUT ryear int, OUT rmonth int, OUT rday int)  AS

I wanted to an 'is it valid' version, and another that would save runtime by also returning values that would speed up the
function date_to_utime().

in pg_proc there is no 'check_date_ymd', so there is no 'collision'.

Can someone elucidate me on this?

Thanks!
Ralph



pgsql-general by date:

Previous
From: iztech
Date:
Subject: Re: file system level backup
Next
From: Andrew Sullivan
Date:
Subject: Re: Overloading