Commit c21214f1 authored by Bruce Momjian's avatar Bruce Momjian

Honor TMPDIR.

Add the script name to the tmp directory name.

Move trap up now that the dir is more unique.
parent ed9e8f54
...@@ -10,7 +10,8 @@ ...@@ -10,7 +10,8 @@
# Caution: you may need to use GNU awk. # Caution: you may need to use GNU awk.
AWK=${AWK:-awk} AWK=${AWK:-awk}
TMP="/tmp/$$" TMP="${TMPDIR:-/tmp}/make_oidjoins_check.$$"
trap "rm -rf $TMP" 0 1 2 3 15
# Create a temporary directory with the proper permissions so no one can # Create a temporary directory with the proper permissions so no one can
# intercept our temporary files and cause a security breach. # intercept our temporary files and cause a security breach.
...@@ -23,8 +24,6 @@ fi ...@@ -23,8 +24,6 @@ fi
umask "$OMASK" umask "$OMASK"
unset OMASK unset OMASK
trap "rm -rf $TMP" 0 1 2 3 15
INPUTFILE="$TMP/a" INPUTFILE="$TMP/a"
DUPSFILE="$TMP/b" DUPSFILE="$TMP/b"
NONDUPSFILE="$TMP/c" NONDUPSFILE="$TMP/c"
......
...@@ -250,12 +250,17 @@ Indexes ...@@ -250,12 +250,17 @@ Indexes
order. Another method would be to sort heap ctids matching the index order. Another method would be to sort heap ctids matching the index
before accessing the heap rows. before accessing the heap rows.
* Use bitmaps to combine existing indexes [performance] * Allow the creation of bitmap indexes which can be quickly combined
with other bitmap indexes
Bitmap indexes allow single indexed columns to be combined to Bitmap indexes index single columns and can be combined with other bitmap
dynamically create a composite index to match a specific query. Each indexes to dynamically create a composite index to match a specific query.
index is a bitmap, and the bitmaps are AND'ed or OR'ed to be combined. Each index is a bitmap, and the bitmaps are bitwise AND'ed or OR'ed to be
combined.
* Allow non-bitmap indexes to be combined
Do loUse bitmaps to combine non-bitmap indexes
* Allow use of indexes to search for NULLs * Allow use of indexes to search for NULLs
One solution is to create a partial index on an IS NULL expression. One solution is to create a partial index on an IS NULL expression.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment