Re: problem with select after updating

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Raul DAVIDOVICH" <R(dot)DAVIDOVICH(at)cvitkovic-ac(dot)fr>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: problem with select after updating
Date: 2001-12-10 18:42:46
Message-ID: 23924.1008009766@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Raul DAVIDOVICH" <R(dot)DAVIDOVICH(at)cvitkovic-ac(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Robert B. Easter 2001-12-10 18:47:06 Re: PostgreSQL Outer Joins
Previous Message Campano, Troy 2001-12-10 18:24:41 PostgreSQL Outer Joins