Conversation
Port Greengage commit 961caacc91a254f6c262a6dee2eff63080e64d34 to REL_2_STABLE. Adapt the protocol parser and transaction hooks to Cloudberry and allocate metadata chunks in TopTransactionContext without changing PGresult allocation.
|
why |
|
Please, avoid brining external conventions like gg. It's CBDB. |
|
@reshke, we want maintain pxf-iceberg from greengage. We have also PR in pxf e.g. apache/cloudberry-pxf#186.
Discussed we need the feature. |
|
@x4m, yup, thanks for your comments, prefix gg I gonna fixing and other oddities. I agree about the "gross abstraction layer violation" I will fix after the complete cherry-pick and functionality testing. |
Port Greengage commit GreengageDB/greengage@961caac to
REL_2_STABLE. Adapt the protocol parser and transaction hooks to Cloudberry and allocate metadata chunks in TopTransactionContext without changing PGresult allocation.The data is sent using direct
libpqmessages withMas a message type. Format of the message is pretty simple -- just message length and message body.To send messages there is a new API function
pq_metadatasendwhich can be called from an extension.The messages are processed on the coordinator side, and collected into a linked list
ggMetadataListin thecdbconn.c.The code for message processing is inspired by the notice processing mechanism which works in a similar way. To lower the number of allocations, flexible array is used.