[][src]Trait pgx::shmem::PgSharedMemoryInitialization

pub trait PgSharedMemoryInitialization {
    pub fn pg_init(&'static self);
pub fn shmem_init(&'static self); }

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

Loading content...

Implementors

impl<T> PgSharedMemoryInitialization for PgAtomic<T> where
    T: Atomic + Default
[src]

impl<T> PgSharedMemoryInitialization for PgLwLock<T> where
    T: Default + PGXSharedMemory + 'static, 
[src]

Loading content...