Make use of qsort_arg in several places that were formerly using klugy
Tom Lane <tgl@sss.pgh.pa.us>
Make use of qsort_arg in several places that were formerly using klugy static variables. This avoids any risk of potential non-reentrancy, and in particular offers a much cleaner workaround for the Intel compiler bug that was affecting ginutil.c.
Files
| Path | Change | +/− |
|---|---|---|
| contrib/btree_gist/btree_utils_var.c | modified | +8 −12 |
| contrib/tsearch2/rank.c | modified | +12 −10 |
| contrib/tsearch2/tsvector.c | modified | +5 −6 |
| src/backend/access/gin/ginutil.c | modified | +25 −37 |
| src/backend/commands/analyze.c | modified | +24 −21 |
| src/include/access/gin.h | modified | +3 −2 |