Parsing of VIEW definitions

Поиск
Список
Период
Сортировка
От Eric B.Ridge
Тема Parsing of VIEW definitions
Дата
Msg-id 91FC7D98-3B1B-11D7-9ECF-0003937E3354@tcdi.com
обсуждение исходный текст
Ответы Re: Parsing of VIEW definitions
Список pgsql-general
I'm just curious...

If you have a view:
    create foo_view as select * from foo;

Then you query it:
    select * from foo_view;

What, behind the scenes, actually happens?

Is the definition of "foo_view" looked up in the system catalog, query
rewritten, parsed, then executed?

In other words, does the query *literally* get rewritten as:
    select * from (select * from foo) as foo;
before it is parsed?

eric


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

Предыдущее
От: "Ricardo Ryoiti S. Junior"
Дата:
Сообщение: Re: Soft Updates/FFS and Postgresql
Следующее
От: will trillich
Дата:
Сообщение: Re: inherited, unique serial field...