9 releases

0.1.8 Aug 28, 2025
0.1.7 Aug 20, 2025
0.1.1 Jan 9, 2025

#1343 in Database interfaces

Download history 381/week @ 2025-08-19 128/week @ 2025-08-26 12/week @ 2025-09-02 9/week @ 2025-09-30 2/week @ 2025-10-07

489 downloads per month

MIT license

62KB
1K SLoC

PgDog plugins

Documentation Latest crate

PgDog plugin system is based around shared libraries loaded at runtime. The plugins currently can only be written in Rust. This is because PgDog passes Rust-specific data types to plugin functions, and those cannot be easily made C ABI-compatible.

This crate implements the bridge between PgDog and plugins, making sure data types can be safely passed through the FFI.

Automatic checks include:

  • Rust compiler version check
  • pg_query version check

This crate should be linked at compile time against your plugins.

Writing plugins

See documentation for examples. Example plugins are available in GitHub as well.

License

This library is distributed under the MIT license. See LICENSE for details.

Dependencies

~10–14MB
~303K SLoC