1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

Cleanups for large objects, so file is trucated on open, fix for

solaris/spare shared libararies, new error message for postmaster
startup, and makefile cleanups.
This commit is contained in:
Bruce Momjian
1998-05-12 21:44:08 +00:00
parent 1b70585d4b
commit 58fffea03c
9 changed files with 38 additions and 25 deletions

View File

@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/test/examples/testlo.c,v 1.7 1997/09/25 16:35:50 momjian Exp $
* $Header: /cvsroot/pgsql/src/test/examples/testlo.c,v 1.8 1998/05/12 21:44:07 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -168,7 +168,7 @@ exportFile(PGconn *conn, Oid lobjId, char *filename)
/*
* open the file to be written to
*/
fd = open(filename, O_CREAT | O_WRONLY, 0666);
fd = open(filename, O_CREAT | O_WRONLY | O_TRUNC, 0666);
if (fd < 0)
{ /* error */
fprintf(stderr, "can't open unix file\"%s\"",

View File

@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/test/examples/Attic/testlo2.c,v 1.6 1997/09/25 16:35:52 momjian Exp $
* $Header: /cvsroot/pgsql/src/test/examples/Attic/testlo2.c,v 1.7 1998/05/12 21:44:08 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -164,7 +164,7 @@ exportFile(PGconn *conn, Oid lobjId, char *filename)
/*
* open the file to be written to
*/
fd = open(filename, O_CREAT | O_WRONLY, 0666);
fd = open(filename, O_CREAT | O_WRONLY | O_TRUNC, 0666);
if (fd < 0)
{ /* error */
fprintf(stderr, "can't open unix file\"%s\"",