Re: Read recover rows - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: Read recover rows
Date
Msg-id 20121214025113.GA13974@alvh.no-ip.org
Whole thread Raw
In response to Read recover rows  (Alejandro Carrillo <fasterzip@yahoo.es>)
Responses Re: Read recover rows
Re: Read recover rows
List pgsql-general
Alejandro Carrillo escribió:
> Hi,
>
> 1) Anybody knows how to create a table using a table
> file? It isn't a fdw, is a file that compose the table in postgresql and
>  get with the pg_relation_filepath function. Ex:
>  
>  select pg_relation_filepath('pg_proc');

Make sure the server is down and replace a table's file with the file
you have.  You can just create a dummy empty table with exactly the same
row type as the one that had the table the file was for; you need to
recreate dropped columns as well.

> 2) Anybody knows a JDBC or a multiplatform code that let read the delete rows of a table without writing of a table
file?

You already tried pg_dirtyread, I imagine, after I suggested it to you
in the spanish list?  You can use it through JDBC.

--
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services


pgsql-general by date:

Previous
From: Amitabh Kant
Date:
Subject: Re: initdb error
Next
From: "ac@hsk.hk"
Date:
Subject: PostgreSQL contrib 9.2.x