pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedhow to add oids field
4+ messages / 3 participants
[nested] [flat]
* how to add oids field
@ 2007-03-16 08:31 gunartha.nyoman <gunartha.nyoman@ptjas.co.id>
2007-03-16 13:50 ` Re: how to add oids field Adam Radlowski <adamr@informatyka.gdansk.pl>
0 siblings, 1 reply; 4+ messages in thread
From: gunartha.nyoman @ 2007-03-16 08:31 UTC (permalink / raw)
To: pgsql-admin
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
Thank alot before
regrads
Nyoman/bali
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: how to add oids field
2007-03-16 08:31 how to add oids field gunartha.nyoman <gunartha.nyoman@ptjas.co.id>
@ 2007-03-16 13:50 ` Adam Radlowski <adamr@informatyka.gdansk.pl>
2007-03-16 14:20 ` Re: how to add oids field Joshua D. Drake <jd@commandprompt.com>
2007-03-20 02:45 ` Re: how to add oids field gunartha.nyoman <gunartha.nyoman@ptjas.co.id>
0 siblings, 2 replies; 4+ messages in thread
From: Adam Radlowski @ 2007-03-16 13:50 UTC (permalink / raw)
To: gunartha.nyoman <gunartha.nyoman@ptjas.co.id>; +Cc: pgsql-admin
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
>
> 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
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: how to add oids field
2007-03-16 08:31 how to add oids field gunartha.nyoman <gunartha.nyoman@ptjas.co.id>
2007-03-16 13:50 ` Re: how to add oids field Adam Radlowski <adamr@informatyka.gdansk.pl>
@ 2007-03-16 14:20 ` Joshua D. Drake <jd@commandprompt.com>
1 sibling, 0 replies; 4+ messages in thread
From: Joshua D. Drake @ 2007-03-16 14:20 UTC (permalink / raw)
To: Adam Radlowski <adamr@informatyka.gdansk.pl>; +Cc: gunartha.nyoman <gunartha.nyoman@ptjas.co.id>; 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/
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: how to add oids field
2007-03-16 08:31 how to add oids field gunartha.nyoman <gunartha.nyoman@ptjas.co.id>
2007-03-16 13:50 ` Re: how to add oids field Adam Radlowski <adamr@informatyka.gdansk.pl>
@ 2007-03-20 02:45 ` gunartha.nyoman <gunartha.nyoman@ptjas.co.id>
1 sibling, 0 replies; 4+ messages in thread
From: gunartha.nyoman @ 2007-03-20 02:45 UTC (permalink / raw)
To: pgsql-admin
Okey, Mr Radlowski and Mr. Drake
thank for your comment
Regards,
Nyoman/Bali
----- Original Message -----
From: "Adam Radlowski" <adamr@informatyka.gdansk.pl>
To: "gunartha.nyoman" <gunartha.nyoman@ptjas.co.id>
Cc: <pgsql-admin@postgresql.org>
Sent: Friday, March 16, 2007 8:50 PM
Subject: Re: [ADMIN] how to add oids field
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
>
> 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
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2007-03-20 02:45 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-03-16 08:31 how to add oids field gunartha.nyoman <gunartha.nyoman@ptjas.co.id>
2007-03-16 13:50 ` Adam Radlowski <adamr@informatyka.gdansk.pl>
2007-03-16 14:20 ` Joshua D. Drake <jd@commandprompt.com>
2007-03-20 02:45 ` gunartha.nyoman <gunartha.nyoman@ptjas.co.id>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox