Re: Type Name / Internal name returned by pg_catalog.format_type with/without prepended schema name?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Glyn Astill <glynastill(at)yahoo(dot)co(dot)uk>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Type Name / Internal name returned by pg_catalog.format_type with/without prepended schema name?
Date: 2012-06-27 14:03:47
Message-ID: 29480.1340805827@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Glyn Astill <glynastill(at)yahoo(dot)co(dot)uk> writes:
>> From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
>> General case: the schema name is used if the type wouldn't be found
>> without it, according to your current search_path.

> However none of that explains why one of the types is returned with the schema name and the other is not, both are in the same schema which is in the current search_path.

It's difficult to comment on that without a concrete example, but
"visible according to search_path" does not only mean "in a schema
that's in search_path". It also requires "not masked by a similarly
named object appearing earlier in the path".

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message utsav 2012-06-27 17:38:45 Re: RETURNING MORE THAN ONE CUSTOM TYPE FROM FUNCTION
Previous Message Glyn Astill 2012-06-27 13:35:52 Re: Type Name / Internal name returned by pg_catalog.format_type with/without prepended schema name?