This directory contains examples of how to work with various aspects of pgrx.
- arrays/: Working with Arrays
- bad_ideas/: Some "bad ideas" to do in Postgres extensions
- bgworker/: A simple Background Worker example
- bytea/: Working with Postgres'
byteatype asVec<u8>and&[u8]in Rust - custom_types/: Create your own custom Postgres types backed by Rust structs/enums
- errors/: Error handling using Postgres or Rust errors/panics
- operators/: Creating operator functions and associated
CREATE OPERATOR/OPERATOR CLASS/OPERATOR FAMILYDDL - shmem/: Postgres Shared Memory support
- schemas/: How
pgrxuses Postgres schemas - srf/: Set-Returning-Functions
- spi/: Using Postgres' Server Programming Interface (SPI)
- strings/: Using Postgres
text/varlenatypes as RustStrings and&strs