https://github.com/ildus/decoder_json
PostgreSQL logical decoder to JSON
https://github.com/ildus/decoder_json
Last synced: 5 months ago
JSON representation
PostgreSQL logical decoder to JSON
- Host: GitHub
- URL: https://github.com/ildus/decoder_json
- Owner: ildus
- License: unlicense
- Created: 2015-02-12T18:56:15.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2016-08-27T04:28:55.000Z (over 9 years ago)
- Last Synced: 2025-08-16T09:57:41.609Z (5 months ago)
- Language: C
- Homepage:
- Size: 17.6 KB
- Stars: 26
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# decoder_json
A PostgreSQL logical decoder output plugin to deliver data in JSON
# Requirements:
* PostgreSQL 9.4+
* libjansson (for JSON support)
# Building
```
make deps
make
```
# Testing
Add to your postgresql.conf lines from logical.conf. Then run:
```
sudo chmod +x `pg_config --pkglibdir`
make test
```
# TODO:
Use built-in JSON from PostgreSQL for output generation.
# Useful links
* https://github.com/xstevens/decoderbufs - uses Protocol Buffers
* https://github.com/michaelpq/pg_plugins/tree/master/decoder_raw - generates SQL queries
* http://git.postgresql.org/gitweb/?p=postgresql.git;a=tree;f=contrib/test_decoding;h=ed74920f61b3440d2d880a8fdfc74ec8d12fcd35;hb=HEAD - sample decoder from postgresql sources