|
PostgreSQL Source Code git master
|
#include "storage/dsm.h"#include "storage/fd.h"#include "storage/fileset.h"#include "storage/spin.h"

Go to the source code of this file.
Data Structures | |
| struct | SharedFileSet |
Typedefs | |
| typedef struct SharedFileSet | SharedFileSet |
Functions | |
| void | SharedFileSetInit (SharedFileSet *fileset, dsm_segment *seg) |
| void | SharedFileSetAttach (SharedFileSet *fileset, dsm_segment *seg) |
| void | SharedFileSetDeleteAll (SharedFileSet *fileset) |
| typedef struct SharedFileSet SharedFileSet |
| void SharedFileSetAttach | ( | SharedFileSet * | fileset, |
| dsm_segment * | seg | ||
| ) |
Definition at line 56 of file sharedfileset.c.
References ereport, errcode(), errmsg(), ERROR, SharedFileSet::mutex, on_dsm_detach(), PointerGetDatum(), SharedFileSet::refcnt, SharedFileSetOnDetach(), SpinLockAcquire, SpinLockRelease, and success.
Referenced by ExecHashJoinInitializeWorker(), and tuplesort_attach_shared().
| void SharedFileSetDeleteAll | ( | SharedFileSet * | fileset | ) |
Definition at line 83 of file sharedfileset.c.
References FileSetDeleteAll(), and SharedFileSet::fs.
Referenced by ExecHashJoinReInitializeDSM().
| void SharedFileSetInit | ( | SharedFileSet * | fileset, |
| dsm_segment * | seg | ||
| ) |
Definition at line 38 of file sharedfileset.c.
References FileSetInit(), SharedFileSet::fs, SharedFileSet::mutex, on_dsm_detach(), PointerGetDatum(), SharedFileSet::refcnt, SharedFileSetOnDetach(), and SpinLockInit.
Referenced by ExecHashJoinInitializeDSM(), and tuplesort_initialize_shared().