From: | Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com> |
---|---|
To: | Alejandro Carrillo <fasterzip(at)yahoo(dot)es> |
Cc: | "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Read recover rows |
Date: | 2012-12-14 00:36:02 |
Message-ID: | 50CA7472.3090504@gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 12/13/2012 03:41 PM, Alejandro Carrillo wrote:
> Are you trying to recover a table by copying in a table from somewhere
> else? Yes because I can't modify the original file
You will not be able to work with the disk file directly, you will need
to go through the database.
Have you tried pg_dump:
http://www.postgresql.org/docs/9.2/interactive/app-pgdump.html
Something like:
pg_dump -t some_table -f some_table.sql -U some_user database_name
Where the dummy names are replaced with the table/database you want.
This will create a plain text file. If you need to change the name you
could do find and replace on the table name.
This assumes you are trying to move a user created table not a system
table.
Is that the case?
--
Adrian Klaver
adrian(dot)klaver(at)gmail(dot)com
From | Date | Subject | |
---|---|---|---|
Next Message | Kevin Grittner | 2012-12-14 00:36:25 | Re: pg_restore error with out of memory |
Previous Message | Edson Richter | 2012-12-13 23:52:15 | Re: XML Schema for PostgreSQL database |