/pg_examples

Repository with PostgreSQL example extensions mostly used for testing.

Primary LanguageCApache License 2.0Apache-2.0

PostgreSQL Examples

Repository with PostgreSQL example extensions mostly used for testing. It contains experiments on permission handling and extensions, some tests on how to use internal functions and how to accomplish different results, and example solutions for how to solve particular problems.

Building and installing

To build, install, and run tests

make
[sudo] make install
make installcheck

Documentation

  • Extension reporter is an example of how to run background worker regularly.
  • Extension simple demonstrates a problem with permissions and extensions that was brought up in pgsql-bugs
  • Extension tagged demonstrates how to crate polymorphic objects, for example, arrays that can contain objects of different dynamic types.