Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Zu3RQ-0004CT-PN for pgsql-bugs@arkaria.postgresql.org; Wed, 04 Nov 2015 19:09:52 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Zu3RQ-0007AA-BM for pgsql-bugs@arkaria.postgresql.org; Wed, 04 Nov 2015 19:09:52 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Zu3RP-00077e-8q for pgsql-bugs@postgresql.org; Wed, 04 Nov 2015 19:09:51 +0000 Received: from wsip-72-214-29-243.sd.sd.cox.net ([72.214.29.243] helo=joeconway.com) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1Zu3RM-0007Z6-LH for pgsql-bugs@postgresql.org; Wed, 04 Nov 2015 19:09:50 +0000 Received: from [192.168.4.41] (account jconway@joeconway.com [192.168.4.41] verified) by joeconway.com (CommuniGate Pro SMTP 6.1.4) with ESMTPSA id 15772399; Wed, 04 Nov 2015 11:09:48 -0800 Subject: Re: Version 9.4 CREATE FUNCTION - ERROR: type xxxx does not exist create function To: Nicole , pgsql-bugs@postgresql.org References: <563A34B5.8060808@gmail.com> From: Joe Conway Message-ID: <563A57FB.8040103@joeconway.com> Date: Wed, 4 Nov 2015 11:09:47 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <563A34B5.8060808@gmail.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="pcovtvgbXSmWarH0KbMliwW6866XbUxD9" X-Pg-Spam-Score: -0.9 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --pcovtvgbXSmWarH0KbMliwW6866XbUxD9 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 --=20 Crunchy Data - http://crunchydata.com PostgreSQL Support for Secure Enterprises Consulting, Training, & Open Source Development --pcovtvgbXSmWarH0KbMliwW6866XbUxD9 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJWOlf7AAoJEDfy90M199hlu5IP/R2FI4TKT3Lrc5Bx4EJSqObC RKYBScKK9Fh1UBszD0BbhmAr//uPyhkDykVrBuahq5k+1ODPgm+sLndoJ4zBvUu7 ybdWgRedAJS2Q0yAG+iYF1s/Dd81oNYuPIEwZtRUftS3DvXzP6JDNbP8crR3t78b gAmBXUBRj3+5EtpVlFqKnY4jMpVLfA0pLeiGaNw+JbH9YB4nKlLvQt6+IY+TQJQA s57yc4s/bH6AJWRLcSxQ5iAmo8vj1uoVl4GLxTg1zbJKF3OBWscL6CurEzIXJMGx k30MAa7voVIc+uZrG7IvWslEwVPwD3q4bTPRMHzCtvZ6TpSYdk4Zh5c27/EkhPwO oJCu6e/lRgi7KRw1uE230iV6JC9JPukmOwbQ5FtvohbkbqP7cZQOtHV6SVuwmGhA G7haipQsPbxoYurkNe89SgveCnmxMwAH1pnV1maonehnU69h51rI/bNivXm7n3ps d0QxJix66e+TsHFtA0dk45HBQCu1faJj9zV+uJxchXqwSxRFTZ31hfvDDu+aQA/A xrz+t0xKpcZVUv1SAu9ideTJto6DT4loulToEhgugvnusKM+Xsrf5uMZA1h7W9ro rg1hD2HYWIhbdIsGT0DIRbGngaSJMixR78OAYSyhvQJko6XovW0DscpX5Mz5/Rpc aQEwYCgzSKYoWFR7Inq0 =hlmP -----END PGP SIGNATURE----- --pcovtvgbXSmWarH0KbMliwW6866XbUxD9--