Re: View refuses to work after system reboot

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: View refuses to work after system reboot
Дата
Msg-id 18926.981997556@sss.pgh.pa.us
обсуждение исходный текст
Ответ на View refuses to work after system reboot  ("Jake Newren" <jake_newren@yahoo.com>)
Список pgsql-bugs
"Jake Newren" <jake_newren@yahoo.com> writes:
>     PostgreSQL 7.0.3 installed in the /usr/local/pgsql directory.

>     I created a view on my database with the following statement:
> CREATE VIEW wireticket_out AS SELECT wire_tickets.fund_cusip,
> funds.fund_desc, accounts.acct_name, wire_tickets.acct_num,
> wire_tickets.cash_actual, wire_tickets.cash_invest,
> wire_tickets.date_entered FROM wire_tickets INNER JOIN accounts ON
> wire_tickets.acct_num = accounts.acct_num INNER JOIN funds ON
> wire_tickets.fund_cusip = funds.fund_cusip

IIRC, 7.0.* has some rather nasty bugs with nested JOIN clauses, such as
you have here.  It'd be safer to express the query with a simple "FROM
wire_tickets, accounts, funds" and put the join conditions in WHERE.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: SELECT with regular pattern '~' delivers wrong output
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Table name scope (was Re: Outer joins aren't working with views)