pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: teknokrat <teknokrat@yahoo.com>
To: pgsql-sql@postgresql.org
Subject: Re: Updating a table column with ref integrity
Date: Fri, 15 Nov 2002 10:07:56 -0800
Message-ID: <web-1827592@davinci.ethosmedia.com> (raw)
In-Reply-To: <ar2mb5$2f15$1@news.hub.org>

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



view thread (2+ messages)

Message-ID: <web-1827592@davinci.ethosmedia.com>
Permalink:  ../web-1827592@davinci.ethosmedia.com/
Also on:    postgresql.org/message-id/web-1827592@davinci.ethosmedia.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: josh@agliodbs.com, teknokrat@yahoo.com
  Subject: Re: Updating a table column with ref integrity
  In-Reply-To: <web-1827592@davinci.ethosmedia.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox