pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joshua D. Drake <jd@commandprompt.com>
To: Chris Hoover <revoohc@gmail.com>
Cc: pgsql-admin@postgresql.org Admin <pgsql-admin@postgresql.org>
Subject: Re: Easy way to change table schema?
Date: Fri, 10 Aug 2007 08:29:49 -0700
Message-ID: <46BC846D.6010109@commandprompt.com> (raw)
In-Reply-To: <1d219a6f0708100824v6c21b62agd81f53890ffa3876@mail.gmail.com>
References: <1d219a6f0708100824v6c21b62agd81f53890ffa3876@mail.gmail.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chris Hoover wrote:
> I have accidentally created some tables in the wrong schema.  Since my
> testers have begun to use them and put data in them, I was hoping for an
> easy way to move the existing tables.
> 
> Is there a way to move tables between schema's w/o having to drop and
> recreate?

ALTER TABLE

http://www.postgresql.org/docs/current/interactive/sql-altertable.html



> 
> Thanks,
> 
> Chris
> 


- --

      === The PostgreSQL Company: Command Prompt, Inc. ===
Sales/Support: +1.503.667.4564   24x7/Emergency: +1.800.492.2240
PostgreSQL solutions since 1997  http://www.commandprompt.com/
			UNIQUE NOT NULL
Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate
PostgreSQL Replication: http://www.commandprompt.com/products/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGvIRtATb/zqfZUUQRAs8RAJ9MVrjBRLaXsR2QphhhkMXozf1thwCgm/VD
GfHR6aakLCNxyv8WhlR2cRE=
=ZYyS
-----END PGP SIGNATURE-----



view thread (3+ messages)  latest in thread

Message-ID: <46BC846D.6010109@commandprompt.com>
Permalink:  ../46BC846D.6010109@commandprompt.com/
Also on:    postgresql.org/message-id/46BC846D.6010109@commandprompt.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-admin@postgresql.org
  Cc: jd@commandprompt.com, revoohc@gmail.com
  Subject: Re: Easy way to change table schema?
  In-Reply-To: <46BC846D.6010109@commandprompt.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