Re: problem with select after updating

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: problem with select after updating
Дата
Msg-id 23924.1008009766@sss.pgh.pa.us
обсуждение исходный текст
Ответ на problem with select after updating  ("Raul DAVIDOVICH" <R.DAVIDOVICH@cvitkovic-ac.fr>)
Список pgsql-general
"Raul DAVIDOVICH" <R.DAVIDOVICH@cvitkovic-ac.fr> writes:
>      I'm having a problem when updating a row.. after comiting the change,
> the row appears at the end of the list, and from there on, it stays there
> until the next update.
>      This happens when using both JDBC or psql. Normally, rows shouldn't
> change the order after updates. Am I messing it up with the indexes?

You are mistaken to assume that the row order is stable.  SQL guarantees
*nothing* about row order unless you use ORDER BY to constrain the
result of a SELECT.

            regards, tom lane

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

Предыдущее
От: Doug McNaught
Дата:
Сообщение: Re: PostgreSQL Outer Joins
Следующее
От: Doug McNaught
Дата:
Сообщение: Re: problem with select after updating