jsonb icon indicating copy to clipboard operation
jsonb copied to clipboard

Postgresql compatibility

Open harmic opened this issue 11 months ago • 1 comments

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//

harmic avatar Dec 18 '24 06:12 harmic

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.

b41sh avatar Dec 20 '24 09:12 b41sh