FreeBSD/mktemp bug with create index...fixed - Mailing list pgsql-hackers

From The Hermit Hacker
Subject FreeBSD/mktemp bug with create index...fixed
Date
Msg-id Pine.BSF.3.96.980221143757.12921N-100000@thelab.hub.org
Whole thread Raw
List pgsql-hackers
Found it:

Change, in backend/access/nbtree/nbtsort.c:

#define TAPETEMP                "pg_btsortXXXXXX"

to:

#define TAPETEMP                "pg_btsortXXXXXXX"

For some reason, under FreeBSD, it appears that the mktemp() value needs
the extra 'X' to improve/ensure uniqueness



Marc G. Fournier
Systems Administrator @ hub.org
primary: scrappy@hub.org           secondary: scrappy@{freebsd|postgresql}.org


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [PATCHES] Here it is - view permissions
Next
From: leao@world.std.com (Joao Leao)
Date:
Subject: [HACKERS] Unsubscribe