File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11target
2+ /README.html
Original file line number Diff line number Diff line change 1+ This program is free software: you can redistribute it and/or modify it under
2+ the terms of the GNU General Public License as published by the Free Software
3+ Foundation, either version 3 of the License, or (at your option) any later
4+ version.
5+
6+ This program is distributed in the hope that it will be useful, but WITHOUT ANY
7+ WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
8+ PARTICULAR PURPOSE. See the GNU General Public License for more details.
9+
10+ You should have received a copy of the GNU General Public License along with
11+ this program. If not, see <http://www.gnu.org/licenses/>
Original file line number Diff line number Diff line change 1+ PG-Inserts : Get INSERT commands from PostgreSQL dump with COPY statements
2+ ==========================================================================
3+
4+ PostgreSQL's pg_dump with COPY statements is the most effective way to dump your
5+ database, but is it difficult to grep in to recover specific data.
6+
7+
8+ Installation
9+ ------------
10+
11+ This tool is written in `Rust <https://www.rust-lang.org/ >`_ language. Install
12+ it, then type::
13+
14+ cargo install
15+
16+
17+ Usage
18+ -----
19+
20+ Just pipe dump output to pg-inserts::
21+
22+ cat dump.sql | pg-inserts
23+
24+ If the dump file is a binary archive, use pg_restore::
25+
26+ pg_restore dump.db | pg-inserts
27+
28+
29+ Notice
30+ ------
31+
32+ A Python version is also provided (7.5 times slower than Rust version).
You can’t perform that action at this time.
0 commit comments