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

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

A trait that types can implement to provide their own Postgres Shared Memory initialization process

Required methods

fn pg_init(&'static self)

Automatically called when the an extension is loaded. If using the pg_shmem_init!() macro in _PG_init(), this is called automatically

fn shmem_init(&'static self)

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...