head	1.4;
access;
symbols
	PG95_1_01:1.4
	PG95_1_0:1.3
	PG95_beta_03:1.2
	PG95_beta_02:1.2;
locks; strict;
comment	@# @;


1.4
date	96.02.24.01.13.09;	author jolly;	state Exp;
branches;
next	1.3;

1.3
date	95.07.25.00.32.05;	author jolly;	state Exp;
branches;
next	1.2;

1.2
date	95.05.17.18.57.10;	author jolly;	state Exp;
branches;
next	1.1;

1.1
date	95.05.17.07.58.04;	author jolly;	state Exp;
branches;
next	;


desc
@@


1.4
log
@*** empty log message ***
@
text
@pg_dump is a utility for dumping out a postgres database into a script
file containing query commands.  The script files are in a ASCII
format and can be used to reconstruct the database, even on other
machines and other architectures.  pg_dump will produce the queries
necessary to re-generate all user-defined types, functions, tables,
indices, aggregates, and operators.  In addition, all the data is
copied out in ASCII format so that it can be readily copied in again.


To build:

	   % gmake clean install

This version of the program will read in your postgres95 database and
output the schema and the data tuples in SQL.  The dumps are useful
for moving from one postgres95 installation to another.  


How to use pg_dump:
-------------------

The command line options are fairly self explanatory.  Use -help to
see the command line options.   recommend using -v to get
more verbose descriptions of what pg_dump is doing.

After running pg_dump, one should examine the output script file for any 
warnings, especially in light of the limitations listed below.

A typical use of pg_dump:

	%  pg_dump -v -f oldDB.dump  oldDB
	%  createdb newDB
 	%  psql newDB < oldDB.dump


Caveats and limitations:
------------------------

pg_dump has a few limitations.  The limitations mostly stem from
difficulty in extracting certain meta-information from the system
catalogs.   

   rules and views:  
	pg_dump does not understand user-defined rules and views and
	will fail to dump them properly.  (This is due to the fact that
	rules are stored as plans in the catalogs and not textually)
	
   partial indices:
	pg_dump does not understand partial indices. (The reason is
	the same as above.  Partial index predicates are stored as plans)
	
   large objects:
	pg_dump does not handle large objects.  Large
	objects are ignored and must be dealt with manually.

   oid preservation:
 	pg_dump does not preserve oid's while dumping.  If you have
	stored oid's explicitly in tables in user-defined attributes,
	and are using them as keys, then the output scripts will not
	regenerate your database correctly. 

pg_dump requires postgres95 beta0.03 or later.

Bug-reporting
--------------

If you should find a problem with pg_dump, it is very important that
you provide a (small) sample database which illustrates the problem.
Please send bugs, questions, and feedback to the
	postgres95@@postgres95.vnet.net



@


1.3
log
@all the v4r2 stuff has been moved to src/bin/pg4_dump

updated to the new beta0.03 libpq.
@
text
@a8 3
The sources in this directory can be used to build two different
versions of the program.  The two versions require different
versions of libpq, and the same binary cannot serve both purposes.
d10 1
a10 1
If you are using:
a11 6
==============================
	Postgres95
==============================

	To build:

d14 3
a16 4
	This version of the program will read in your postgres95
database and output the schema and the data tuples in SQL only.
(The SQL->POSTQUEL direction is not supported.)  The dumps are useful
for moving from one postgres95 installation to another.
a51 4
   source text of POSTQUEL functions:
	pg_dump does not convert the source text of a user-defined
	POSTQUEL function into SQL.  Manual intervention is required.

d53 1
a53 1
	pg_dump does not handle large objects.  Inversion large
d70 1
a70 1
	postgres95@@postgres.berkeley.edu
@


1.2
log
@makefiles for postgres v4r2 and postgres95
@
text
@a15 17
	Postgres v4r2
==============================

	To build:

	   % cp Makefile.v4r2 Makefile
	   % bmake clean install

	This version of the program will read in your postgres v4r2
database and output the schema and the data tuples in one of two
formats:  POSTQUEL or SQL.  The POSTQUEL->POSTQUEL dumps are useful
for moving from one v4r2 installation to another.  The POSTQUEL->SQL
dumps are useful for migrating from v4r2 to postgres95.  

Use the -o [SQL|POSTQUEL] option to specify output query language.

==============================
a20 1
	   % cp Makefile.p95 Makefile
d33 1
a33 2
see the command line options.  Note that the -o option is only
available for the postgres v4r2 version.  I recommend using -v to get
d76 1
a76 2
pg_dump has not been tested and will probably not work properly for
versions of postgres prior to 4.2.
@


1.1
log
@pg_dump docs
@
text
@d89 5
d95 3
@
