Column order

Поиск
Список
Период
Сортировка
От Vyacheslav Kalinin
Тема Column order
Дата
Msg-id 9b1af80e0804231833s655296a5m3c7f8e3f4d5fd8eb@mail.gmail.com
обсуждение исходный текст
Ответы Re: Column order
Список pgsql-general
Hello,

It is often convenient to have columns of a table in certain order (as shown by psql or most GUI database explorers, it also affects INSERT's without columns specified behavior) so as to most significant columns to come first, semantically close columns to be grouped etc, while the columns might be added to the table in different order during development process. So, the question is - is it an acceptable way to play with pg_attribute's attnum and set it to needed value or recreate the table is the only way? On the related note - should the columns necessarily be numbered from 1 up with the step of 1?

Thanks,
Viatcheslav

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

Предыдущее
От: "Dann Corbit"
Дата:
Сообщение: Re: Need to update all my 60 million rows at once without transactional integrity
Следующее
От: Robert Treat
Дата:
Сообщение: Re: Column order