aboutsummaryrefslogtreecommitdiff
path: root/src/bin/pg_dump/pg_backup_tar.c
Commit message (Collapse)AuthorAge
...
* Pgindent run for 8.0.Bruce Momjian2004-08-29
|
* Solve the 'Turkish problem' with undesirable locale behavior for caseTom Lane2004-05-07
| | | | | | | | | | | | | conversion of basic ASCII letters. Remove all uses of strcasecmp and strncasecmp in favor of new functions pg_strcasecmp and pg_strncasecmp; remove most but not all direct uses of toupper and tolower in favor of pg_toupper and pg_tolower. These functions use the same notions of case folding already developed for identifier case conversion. I left the straight locale-based folding in place for situations where we are just manipulating user data and not trying to match it to built-in strings --- for example, the SQL upper() function is still locale dependent. Perhaps this will prove not to be what's wanted, but at the moment we can initdb and pass regression tests in Turkish locale.
* 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.
* Work around naming conflict between zlib and OpenSSL by tweaking inclusionTom Lane2003-12-08
| | | | order. Remove some unnecessary #includes (that duplicate c.h).
* 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.
* pgindent run.Bruce Momjian2003-08-04
|
* Apply message style guide to frontend programs.Peter Eisentraut2003-07-23
|
* Add start time to pg_stat_activityBruce Momjian2003-03-20
| | | | Neil Conway
* Changes of 6-Sep-02 broke pg_restore's ability to recognize tar-formatTom Lane2003-02-01
| | | | files. Fix it.
* Add missing <limits.h> for INT64_IS_BUSTED case.Tom Lane2003-01-10
|
* 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
|
* Make sure the pg_dump tar archiver can handle members larger than 2 GB, butPeter Eisentraut2002-09-06
| | | | | does not create members larger than allowed by the tar format. Also, fix the generation of the tar header to conform to POSIX.
* pgindent run.Bruce Momjian2002-09-04
|
* Workaround for format strings that are concatenated from macrosPeter Eisentraut2002-09-03
| | | | (INT64_FORMAT), which gettext cannot handle.
* backend where a statically sized buffer is written to. Most of theseBruce Momjian2002-08-28
| | | | | | | | | | | should be pretty safe in practice, but it's probably better to be safe than sorry. I was actually looking for cases where NAMEDATALEN is assumed to be 32, but only found one. That's fixed too, as well as a few bits of code cleanup. Neil Conway
* Enable large file support.Peter Eisentraut2002-08-20
| | | | Use off_t and size_t in pg_dump to handle file offset arithmetic correctly.
* More clearly document in pg_dump when we are dealing with an object nameBruce Momjian2002-07-04
| | | | as it appears in the schema dump, and index tags.
* 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.
* First pass at schema-fying pg_dump/pg_restore. Much to do still,Tom Lane2002-05-10
| | | | but the basic capability seems to work.
* Speed improvement for large object restore.Bruce Momjian2002-04-24
| | | | Mario Weilguni
* Another pgindent run. Fixes enum indenting, and improves #endifBruce Momjian2001-10-28
| | | | spacing. Also adds space for one-line comments.
* 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.
* - Fixed CONSTRAINT TRIGGER dump to record tgconstrelid properlyPhilip Warner2001-04-25
| | | | - pgsql v7.0 compatbility
* - Get view OID based on rule OID not base table OIDPhilip Warner2001-04-14
| | | | - Fix crash due to null string pointer in some tar files with some libs
* 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).
* 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"'
* Fix pg_dump crashes caused by bogus use of va_start/va_end (only seenTom Lane2001-02-23
| | | | | on some platforms, which is not too surprising considering how platform specific these macros must be).
* - Fix help output: replace 'f' with 't' and change descPhilip Warner2001-02-13
| | | | | | - Add extra arg to formatStringLiteral to specify how to handle LF & TAB. I opted for encoding them except in procedure bodies & comments - Fixed bug in tar file input when restoring blobs
* 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.
* Ensure that all uses of <ctype.h> functions are applied to unsigned-charTom Lane2000-12-03
| | | | | values, whether the local char type is signed or not. This is necessary for portability. Per discussion on pghackers around 9/16/00.
* Added long-standing transaction when restoring BLOBS (uses commit every ↵Philip Warner2000-10-31
| | | | | | BLOB_BATCH_SIZE) Prevent dumping of languages from template1.
* Final (?) fix for tar (null block at end)Philip Warner2000-10-25
| | | | Dump template db in dumpall
* Various fixes to TAR header formatPhilip Warner2000-10-24
| | | | | Fix for endian bug in TAR output Nicer error messages in pg_dump
* - Added --create, --no-owner, --superuser, --no-reconnect (pg_dump & pg_restore)Philip Warner2000-08-01
| | | | | | | | | | | | - Added code to dump 'Create Schema' statement (pg_dump) - Don't bother to disable/enable triggers if we don't have a superuser (pg_restore) - Cleaned up code for reconnecting to database. - Force a reconnect as superuser before enabling/disabling triggers. - Added & Removed --throttle (pg_dump) - Fixed minor bug in language dumping code: expbuffres were not being reset. - Fixed version number initialization in _allocAH (pg_backup_archiver.c) - Added second connection when restoring BLOBs to allow temp. table to survive (db reconnection causes temp tables to be lost).
* - Support for TAR outputPhilip Warner2000-07-21
- Support for BLOB output from pg_dump and input via pg_restore - Support for direct DB connection in pg_restore - Fixes in support for --insert flag - pg_dump now outputs in modified OID order