pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedEasy way to change table schema?
3+ messages / 2 participants
[nested] [flat]
* Easy way to change table schema?
@ 2007-08-10 15:24 Chris Hoover <revoohc@gmail.com>
2007-08-10 15:29 ` Re: Easy way to change table schema? Joshua D. Drake <jd@commandprompt.com>
0 siblings, 1 reply; 3+ messages in thread
From: Chris Hoover @ 2007-08-10 15:24 UTC (permalink / raw)
To: pgsql-admin
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?
Thanks,
Chris
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Easy way to change table schema?
2007-08-10 15:24 Easy way to change table schema? Chris Hoover <revoohc@gmail.com>
@ 2007-08-10 15:29 ` Joshua D. Drake <jd@commandprompt.com>
2007-08-10 17:48 ` Re: Easy way to change table schema? Chris Hoover <revoohc@gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Joshua D. Drake @ 2007-08-10 15:29 UTC (permalink / raw)
To: Chris Hoover <revoohc@gmail.com>; +Cc: pgsql-admin
-----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-----
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Easy way to change table schema?
2007-08-10 15:24 Easy way to change table schema? Chris Hoover <revoohc@gmail.com>
2007-08-10 15:29 ` Re: Easy way to change table schema? Joshua D. Drake <jd@commandprompt.com>
@ 2007-08-10 17:48 ` Chris Hoover <revoohc@gmail.com>
0 siblings, 0 replies; 3+ messages in thread
From: Chris Hoover @ 2007-08-10 17:48 UTC (permalink / raw)
To: Joshua D. Drake <jd@commandprompt.com>; +Cc: pgsql-admin
On 8/10/07, Joshua D. Drake <jd@commandprompt.com> wrote:
>
> -----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
> >
>
>
> - --
thanks, I must be blind in one eye and unable to see out of the other. I
was looking at the page before I sent out my inquiry and did not see it.
Chris
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2007-08-10 17:48 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-08-10 15:24 Easy way to change table schema? Chris Hoover <revoohc@gmail.com>
2007-08-10 15:29 ` Joshua D. Drake <jd@commandprompt.com>
2007-08-10 17:48 ` Chris Hoover <revoohc@gmail.com>
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