change natural column order

Поиск
Список
Период
Сортировка
От Joolz
Тема change natural column order
Дата
Msg-id 36775.10.0.4.254.1101806805.squirrel@webmail.arbodienst-limburg.nl
обсуждение исходный текст
Ответы Re: change natural column order  (Tino Wildenhain <tino@wildenhain.de>)
Список pgsql-general
Hello everyone,

When I create a table and later on (say, because customers want to
store extra info) add a column, like this:

  create table test (lastfield varchar);
  alter table test add column firstfield varchar;

is it possible to change the natural order of the columns
afterwards? The reason I need this is because the frontend picks up
table columns in natural order, looks at the datatype and creates
view, input and mutate (html) forms.

I'd rather not use views, allthough I know this is "the right way",
because it would make the application a lot more complex.

Can I dive into some system tables and change the natural order?

Thanks!


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

Предыдущее
От: Johan Wehtje
Дата:
Сообщение: Re: Column n.nsptablespace does not exist error
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: Inheritance in Postgres ?