Re: type "xxxxxxx" does not exist

From: Paul Jungwirth <pj(at)illuminatedcomputing(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: type "xxxxxxx" does not exist
Date: 2017-05-19 20:25:59
Message-ID: 0c1234a7-4d20-32b2-3a47-1db52fc47c34@illuminatedcomputing.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 05/19/2017 01:06 PM, Micky Hulse wrote:
> ERROR: type "xxx_xxx_xxxxx" does not exist
> LINE 1: DECLARE results xxx_xxx_xxxxx;

It sounds like the type might be in a different schema. You can say \dn
to see the schemas in your database, and \dT+ will show the types along
with their schema. You could also do \dT+ foo.* to see all the types in
schema foo.

If you find that the type isn't in the public schema, try setting your
schema search path so that the function can locate it, e.g.:

SET search_path TO foo, public;

Good luck!

Paul

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David G. Johnston 2017-05-19 20:31:13 Re: type "xxxxxxx" does not exist
Previous Message Adrian Klaver 2017-05-19 20:20:06 Re: type "xxxxxxx" does not exist