aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/backend/catalog/heap.c4
-rw-r--r--src/backend/storage/file/fd.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/catalog/heap.c b/src/backend/catalog/heap.c
index 2f3f6b4ad8b..6e28f04759c 100644
--- a/src/backend/catalog/heap.c
+++ b/src/backend/catalog/heap.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.88 1999/06/16 11:01:17 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.89 1999/07/08 02:46:37 momjian Exp $
*
*
* INTERFACE ROUTINES
@@ -254,7 +254,7 @@ heap_create(char *relname,
{
/* replace relname of caller */
snprintf(relname, NAMEDATALEN, "pg_temp.%d.%u",
- (int) MyProcPid, uniqueId++);
+ MyProcPid, uniqueId++);
}
/* ----------------
diff --git a/src/backend/storage/file/fd.c b/src/backend/storage/file/fd.c
index 0f61f2be912..223b25646d8 100644
--- a/src/backend/storage/file/fd.c
+++ b/src/backend/storage/file/fd.c
@@ -6,7 +6,7 @@
* Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $Id: fd.c,v 1.42 1999/05/26 12:55:51 momjian Exp $
+ * $Id: fd.c,v 1.43 1999/07/08 02:46:39 momjian Exp $
*
* NOTES:
*
@@ -670,7 +670,7 @@ OpenTemporaryFile(void)
* transaction
*/
snprintf(tempfilename, sizeof(tempfilename),
- "pg_temp%d.%ld", (int) getpid(), tempFileCounter++);
+ "pg_sorttemp%d.%ld", MyProcPid, tempFileCounter++);
/* Open the file */
#ifndef __CYGWIN32__