Fixed problem with pg_dump tar backups. Only happens on platforms that
use our port/fseeko.c, which is currently BSD/OS and NetBSD.
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/port/fseeko.c,v 1.13 2003/11/29 19:52:13 pgsql Exp $
+ * $PostgreSQL: pgsql/src/port/fseeko.c,v 1.14 2004/03/23 05:26:53 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifdef bsdi
flockfile(stream);
#endif
+ fflush(stream); /* force writes to fd for stat() */
if (fstat(fileno(stream), &filestat) != 0)
goto failure;
floc = filestat.st_size;