[−][src]Trait pgx::shmem::PgSharedMemoryInitialization
A trait that types can implement to provide their own Postgres Shared Memory initialization process
Required methods
pub fn pg_init(&'static self)
[src]
Automatically called when the an extension is loaded. If using the pg_shmem_init!()
macro
in _PG_init()
, this is called automatically
pub fn shmem_init(&'static self)
[src]
Automatically called by the pg_shmem_init!()
macro, when Postgres is initializing its
shared memory system
Implementors
impl<T> PgSharedMemoryInitialization for PgAtomic<T> where
T: Atomic + Default,
[src]
T: Atomic + Default,
pub fn pg_init(&'static self)
[src]
pub fn shmem_init(&'static self)
[src]
impl<T> PgSharedMemoryInitialization for PgLwLock<T> where
T: Default + PGXSharedMemory + 'static,
[src]
T: Default + PGXSharedMemory + 'static,