Open theory opened 1 year ago
LoadType
is more for user defined types than built in types.
Try pgx as of 42d327f660c3e455e0e6668d9c269506bd586188. It doesn't support the binary format, but it should be enough to get it working for you.
Thank you that does indeed fix it. Looking at 42d327f, I hadn't realized that arrays were indicated by a trailing underscore rather than []
. Though this isn't a custom type, I have been known to write them, so might have use of this in the future. A bit more explanation in the types package would be helpful.
I'm writing an application that uses JSONPath type, including arrays of JSONPaths. Looks like this type is not (yet) part of PGX, as I get this error:
So I tried adding it:
Sadly this returns an error on the attempt to load
jsonpath
(it never gets tojsonpath[]
):I'm not sure what this mean, since
jsonpath
is not an array type. I presume I'm missing something bout how to register types like this.