An open API service indexing awesome lists of open source software.

https://github.com/adjust/wltree

adjust's patched version of postgres ltree
https://github.com/adjust/wltree

adjust-pg-extension

Last synced: about 1 year ago
JSON representation

adjust's patched version of postgres ltree

Awesome Lists containing this project

README

          

[![CI](https://github.com/adjust/wltree/actions/workflows/main.yml/badge.svg)](https://github.com/adjust/wltree/actions/workflows/main.yml)

## adjust ltree implementation

This is adevens patched version of Postgres ltree module.

Original written by Teodor Sigaev (teodor@sigaev.ru) and Oleg Bartunov (oleg@sai.msu.su)

It's different in using `::` instead of `.` as label separator.
And it allows to have special characters like `{ } ! *` in ltree labels.
You can match those label in ltree queries by escaping these characters:

```SQL
SELECT '!foo::{bar}::baz%'::ltree ~ '\!foo::\{bar\}::baz\%';
```

### Unsupported features

* Full-text queries a.k.a. ltxtquery currently does not support usage of escaped characters.