Re: Adding a New Column Specifically In a Table

Поиск
Список
Период
Сортировка
От Rajesh Kumar Mallah
Тема Re: Adding a New Column Specifically In a Table
Дата
Msg-id AANLkTim-Q964Od+uVZS1zwJp4rNxrSRVzDZ1mtbO2tjF@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Adding a New Column Specifically In a Table  (Carlos Mennens <carlos.mennens@gmail.com>)
Ответы Re: Adding a New Column Specifically In a Table  (Thom Brown <thom@linux.com>)
Список pgsql-general
Dear Carlos,

In old version of postgresql attnum colmn of pg_catalog.pg_attribute
system catalog
could be modified to get desired results. I am not sure if it should
be done anymore.

Rajesh Kumar Mallah.

On Wed, Oct 13, 2010 at 2:06 PM, Carlos Mennens
<carlos.mennens@gmail.com> wrote:
> On Wed, Oct 13, 2010 at 2:04 PM, Carlos Mennens
> <carlos.mennens@gmail.com> wrote:
>> OK so I have read the docs and Google to try and find a way to add a
>> new column to an existing table. My problem is I need this new column
>> to be created 3rd  rather than just dumping this new column to the end
>> of my table. I can't find anywhere how I can insert my new column as
>> the 3rd table column rather than the last (seventh). Does anyone know
>> how I can accomplish this or if it's even possible. Seems like a
>> common task but I checked the documentation and may have missed it in
>> my reading.
>>
>>
>> ALTER TABLE users ADD COLUMN employer VARCHAR(50) NOT NULL;
>
> Ah sadly I just found this after I pressed 'send' and realized
> PostgreSQL doesn't support it...that sucks :(
>
> http://wiki.postgresql.org/wiki/Alter_column_position
>
> --
> Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>

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

Предыдущее
От: Thomas Kellerer
Дата:
Сообщение: Re: Adding a New Column Specifically In a Table
Следующее
От: Rajesh Kumar Mallah
Дата:
Сообщение: Re: How to search ignoring spaces and minus signs