From: | Edmund Bacon <ebacon-xlii(at)onesystem(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Novice Question |
Date: | 2005-03-01 21:43:11 |
Message-ID: | m3ll97jb4g.fsf@elb_lx.onesystem.ca |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
michael(at)houseind(dot)com (Michael Romagnoli) writes:
> What kind of command would I run if I wanted to copy an entire table
> (along with renaming it, and, of course, all data from the first table
> -
> some of which is binary)?
SELECT * INTO newtable FROM oldtable;
Note that this doesn't construct indexes, Foreign keys, constraints,
etc.
If by 'binary data' you mean BLOBs, I'd expect the above to work.
Other than that, AFAIUI you have no reasonable expectation that your data is
stored in any meaningful binary format by the database. All data
could be internally stored as strings (though that might be very
slow).
--
Remove -42 for email
From | Date | Subject | |
---|---|---|---|
Next Message | Bricklen Anderson | 2005-03-01 21:45:05 | Re: Novice Question |
Previous Message | Scott Frankel | 2005-03-01 21:42:18 | sql join question |