Re: problem with select after updating - Mailing list pgsql-general

From Tom Lane
Subject Re: problem with select after updating
Date
Msg-id 23924.1008009766@sss.pgh.pa.us
Whole thread Raw
In response to problem with select after updating  ("Raul DAVIDOVICH" <R.DAVIDOVICH@cvitkovic-ac.fr>)
List 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 by date:

Previous
From: Doug McNaught
Date:
Subject: Re: PostgreSQL Outer Joins
Next
From: Doug McNaught
Date:
Subject: Re: problem with select after updating