Re: How to keep format of views source code as entered?

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: How to keep format of views source code as entered?
Дата
Msg-id CAKFQuwZHb7GG913B2Yjvqo2LWyi=bBEcWUvih12-zrJT4YLRyQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: How to keep format of views source code as entered?  (raf <raf@raf.org>)
Ответы Re: How to keep format of views source code as entered?  (raf <raf@raf.org>)
Список pgsql-general
On Saturday, January 9, 2021, raf <raf@raf.org> wrote:

Actually, I just had a look at the pg_views system
catalog where the source code for views is stored, and
it doesn't seem to contain enough information to
reconstruct a create view statement. It only contains
these columns:

  schemaname
  viewname
  viewowner
  definition

But definition is just the query itself.

There is no list of column names (like there is with
procedures in pg_proc).

Is all of that information stored somewhere else in the
system catalogs?

Views are relation-like and thus are primarily recorded on pg_class.

David J.
 

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

Предыдущее
От: raf
Дата:
Сообщение: Re: How to keep format of views source code as entered?
Следующее
От: raf
Дата:
Сообщение: Re: How to keep format of views source code as entered?