[GSoC] json helper functions - Mailing list pgsql-hackers

From Charles Cui
Subject [GSoC] json helper functions
Date
Msg-id CA+SXE9vDewUELxYsoyR6iBs-Z=6h8v-ufiZZjaZndXK=p+OBRg@mail.gmail.com
Whole thread Raw
Responses Re: [GSoC] json helper functions  (Andrew Dunstan <andrew.dunstan@2ndquadrant.com>)
List pgsql-hackers
Hi mentors and hackers,

    I am working on providing a new plugin where creates new data type (thrift). What I am currently planning is to translate cstring to byte for thrift_in functions. The cstring should be json format. When I looking at json helper functions I find the header 

./include/server/utils/json.h

where all functions have the signature of Datum function(PG_FUNCTION_ARGS).This signature causes extra overhead when writing the code because I need to convert my intermediate variables to the required format. Wondering are there any json helpers that are used by postgresql and plugins can directly call? 



Thanks Charles

pgsql-hackers by date:

Previous
From: David Rowley
Date:
Subject: Re: Performance regression with PostgreSQL 11 and partitioning
Next
From: Antonin Houska
Date:
Subject: Incorrect visibility test function assigned to snapshot