Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id A5BF69FB73E for ; Wed, 10 Oct 2007 18:32:24 -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 16792-03-3 for ; Wed, 10 Oct 2007 18:32:15 -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 9BE189FB7E1 for ; Wed, 10 Oct 2007 18:32:19 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.1/8.14.1) with ESMTP id l9ALWHGB024665; Wed, 10 Oct 2007 17:32:17 -0400 (EDT) To: "Eric Weimer" cc: pgsql-bugs@postgresql.org Subject: Re: BUG #3668: type error in serial In-reply-to: <200710101902.l9AJ2Lbn080555@wwwmaster.postgresql.org> References: <200710101902.l9AJ2Lbn080555@wwwmaster.postgresql.org> Comments: In-reply-to "Eric Weimer" message dated "Wed, 10 Oct 2007 19:02:21 +0000" Date: Wed, 10 Oct 2007 17:32:17 -0400 Message-ID: <24664.1192051937@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/70 X-Sequence-Number: 18468 "Eric Weimer" writes: > Creating a table with a column of type serial causes the creation of a > sequence tied as the default value for the column. > The actual type of the column is integer, however the sequence created is of > type bigint. If the sequence is created as a bigint, then the column should > also be defined as bigint. This is not a bug, primarily because we have only one size of sequence. regards, tom lane