aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeHash.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/executor/nodeHash.c')
-rw-r--r--src/backend/executor/nodeHash.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/backend/executor/nodeHash.c b/src/backend/executor/nodeHash.c
index d6067713cfe..e3b004c0a29 100644
--- a/src/backend/executor/nodeHash.c
+++ b/src/backend/executor/nodeHash.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/executor/nodeHash.c,v 1.6 1996/10/31 10:12:00 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/executor/nodeHash.c,v 1.7 1996/11/06 06:47:40 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
@@ -21,7 +21,14 @@
#include <stdio.h> /* for sprintf() */
#include <math.h>
+#include <string.h>
#include <sys/file.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+
+#include <unistd.h>
+
#include "postgres.h"
@@ -31,6 +38,7 @@
#include "executor/executor.h"
#include "executor/nodeHash.h"
#include "executor/nodeHashjoin.h"
+#include "executor/execdebug.h"
#include "utils/palloc.h"
#include "utils/hsearch.h"
@@ -845,7 +853,7 @@ static int hjtmpcnt = 0;
static void
mk_hj_temp(char *tempname)
{
- sprintf(tempname, "HJ%d.%d", getpid(), hjtmpcnt);
+ sprintf(tempname, "HJ%d.%d", (int)getpid(), hjtmpcnt);
hjtmpcnt = (hjtmpcnt + 1) % 1000;
}