Re: Record order change after update

From: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
To: Josué Maldonado <josue(at)lamundial(dot)hn>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Record order change after update
Date: 2004-03-02 22:16:17
Message-ID: 20040302221617.GC13876@dcc.uchile.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Mar 02, 2004 at 04:12:05PM -0600, Josué Maldonado wrote:

> 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?

Yes.

> is there a way to prevent it?

No. Use ORDER BY.

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"Los dioses no protegen a los insensatos. Éstos reciben protección de
otros insensatos mejor dotados" (Luis Wu, Mundo Anillo)

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Matt Davies 2004-03-02 22:20:41 Re: Record order change after update
Previous Message Josué Maldonado 2004-03-02 22:12:05 Record order change after update