jsonb
jsonb copied to clipboard
Postgresql compatibility
Hi,
Is this library compatible with the binary format used by Postgresql?
The readme says it is "inspired by" Postgresql, and the description of the format sounds very similar, but it does not say if it is binary compatible (or even if that is a goal of the project).
The reason I ask is that I am writing a postgresql user defined function in rust and I would like a zero-copy way to work with jsonb fields. In the tests I have done so far I have not been able to decode any jsonb values that were encoded by Postgresql.
Thanks//
Hi @harmic Thanks for your attention, this library is indeed inspired by PostgreSQL's jsonb. The basic encoding structure is the same, but there are some differences in the specific implementation. We will consider using dialects to be compatible with more encoding formats, including PostgreSQL, in the near future.