pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John Fabiani <johnf@jfcomputer.com>
To: pgsql-sql@postgresql.org <pgsql-sql@postgresql.org>
Subject: how to use schema with data type
Date: Tue, 12 Jun 2012 17:46:53 -0700
Message-ID: <4FD7E2FD.9020207@jfcomputer.com> (raw)

I have tried to use a user defined data type I created within a schema.  
But I could not figure it out.

CREATE OR REPLACE FUNCTION xchromasun._chromasun_totals(date)
   RETURNS SETOF xchromasun.weekly_mpr AS

CREATE OR REPLACE FUNCTION xchromasun._chromasun_totals(date)
   RETURNS SETOF "xchromasun.weekly_mpr" AS

I had to move the user defined data type to "public".

Could someone explain how I might get that done - that is use a schema 
data type from a function.

I'm using 8.4.x.

Johnf



view thread (2+ messages)  latest in thread

Message-ID: <4FD7E2FD.9020207@jfcomputer.com>
Permalink:  ../4FD7E2FD.9020207@jfcomputer.com/
Also on:    postgresql.org/message-id/4FD7E2FD.9020207@jfcomputer.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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: johnf@jfcomputer.com
  Subject: Re: how to use schema with data type
  In-Reply-To: <4FD7E2FD.9020207@jfcomputer.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