Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id C0F769F9370 for ; Fri, 10 Aug 2007 12:27:46 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 44744-02 for ; Fri, 10 Aug 2007 12:27:42 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from lists.commandprompt.com (host-254.commandprompt.net [207.173.203.254]) by postgresql.org (Postfix) with ESMTP id 9EE089F9246 for ; Fri, 10 Aug 2007 12:27:42 -0300 (ADT) Received: from [192.168.1.50] (or-67-76-146-141.sta.embarqhsd.net [67.76.146.141]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id l7AFRguH031920 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 10 Aug 2007 08:27:42 -0700 Message-ID: <46BC846D.6010109@commandprompt.com> Date: Fri, 10 Aug 2007 08:29:49 -0700 From: "Joshua D. Drake" User-Agent: Thunderbird 1.5.0.12 (X11/20070604) MIME-Version: 1.0 To: Chris Hoover CC: "pgsql-admin@postgresql.org Admin" Subject: Re: Easy way to change table schema? References: <1d219a6f0708100824v6c21b62agd81f53890ffa3876@mail.gmail.com> In-Reply-To: <1d219a6f0708100824v6c21b62agd81f53890ffa3876@mail.gmail.com> X-Enigmail-Version: 0.94.2.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.91.1/3907/Thu Aug 9 13:17:20 2007 on projects.commandprompt.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (lists.commandprompt.com [192.168.2.159]); Fri, 10 Aug 2007 08:27:42 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/120 X-Sequence-Number: 26451 -----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-----