Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 092772E02C2 for ; Fri, 14 Mar 2008 12:17:38 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 85830-07 for ; Fri, 14 Mar 2008 12:17:35 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 31A7A2E02D5 for ; Fri, 14 Mar 2008 12:17:34 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id m2EFHVaJ017945; Fri, 14 Mar 2008 11:17:31 -0400 (EDT) To: Carol Walter cc: pgsql-admin@postgresql.org Subject: Re: Database conversion type serial question In-reply-to: <99CE0FBA-30CB-4DB8-8F58-C7CA1A9EDDB3@indiana.edu> References: <99CE0FBA-30CB-4DB8-8F58-C7CA1A9EDDB3@indiana.edu> Comments: In-reply-to Carol Walter message dated "Fri, 14 Mar 2008 11:05:57 -0400" Date: Fri, 14 Mar 2008 11:17:31 -0400 Message-ID: <17944.1205507851@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200803/118 X-Sequence-Number: 28601 Carol Walter writes: > Can I designate a column not > previously defined as serial to serial. "serial" is not really a type. It's just a convenience macro for creating a sequence and setting the column's default expression. So what you do is perform those steps manually. See http://www.postgresql.org/docs/8.2/static/datatype-numeric.html#DATATYPE-SERIAL regards, tom lane