#trusted #postgresql #spi #type #trigger #set #handler #authors #exports


Minimal set of pgrx rexports for plrust, which the authors have deemed trusted

5 stable releases

new 1.1.3 May 24, 2023
1.1.2 May 14, 2023
1.1.1 Apr 27, 2023
1.1.0 Apr 25, 2023
1.0.0 Apr 24, 2023

#393 in Algorithms

Download history 22/week @ 2023-04-19 42/week @ 2023-04-26 11/week @ 2023-05-03 28/week @ 2023-05-10 7/week @ 2023-05-17

101 downloads per month


104 lines

crates.io badge docs.rs badge

plrust-trusted-pgrx is a re-export crate based on pgrx which exports the minimal set of capabilities necessary to compile plrust user functions along with safe access to various parts of Postgres including some data types, logging, Spi, and triggers.

You might be tempted to use this for your own pgrx extension development, but you shouldn't. It's intended for use only with plrust.


plrust-trusted-pgrx is a re-export crate based on pgrx which exposes the minimal set of pgrx internals necessary for plrust function compilation. plrust-trusted-pgrx also includes a number of Rust types for interoperating with Postgres types, access to Postgres' "SPI", logging, and trigger support.


~519K SLoC