pgadmin 3 - Mailing list pgsql-general

From raptor@tvskat.net
Subject pgadmin 3
Date
Msg-id 20040720162025.2801b600@bugs
Whole thread Raw
Responses Re: pgadmin 3
List pgsql-general
In pgadmin3 I'm tring to add auto_inc column like this

ALTER TABLE public.modems  ADD COLUMN id serial;

But get this error :

NOTICE:  ALTER TABLE will create implicit sequence "modems_id_seq" for "serial" column "modems.id"

ERROR:  adding columns with defaults is not implemented
HINT:  Add the column, then use ALTER TABLE SET DEFAULT.


How to add auto_inc fields... thanx

PS. Can I use OID column for primary/foreign functionality, or it
has some restriction ...i mean i may not use auto_inc field ?

pgsql-general by date:

Previous
From: Gunasekaran Balakrishnan
Date:
Subject: DIfferent ORDER BY behaviour in 7.4.2
Next
From: Tom Lane
Date:
Subject: Re: DIfferent ORDER BY behaviour in 7.4.2