pub trait PgSharedMemoryInitialization {
    // Required methods
    fn pg_init(&'static self);
    fn shmem_init(&'static self);
}
Expand description

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

Required Methods§

source

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

source

fn shmem_init(&'static self)

Automatically called by the pg_shmem_init!() macro, when Postgres is initializing its shared memory system

Implementors§