Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 5220A476F6D for ; Fri, 15 Nov 2002 13:10:23 -0500 (EST) Received: from davinci.ethosmedia.com (davinci.ethosmedia.com [209.10.40.250]) by postgresql.org (Postfix) with ESMTP id 7B1BF4772CF for ; Fri, 15 Nov 2002 13:04:17 -0500 (EST) Received: from [63.195.55.98] (account ) by davinci.ethosmedia.com (CommuniGate Pro WebUser 3.5.9) with HTTP id 1827592; Fri, 15 Nov 2002 10:07:56 -0800 From: "Josh Berkus" Subject: Re: Updating a table column with ref integrity To: teknokrat , pgsql-sql@postgresql.org X-Mailer: CommuniGate Pro Web Mailer v.3.5.9 Date: Fri, 15 Nov 2002 10:07:56 -0800 Message-ID: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/231 X-Sequence-Number: 10373 Teknokrat, > I need to to change the type of a table column. The problem is that > this > table has a ref integrity constarint set up with another table. Does > > anyone know how I can do this easily without breaking any > constraints. Easily? No. In sum: dump your database to file. Backup. Edit the file. Re-create and re-load the database. -Josh Berkus