aboutsummaryrefslogtreecommitdiff
path: root/src/bin/pg_dump/pg_backup_files.c
Commit message (Collapse)AuthorAge
* pg_dump: Remove undocumented "files" output formatPeter Eisentraut2012-03-20
| | | | | | | This was for demonstration only, and now it was creating compiler warnings from zlib without an obvious fix (see also d923125b77c5d698bb8107a533a21627582baa43), let's just remove it. The "directory" format is presumably similar enough anyway.
* Fix incorrect uses of gzFilePeter Eisentraut2012-03-02
| | | | | | | | | | | | | | | | | | | | | | | | gzFile is already a pointer, so code like gzFile *handle = gzopen(...) is wrong. This used to pass silently because gzFile used to be defined as void*, and you can assign a void* to a void**. But somewhere between zlib versions 1.2.3.4 and 1.2.6, the definition of gzFile was changed to struct gzFile_s *, and with that new definition this usage causes compiler warnings. So remove all those extra pointer decorations. There is a related issue in pg_backup_archiver.h, where FILE *FH; /* General purpose file handle */ is used throughout pg_dump as sometimes a real FILE* and sometimes a gzFile handle, which also causes warnings now. This is not yet fixed here, because it might need more code restructuring.
* Invent on_exit_nicely for pg_dump.Robert Haas2012-02-16
| | | | Per recent discussions on pgsql-hackers regarding parallel pg_dump.
* Simplify the pg_dump/pg_restore error reporting macros, and allowBruce Momjian2011-11-29
| | | | pg_dumpall to use the same memory allocation functions as the others.
* Move pg_dump memory routines into pg_dumpmem.c/h and restore common.cBruce Momjian2011-11-26
| | | | | with its original functions. The previous function migration would cause too many difficulties in back-patching.
* Modify pg_dump to use error-free memory allocation macros. This avoidsBruce Momjian2011-11-25
| | | | ignoring errors and call-site error checking.
* Remove many -Wcast-qual warningsPeter Eisentraut2011-09-11
| | | | | | This addresses only those cases that are easy to fix by adding or moving a const qualifier or removing an unnecessary cast. There are many more complicated cases remaining.
* Remove cvs keywords from all files.Magnus Hagander2010-09-20
|
* Make pg_dump/pg_restore --clean options drop large objects too.Tom Lane2009-07-21
| | | | | | In passing, make invocations of lo_xxx functions a bit more schema-safe. Itagaki Takahiro
* Provide for parallel restoration from a custom format archive. Each data andAndrew Dunstan2009-02-02
| | | | | | | | post-data step is run in a separate worker child (a thread on Windows, a child process elsewhere) up to the concurrent number specified by the new pg_restore command-line --multi-thread | -m switch. Andrew Dunstan, with some editing by Tom Lane.
* Make pg_dump and friends consistently report both the filename and theTom Lane2007-10-28
| | | | | | errno string when complaining of fopen failures. Per gripe from Bob Pawley, it's not always instantly obvious to the user which name we tried to open.
* Fix pg_restore to guard against unexpected EOF while reading an archive file.Tom Lane2007-08-06
| | | | Per report and partial patch from Chad Wagner.
* Code cleanup: mark some variables with the "const" modifier, when theyNeil Conway2007-03-18
| | | | are initialized with a string literal. Patch from Stefan Huehner.
* Fix pg_dump on win32 to properly dump files larger than 2Gb when usingMagnus Hagander2007-02-19
| | | | binary dump formats.
* Normalize fgets() calls to use sizeof() for calculating the buffer sizePeter Eisentraut2007-02-08
| | | | | | | where possible, and fix some sites that apparently thought that fgets() will overwrite the buffer by one byte. Also add some strlcpy() to eliminate some weird memory handling.
* Remove 576 references of include files that were not needed.Bruce Momjian2006-07-14
|
* Add strerror to pg_dump error messages where missing.Peter Eisentraut2006-05-22
|
* Standard pgindent run for 8.1.Bruce Momjian2005-10-15
|
* pg_dump can now dump large objects even in plain-text output mode, byTom Lane2005-06-21
| | | | | | using the recently added lo_create() function. The restore logic in pg_restore is greatly simplified as well, since there's no need anymore to try to adjust database references to match a new set of blob OIDs.
* Modify pg_dump so that the preferred dump order is by name withinTom Lane2004-03-03
| | | | | | | | | object types, rather than by OID. This should help ensure consistent dump output from databases that are logically the same but have different histories, per recent discussion about 'diffing' databases. The patch is bulky because of renaming of fields, but not very complicated. Also, do some tweaking to cause BLOB restoration to be done in a better order, and clean up pg_restore's textual output to exactly match pg_dump.
* Massive overhaul of pg_dump: make use of dependency information fromTom Lane2003-12-06
| | | | | | | pg_depend to determine a safe dump order. Defaults and check constraints can be emitted either as part of a table or domain definition, or separately if that's needed to break a dependency loop. Lots of old half-baked code for controlling dump order removed.
* $Header: -> $PostgreSQL Changes ...PostgreSQL Daemon2003-11-29
|
* Use calloc() to allocate empty structures.Bruce Momjian2003-10-08
| | | | | Fix pg_restore tar log output bug where Special flag wasn't being initialized; bug seen on XP.
* Allow fseeko in pg_dump only if fseeko() will work for all supported fileBruce Momjian2002-10-25
| | | | sizes.
* Allow 8-byte off_t to properly pg_dump, from Philip Warner with mods by Bruce.Bruce Momjian2002-10-22
|
* Fix portability problem (size_t != int).Tom Lane2002-09-10
|
* pgindent run.Bruce Momjian2002-09-04
|
* Enable large file support.Peter Eisentraut2002-08-20
| | | | Use off_t and size_t in pg_dump to handle file offset arithmetic correctly.
* Fix some more not-schema-aware queries in pg_dump. Also fix some placesTom Lane2002-05-29
| | | | that would do the wrong thing with BLOB OIDs exceeding 2G.
* Speed improvement for large object restore.Bruce Momjian2002-04-24
| | | | Mario Weilguni
* pgindent run on all C files. Java run to follow. initdb/regressionBruce Momjian2001-10-25
| | | | tests pass.
* For consistency with the rest of PostgreSQL, rename BLOBs to large objectsPeter Eisentraut2001-09-21
| | | | in messages and documentation.
* More message munging and localization for pg_dump, especially thePeter Eisentraut2001-07-03
| | | | | | --verbose messages, which had not been considered so far. Output to the terminal should okay now; comments written into the dump are still English only, which may or may not be the desirable thing.
* National language support for pg_dump and pg_restore. Combined with bigPeter Eisentraut2001-06-27
| | | | message clean up.
* Patch to put rudimentary dependency support into pg_dump. This addressesPhilip Warner2001-04-01
| | | | | | | | | | | | the UDT/function order problem. - Rudimentary support for dependencies in archives. Uses dependencies to modify the OID used in sorting TOC entries. This will NOT handle multi-level dependencies, but will manage simple relationships like UDTs & their functions. - Treat OIDs with more respect (avoid using ints, use macros for conversion & comparison).
* Fix checking of file operations in demo ('files') output format.Philip Warner2001-03-23
|
* pgindent run. Make it all clean.Bruce Momjian2001-03-22
|
* - Added CVS headers to filesPhilip Warner2001-03-19
| | | | | | | - Avoid forcing table name to lower case in FixupBlobXrefs - Removed fmtId calls for all ArchiveEntry name fields. This fixes quoting problems in trigger enable/disable code for mixed case table names, and avoids commands like 'pg_restore -t '"TblA"'
* Restructure the key include files per recent pghackers discussion: thereTom Lane2001-02-10
| | | | | | | | | | | are now separate files "postgres.h" and "postgres_fe.h", which are meant to be the primary include files for backend .c files and frontend .c files respectively. By default, only include files meant for frontend use are installed into the installation include directory. There is a new make target 'make install-all-headers' that adds the whole content of the src/include tree to the installed fileset, for use by people who want to develop server-side code without keeping the complete source tree on hand. Cleaned up a whole lot of crufty and inconsistent header inclusions.
* - Check ntuples == 1 for various SELECT statements.Philip Warner2001-01-12
| | | | | | | | | - Fix handling of --tables=* (multiple tables never worked properly, AFAICT) - strdup() the current user in DB routines - Check results of IO routines more carefully. - Check results of PQ routines more carefully. Have not fixed index output yet.
* Added long-standing transaction when restoring BLOBS (uses commit every ↵Philip Warner2000-10-31
| | | | | | BLOB_BATCH_SIZE) Prevent dumping of languages from template1.
* - Support for BLOB output from pg_dump and input via pg_restorePhilip Warner2000-07-21
| | | | | | | - Support for direct DB connection in pg_restore - Fixes in support for --insert flag - pg_dump now outputs in modified OID order - various other bug fixes
* Please find attached a patch for the pg_dump directory which addresses:Jan Wieck2000-07-06
| | | | | | | | | | - The problems Jan reported - incompatibility with configure (now uses HAVE_LIBZ instead of HAVE_ZLIB) - a problem in auto-detecting archive file format on piped archives Philip Warner
* pg_dump patch from Philip WarnerBruce Momjian2000-07-04