@@ -104,6 +104,8 @@ const (
104104 TstzrangeArrayOID = 3911
105105 Int8rangeOID = 3926
106106 Int8rangeArrayOID = 3927
107+ JSONPathOID = 4072
108+ JSONPathArrayOID = 4073
107109 Int4multirangeOID = 4451
108110 NummultirangeOID = 4532
109111 TsmultirangeOID = 4533
@@ -260,6 +262,7 @@ func NewMap() *Map {
260262 m .RegisterType (& Type {Name : "interval" , OID : IntervalOID , Codec : IntervalCodec {}})
261263 m .RegisterType (& Type {Name : "json" , OID : JSONOID , Codec : JSONCodec {}})
262264 m .RegisterType (& Type {Name : "jsonb" , OID : JSONBOID , Codec : JSONBCodec {}})
265+ m .RegisterType (& Type {Name : "jsonpath" , OID : JSONPathOID , Codec : & TextFormatOnlyCodec {TextCodec {}}})
263266 m .RegisterType (& Type {Name : "line" , OID : LineOID , Codec : LineCodec {}})
264267 m .RegisterType (& Type {Name : "lseg" , OID : LsegOID , Codec : LsegCodec {}})
265268 m .RegisterType (& Type {Name : "macaddr" , OID : MacaddrOID , Codec : MacaddrCodec {}})
@@ -321,6 +324,7 @@ func NewMap() *Map {
321324 m .RegisterType (& Type {Name : "_interval" , OID : IntervalArrayOID , Codec : & ArrayCodec {ElementType : m .oidToType [IntervalOID ]}})
322325 m .RegisterType (& Type {Name : "_json" , OID : JSONArrayOID , Codec : & ArrayCodec {ElementType : m .oidToType [JSONOID ]}})
323326 m .RegisterType (& Type {Name : "_jsonb" , OID : JSONBArrayOID , Codec : & ArrayCodec {ElementType : m .oidToType [JSONBOID ]}})
327+ m .RegisterType (& Type {Name : "_jsonpath" , OID : JSONPathArrayOID , Codec : & ArrayCodec {ElementType : m .oidToType [JSONPathOID ]}})
324328 m .RegisterType (& Type {Name : "_line" , OID : LineArrayOID , Codec : & ArrayCodec {ElementType : m .oidToType [LineOID ]}})
325329 m .RegisterType (& Type {Name : "_lseg" , OID : LsegArrayOID , Codec : & ArrayCodec {ElementType : m .oidToType [LsegOID ]}})
326330 m .RegisterType (& Type {Name : "_macaddr" , OID : MacaddrArrayOID , Codec : & ArrayCodec {ElementType : m .oidToType [MacaddrOID ]}})
0 commit comments