Re: how to add oids field

Поиск
Список
Период
Сортировка
От Joshua D. Drake
Тема Re: how to add oids field
Дата
Msg-id 45FAA7AF.7000806@commandprompt.com
обсуждение исходный текст
Ответ на Re: how to add oids field  (Adam Radlowski <adamr@informatyka.gdansk.pl>)
Список pgsql-admin
Adam Radlowski wrote:
> gunartha.nyoman napisał(a):
>> hi,
>> I am new comer in this millis...
>> i have a poblem, how to add a field/column in existing table without
>> oids.
>> if i create new table i can add field oids


More important, you shouldn't be doing this. OIDs are not for user
consumption.

Joshua D. Drake

>>
>> Thank alot before
>>
>> regrads
>> Nyoman/bali
>>
> So - create a new table with this same structure, but with oids, copy
> all records into new table. Retrive all the information about the old
> table (keys, indexes, triggers, etc.). Delete old table, rename new
> table to old name, create all needed indexes, keys, triggers,etc.
> bregards
> Adam
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: In versions below 8.0, the planner will ignore your desire to
>       choose an index scan if your joining column's datatypes do not
>       match
>


--

      === The PostgreSQL Company: Command Prompt, Inc. ===
Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240
Providing the most comprehensive  PostgreSQL solutions since 1997
             http://www.commandprompt.com/

Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate
PostgreSQL Replication: http://www.commandprompt.com/products/


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

Предыдущее
От: Adam Radlowski
Дата:
Сообщение: Re: how to add oids field
Следующее
От: Jeff Frost
Дата:
Сообщение: Re: pl/pgsql function spikes CPU 100%