Re: Version 9.4 CREATE FUNCTION - ERROR: type xxxx does not exist create function

From: Joe Conway <mail(at)joeconway(dot)com>
To: Nicole <nicole(dot)king464(at)gmail(dot)com>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: Version 9.4 CREATE FUNCTION - ERROR: type xxxx does not exist create function
Date: 2015-11-04 19:09:47
Message-ID: 563A57FB.8040103@joeconway.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On 11/04/2015 08:39 AM, Nicole wrote:
> DECLARE
> recurrence Client_Appointment_Recurrences;

This is not a bug and not the appropriate list for a question. That
said, try this:

8<------------------
CREATE TABLE "Client_Appointment_Recurrences" (id int);

CREATE OR REPLACE FUNCTION test() RETURNS text AS $$
DECLARE
recurrence "Client_Appointment_Recurrences";
BEGIN
RETURN 'ok';
END$$ LANGUAGE plpgsql;

SELECT test();
test
------
ok
(1 row)
8<------------------

HTH,

Joe

--
Crunchy Data - http://crunchydata.com
PostgreSQL Support for Secure Enterprises
Consulting, Training, & Open Source Development

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Joe Conway 2015-11-04 19:16:46 Re: Version 9.4 CREATE FUNCTION - ERROR: type xxxx does not exist create function
Previous Message Nicole 2015-11-04 17:43:55 Version 9.4 CREATE FUNCTION - ERROR: type xxxx does not exist create function