Re: strange sql issue

Поиск
Список
Период
Сортировка
От Andreas Seltenreich
Тема Re: strange sql issue
Дата
Msg-id 877izkfg32.fsf@gate450.dyndns.org
обсуждение исходный текст
Ответ на strange sql issue  ("Thomas Peter" <usenet@braindumped.com>)
Список pgsql-general
Thomas Peter writes:

> the following sql stopped working with postgres, and the fix of this
> problem seems strange to me.
[...]
> and the fix was, to twist the order in the FROM statement.
> changing
> FROM ticket as t, permission as perm, enum as p
> to
> FROM permission as perm, enum as p, ticket as t
> works like expected!
>
> so is this a bug, or do i get soemthing wrong (a hint where to rtfm would
> be very welcome in this case)

If by "stopped working" you mean that the query returns an unexpected
result set, there should be a difference in the respective query plans
(explain analyze). Comparing them might give a clue what is going
wrong.

regards,
andreas

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

Предыдущее
От: MaXX
Дата:
Сообщение: Re: Major Performance decrease after some hours
Следующее
От: "Peter Bauer"
Дата:
Сообщение: Re: Major Performance decrease after some hours