Re: regclass error reports improperly downcased

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: regclass error reports improperly downcased
Дата
Msg-id 24972.1383942089@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: regclass error reports improperly downcased  (Jim Nasby <jnasby@enova.com>)
Ответы Re: regclass error reports improperly downcased  (Jim Nasby <jnasby@enova.com>)
Список pgsql-hackers
Jim Nasby <jnasby@enova.com> writes:
> Ahh, duh. Hrm... I ran across this because someone here got confused by this:

> SELECT pg_total_relation_size( schema_name || '.' || relname ) FROM pg_stat_all_tables
> ERROR: relation "moo" does not exist

Personally I'd do that like
   select pg_total_relation_size(oid) from pg_class where ...

and avoid fooling with regclass conversion at all.
        regards, tom lane



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

Предыдущее
От: "Karl O. Pinc"
Дата:
Сообщение: Re: backup.sgml-cmd-v003.patch
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Gin page deletion bug