Shell script to extract a table from a plain text dump

From: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
To: Hackers <pgsql-hackers(at)postgresql(dot)org>, pgsql-general(at)postgresql(dot)org
Subject: Shell script to extract a table from a plain text dump
Date: 2005-10-07 08:46:12
Message-ID: 434635D4.7000604@familyhealth.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

If you have huge plain text dumps, and just want to restore one table
it's usually painful. Attached is a small shell script that can take a
plain text dump and extract a single table's COPY data commands from it.

If people think it's interesting and should be developed, I can pop it
on pgfoundry or something.

Chris

Attachment Content-Type Size
restore.sh text/plain 1.1 KB

Responses

Browse pgsql-general by date

  From Date Subject
Next Message WireSpot 2005-10-07 08:47:26 Re: Dump all except some tables?
Previous Message Andrus 2005-10-07 08:22:40 Re: PostgreSQL 8.1 vs. MySQL 5.0?

Browse pgsql-hackers by date

  From Date Subject
Next Message Martijn van Oosterhout 2005-10-07 09:36:27 Re: Shell script to extract a table from a plain text dump
Previous Message Simon Riggs 2005-10-07 08:44:54 Re: prefix btree implementation