pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joe Conway <mail@joeconway.com>
To: Nicole <nicole.king464@gmail.com>
To: pgsql-bugs@postgresql.org
Subject: Re: Version 9.4 CREATE FUNCTION - ERROR: type xxxx does not exist create function
Date: Wed, 4 Nov 2015 11:09:47 -0800
Message-ID: <563A57FB.8040103@joeconway.com> (raw)
In-Reply-To: <563A34B5.8060808@gmail.com>
References: <563A34B5.8060808@gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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

Attachments:

  signature.asc (application/pgp-signature, 835B) download

view thread (4+ messages)  latest in thread

Message-ID: <563A57FB.8040103@joeconway.com>
Permalink:  ../563A57FB.8040103@joeconway.com/
Also on:    postgresql.org/message-id/563A57FB.8040103@joeconway.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: mail@joeconway.com, nicole.king464@gmail.com
  Subject: Re: Version 9.4 CREATE FUNCTION - ERROR: type xxxx does not exist create function
  In-Reply-To: <563A57FB.8040103@joeconway.com>
  References: <563A34B5.8060808@gmail.com> <563A57FB.8040103@joeconway.com>

* 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