PostgreSQL Source Code git master
|
#include "postgres.h"
#include <limits.h>
#include "storage/dsm.h"
#include "storage/sharedfileset.h"
Go to the source code of this file.
Functions | |
static void | SharedFileSetOnDetach (dsm_segment *segment, Datum datum) |
void | SharedFileSetInit (SharedFileSet *fileset, dsm_segment *seg) |
void | SharedFileSetAttach (SharedFileSet *fileset, dsm_segment *seg) |
void | SharedFileSetDeleteAll (SharedFileSet *fileset) |
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().
|
static |
Definition at line 96 of file sharedfileset.c.
References Assert, DatumGetPointer(), FileSetDeleteAll(), SharedFileSet::fs, SharedFileSet::mutex, SharedFileSet::refcnt, SpinLockAcquire, and SpinLockRelease.
Referenced by SharedFileSetAttach(), and SharedFileSetInit().