Skip to content

Label tree support - #3312

Merged
YohDeadfall merged 10 commits into
npgsql:mainfrom
YohDeadfall:ltree-binary
Nov 10, 2020
Merged

YohDeadfall merged 10 commits into
npgsql:mainfrom
YohDeadfall:ltree-binary

Conversation

@YohDeadfall

Copy link
Copy Markdown
Contributor

Based on #2991 by @NinoFloris:

https://www.postgresql.org/docs/13/release-13.html

Add support for binary I/O of ltree, lquery, and ltxtquery types (Nino Floris)

As ltree now supports binary protocol in beta 1 of pg 13 I thought it time to dig up this branch :)
It implements the wire format (one byte for version, binary string afterwards) and maps this to a string. We may want to parse it into segments for IEnumerable/string[] support.

I'm not sure what's with all the regions so I just followed the trend here.

Fixes #699.

@YohDeadfall
YohDeadfall requested a review from roji as a code owner November 9, 2020 16:10

@roji roji left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (once the build passes of course)

Comment thread .devcontainer/db/init-db.sh Resolved
pgsql/bin/psql -U postgres -c "CREATE EXTENSION postgis" npgsql_tests
pgsql/bin/psql -U postgres -c "CREATE EXTENSION hstore" npgsql_tests
pgsql/bin/psql -U postgres -c "CREATE EXTENSION citext" npgsql_tests
pgsql/bin/psql -U postgres -c "CREATE EXTENSION hstore" npgsql_tests

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alphabetical huh? :)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, like things to be clean.

@YohDeadfall
YohDeadfall merged commit ed2f47d into npgsql:main Nov 10, 2020
@YohDeadfall
YohDeadfall deleted the ltree-binary branch November 10, 2020 13:06
@YohDeadfall YohDeadfall mentioned this pull request Nov 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for the ltree contrib type

3 participants