Re: Re: Order question - Mailing list pgsql-general

From Tom Lane
Subject Re: Re: Order question
Date
Msg-id 11967.982108429@sss.pgh.pa.us
Whole thread Raw
In response to Re: Order question  ("Mitch Vincent" <mitch@venux.net>)
List pgsql-general
"Mitch Vincent" <mitch@venux.net> writes:
> I just set the row with j.inv_id to 1, I'd like it to be ordered above the
> row with j.jobtitle in it -- is that possible?

Not unless you add a field with an update sequence number, or some such,
and then explicitly use that field as a second ORDER BY key.  The system
does not maintain anything like that for you --- and should not, IMHO,
since it'd be useless overhead for apps that didn't care.

            regards, tom lane

pgsql-general by date:

Previous
From: Justin Clift
Date:
Subject: PostgreSQL non-FAQ documentation
Next
From: Alfonso Peniche
Date:
Subject: temporary tables