Re: Recursive query syntax ambiguity

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Recursive query syntax ambiguity
Дата
Msg-id 446.1170692638@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Recursive query syntax ambiguity  (Martijn van Oosterhout <kleptog@svana.org>)
Список pgsql-hackers
Martijn van Oosterhout <kleptog@svana.org> writes:
> However, I don't know it matters. You only need to cost the plan if
> there are alternate paths and given the plan structure is strongly
> constrained, I'm not sure how much it matters.

It does, since the whole thing could be a subquery, in which case there
could be options available at the outer level.  I doubt we'll be able to
be really smart, but that doesn't mean we can just punt.

> In the case of read-committed mode, will two seq-scans always
> return the same result?

They definitely should, since we'll be using the same snapshot
throughout the query.
        regards, tom lane


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

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Recursive query syntax ambiguity
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Dead code in _bt_split?