Re: Updating a table column with ref integrity

From: "Josh Berkus" <josh(at)agliodbs(dot)com>
To: teknokrat <teknokrat(at)yahoo(dot)com>, pgsql-sql(at)postgresql(dot)org
Subject: Re: Updating a table column with ref integrity
Date: 2002-11-15 18:07:56
Message-ID: web-1827592@davinci.ethosmedia.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Richard Huxton 2002-11-15 18:48:35 Re: Does Postgres replace \\ with \ in an update query
Previous Message Oleg Bartunov 2002-11-15 16:59:21 Re: Proposal of hierarchical queries, a la Oracle