Re: [GENERAL] Does a view not define a composite type? - Mailing list pgsql-general

From David G. Johnston
Subject Re: [GENERAL] Does a view not define a composite type?
Date
Msg-id CAKFQuwZ=Pr-Y89A6EJVTxTV5xfymJ4XV1_vwp4HaxkPCR0NxOg@mail.gmail.com
Whole thread Raw
In response to Re: [GENERAL] Does a view not define a composite type?  (Guyren Howe <guyren@gmail.com>)
List pgsql-general
On Sunday, April 23, 2017, Guyren Howe <guyren@gmail.com> wrote:

CREATE OR REPLACE FUNCTION reporting.formatted_cust_by_state_bold(c "reporting_helpers.customers_by_state_ranked")
    RETURNS "reporting_helpers.customers_by_state_ranked"

I am told “ERROR: type reporting_helpers.customers_by_state_ranked does not exist

I am confused.

nm; it appears that the quotes were mucking things up.

For the audience - you don't quote the period separating the schema and object. If you do you just get a single object named that and the search path is used to find it.

David J. 

pgsql-general by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: [GENERAL] pg_basebackup issue
Next
From: "David G. Johnston"
Date:
Subject: Re: [GENERAL] Protocol 2 and query parameters support