Re: casting behavior of oids and relation names

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: casting behavior of oids and relation names
Дата
Msg-id 23798.1337175168@sss.pgh.pa.us
обсуждение исходный текст
Ответ на casting behavior of oids and relation names  (salah jubeh <s_jubeh@yahoo.com>)
Список pgsql-general
salah jubeh <s_jubeh@yahoo.com> writes:
> In some cases when I cast the oid to relation names ('xxxx'::regclass::text) �I get �schemaname.tablename and in some
casesI just get tablename. I thought at the�beginning,�this is due name duplication of tables in different�schemas�but
itseems not. �Also, this seems as a schema option because it happen only in certain schemas. �How I can get a
consistentnames of the casting ?� 

That's a feature, not a bug --- it doesn't qualify the name if
qualification is unnecessary given your current search_path.

For user tables, you could force it to always qualify by setting
search_path to empty, I think.

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: salah jubeh
Дата:
Сообщение: casting behavior of oids and relation names
Следующее
От: Vibhor Kumar
Дата:
Сообщение: Re: casting behavior of oids and relation names