Alter Table Command Rearranges Rows

Поиск
Список
Период
Сортировка
От Carlos Mennens
Тема Alter Table Command Rearranges Rows
Дата
Msg-id AANLkTimNSj3=AcHq+ca5hefxxS9PR+uWuw+mA2bWde_i@mail.gmail.com
обсуждение исходный текст
Ответы Re: Alter Table Command Rearranges Rows  (Vick Khera <vivek@khera.org>)
Re: Alter Table Command Rearranges Rows  (Michael Glaesemann <grzm@seespotcode.net>)
Список pgsql-general
I noticed that my database was in order based on my primary key column
called 'id' which when from 1 (first) to 6 (last). Today I had to edit
table data which wasn't anything crazy:

team=#ALTER users SET name = 'David' WHERE id = '1';
UPDATE 1

Now when I do a 'SELECT * FROM users' command in PostgreSQL, my row
that I altered column data in has been dropped all the way to the
bottom. This is extremely messy and annoying for me and I was
wondering if this is normal behavior for PostgreSQL? I could
understand that if remove the row and then re-added it, I would expect
it to add a new row to the bottom of the table.

Thanks for any assistance or clarification.

-Carlos

В списке pgsql-general по дате отправления:

Предыдущее
От: Edwin Plauchu
Дата:
Сообщение: How to generate XML output from a Store Procedure
Следующее
От: Vick Khera
Дата:
Сообщение: Re: Alter Table Command Rearranges Rows