[PATCH] ltree, lquery, and ltxtquery binary protocol support

Nino Floris <mail@ninofloris.com>

From: Nino Floris <mail@ninofloris.com>
To: pgsql-hackers@lists.postgresql.org
Date: 2019-08-18T14:56:27Z
Lists: pgsql-hackers

Attachments

Hi,

Attached is a patch to support send/recv on ltree, lquery and ltxtquery.
I'm a contributor to the Npgsql .NET PostgreSQL driver and we'll be
the first to have official support once those ltree changes have been
released.
You can find the driver support work here, the tests verify a
roundtrip for each of the types is succesful.
https://github.com/NinoFloris/npgsql/tree/label-tree-support

Any feedback would be highly appreciated.

Greetings,
Nino Floris

Commits

  1. Add support for binary I/O of ltree, lquery, and ltxtquery types.

  2. Allow ALTER TYPE to change some properties of a base type.