aboutsummaryrefslogtreecommitdiff
path: root/src/include/c.h
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2007-01-25 03:30:43 +0000
committerBruce Momjian <bruce@momjian.us>2007-01-25 03:30:43 +0000
commit6441288ec9d6c86c441ca31eb08799f12bc3b99c (patch)
tree8b46e7abe146f74d64c0dc02dd12d6342e656461 /src/include/c.h
parent1b7d863f1df9b64acd8ed3d740a6ff246d006a96 (diff)
downloadpostgresql-6441288ec9d6c86c441ca31eb08799f12bc3b99c.tar.gz
postgresql-6441288ec9d6c86c441ca31eb08799f12bc3b99c.zip
Add 'output file' option for pg_dumpall, especially useful for Win32,
where output redirection of child processes (pg_dump) doesn't work. Dave Page
Diffstat (limited to 'src/include/c.h')
-rw-r--r--src/include/c.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/c.h b/src/include/c.h
index dab8dc2e68c..9daa9e4c0eb 100644
--- a/src/include/c.h
+++ b/src/include/c.h
@@ -12,7 +12,7 @@
* Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/c.h,v 1.216 2007/01/11 02:39:52 momjian Exp $
+ * $PostgreSQL: pgsql/src/include/c.h,v 1.217 2007/01/25 03:30:43 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -736,10 +736,12 @@ typedef NameData *Name;
*/
#if defined(WIN32) || defined(__CYGWIN__)
#define PG_BINARY O_BINARY
+#define PG_BINARY_A "ab"
#define PG_BINARY_R "rb"
#define PG_BINARY_W "wb"
#else
#define PG_BINARY 0
+#define PG_BINARY_A "a"
#define PG_BINARY_R "r"
#define PG_BINARY_W "w"
#endif