Re: New record position

From: PFC <lists(at)boutiquenumerique(dot)com>
To: lucas(at)presserv(dot)org, pgsql-sql(at)postgresql(dot)org
Subject: Re: New record position
Date: 2005-03-30 14:19:29
Message-ID: op.sogferobth1vuj@localhost
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

> Why it? I can't undestand why the new record location was change.
> Shouldn't it
> apper at the LAST record???
> What need I do??
> Thank you.

The SQL spec specifies that if you don't use ORDER BY, well, the records
come out in any order they want. Actually it's the order they are on disk,
which is more or less random as inserting new records will fill the space
left by deleted ones, and vacuum full will compact them. If you want
order, use ORDER BY. If you want to order them in the order they were
inserted, order by a SERIAL PRIMARY KEY field...

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message lucas 2005-03-30 16:17:18 Re: New record position
Previous Message Oleg Bartunov 2005-03-30 14:12:37 Re: New record position