Re: pg_views definition format

Поиск
Список
Период
Сортировка
От Kevin Field
Тема Re: pg_views definition format
Дата
Msg-id 40ec5c83-9d79-44e7-b264-a93299f03102@j12g2000vbl.googlegroups.com
обсуждение исходный текст
Ответ на pg_views definition format  (Kev <kevinjamesfield@gmail.com>)
Ответы Re: pg_views definition format  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Re: pg_views definition format  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
On May 13, 11:31 am, Kev <kevinjamesfi...@gmail.com> wrote:
> Hi,
>
> I have a script that automatically generates the SQL to create some
> views.  I'd like it to check whether its generated SQL matches the SQL
> returned by "select definition from pg_views where...".  I've guessed
> most of the rules just by looking at the output, but I was surprised
> to find that some of my views of the form:
>
> select.........from b left join a on a.id=b.id
>
> ...were being translated to this:
>
> SELECT..........FROM (B LEFT JOIN a ON ((a.id = b.id)))
>
> ...before being stored in the table pg_views is derived from.  My
> surprise is at the double parentheses around "a.id = b.id".  Is that
> supposed to be that way?  Is it likely to change?
>
> Thanks,
> Kev

One other thing I'm just curious about, "!=" gets replaced with
"<>"...how come?  (Feels more VB-ish than C-ish, so I was surprised
that that would be the official/preferred reconstruct....)


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

Предыдущее
От: aftertaf
Дата:
Сообщение: Re: Windows installation service
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: pg_views definition format