Search Postgresql Archives

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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>________________________________
> From: Tom Lane <tgl@xxxxxxxxxxxxx>
>To: Glyn Astill <glynastill@xxxxxxxxxxx> 
>Cc: "pgsql-general@xxxxxxxxxxxxxx" <pgsql-general@xxxxxxxxxxxxxx> 
>Sent: Wednesday, 27 June 2012, 14:31
>Subject: Re:  Type Name / Internal name returned by pg_catalog.format_type with/without prepended schema name?
> 
>Glyn Astill <glynastill@xxxxxxxxxxx> writes:
>> I was wondering if anyone could shed some light with type names returned by pg_catalog.format_type sometimes having the schema name prepended, and sometimes not? I'm calling it like format_type(pg_type.oid, NULL) .
>
>General case: the schema name is used if the type wouldn't be found
>without it, according to your current search_path.
>
>There are some specific built-in types for which schema names are
>never used, because their names are actually keywords according to SQL
>(which a fortiori means there's no ambiguity on the lookup side).
>

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.


-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux