dbTalk Databases Forums  

pg_restore - added documentation

comp.databases.postgresql.patches comp.databases.postgresql.patches


Discuss pg_restore - added documentation in the comp.databases.postgresql.patches forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Harald Armin Massa
 
Posts: n/a

Default pg_restore - added documentation - 10-04-2004 , 11:23 AM






I suggest to alter the

pg_restore --help output from
-----------------------------------------
Usage:
pg_restore [OPTION]... [FILE]

General options:
-d, --dbname=NAME output database name
-f, --file=FILENAME output file name
-----------------------------------------------
to:

----------------------------------------------
Usage:
pg_restore [OPTION]... [FILE]

General options:
-d, --dbname=NAME output database name (to restore into a psql
database)
-f, --file=FILENAME output file name (to convert custom/tar to
plain SQL)
-F, --format=c|t specify backup file format (custom or tar,
plain text is not possible) ----------------------------------------------

Reasons:

a) pg_restore may sometimes be used in a "stressed state of mind" where
additional information is essential
b) within win32 there is no man pg_restore possible
c) Not me allown did need some time to understand WHY an "output file
name" makes sense for a resore-utility.

Please find the patch in the upcomming.

Harald

----------------------------------------------
363,365c363,365
< printf(_(" -d, --dbname=NAME output database name\n"));
< printf(_(" -f, --file=FILENAME output file name\n"));
< printf(_(" -F, --format=c|t specify backup file format\n"));
---
Quote:
printf(_(" -d, --dbname=NAME output database name (to
restore into a psql database) \n"));
printf(_(" -f, --file=FILENAME output file name (to convert
custom/tar to plain SQL)\n"));
printf(_(" -F, --format=c|t specify backup file format
(only custom and tar are allowed, not plain SQL)\n"));
--------------------------------------------------


---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.