Re: Alter Table Command Rearranges Rows

Поиск
Список
Период
Сортировка
От Richard Broersma
Тема Re: Alter Table Command Rearranges Rows
Дата
Msg-id AANLkTimeY-C1RD+socRqRFe2uubRRODhL9eMa5pyZgsH@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Alter Table Command Rearranges Rows  (Michael Glaesemann <grzm@seespotcode.net>)
Ответы Re: Alter Table Command Rearranges Rows  (Carlos Mennens <carlos.mennens@gmail.com>)
Список pgsql-general
On Fri, Sep 17, 2010 at 1:32 PM, Michael Glaesemann
<grzm@seespotcode.net> wrote:

> Postgres (nor any other SQL RDBMS) does not guarantee row order unless you specify it with an ORDER BY clause.

This is true, but some database will maintain a tables clustering.
MS-Access comes to mind.  I don't know if MySQL does this also.

In PostgreSQL you can issue a periodic cluster command on the primary
key.  But as mentioned it is a bad practice to rely on the physical
ordering of the table.

--
Regards,
Richard Broersma Jr.

Visit the Los Angeles PostgreSQL Users Group (LAPUG)
http://pugs.postgresql.org/lapug

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

Предыдущее
От: "Joshua J. Kugler"
Дата:
Сообщение: Re: missing chunk number 497 for toast value 504723663
Следующее
От: bricklen
Дата:
Сообщение: Re: How to generate XML output from a Store Procedure