* Build the path for the directory holding the files backing a SharedFileSet * in a given tablespace. */
| 319 | * in a given tablespace. |
| 320 | */ |
| 321 | static void |
| 322 | SharedFileSetPath(char *path, SharedFileSet *fileset, Oid tablespace) |
| 323 | { |
| 324 | char tempdirpath[MAXPGPATH]; |
| 325 | |
| 326 | TempTablespacePath(tempdirpath, tablespace); |
| 327 | snprintf(path, MAXPGPATH, "%s/%s%lu.%u.sharedfileset", |
| 328 | tempdirpath, PG_TEMP_FILE_PREFIX, |
| 329 | (unsigned long) fileset->creator_pid, fileset->number); |
| 330 | } |
| 331 | |
| 332 | /* |
| 333 | * Sorting hat to determine which tablespace a given shared temporary file |
no test coverage detected