Re: Record order change after update

Поиск
Список
Период
Сортировка
От Christopher Browne
Тема Re: Record order change after update
Дата
Msg-id m3hdx6wujh.fsf@wolfe.cbbrowne.com
обсуждение исходный текст
Ответ на Record order change after update  (Josué Maldonado <josue@lamundial.hn>)
Список pgsql-general
Clinging to sanity, josue@lamundial.hn (Josué Maldonado) mumbled into her beard:
> After update a column on a table, that row goes to the top when I do a
> select from that table without any order, is that the expected
> behavior in postgresql? is there a way to prevent it?

Prevent what?

SQL returns unordered sets of data unless you specifically impose an
order using an ORDER BY clause.

Did PostgreSQL ignore your ORDER BY clause?  If so, that would be a
problem worth reporting.

But if your query did not impose an ORDER BY clause, it is entirely
proper for the database engine to return data in whatever order it
finds most convenient.
--
If this was helpful, <http://svcs.affero.net/rm.php?r=cbbrowne> rate me
http://cbbrowne.com/info/sap.html
"When people understand what Microsoft is up to, they're outraged."
-- Tim O'Reilly, President, O'Reilly & Associates

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

Предыдущее
От: "Leo Sutic"
Дата:
Сообщение: RH7.3 / PGSQL7.4.1 binary distribution
Следующее
От: satish satish
Дата:
Сообщение: Data Corruption in case of abrupt failure