MCPcopy Create free account
hub / github.com/apache/cloudberry / printRemoteParam

Function printRemoteParam

contrib/postgres_fdw/deparse.c:3263–3271  ·  view source on GitHub ↗

* Print the representation of a parameter to be sent to the remote side. * * Note: we always label the Param's type explicitly rather than relying on * transmitting a numeric type OID in PQexecParams(). This allows us to * avoid assuming that types have the same OIDs on the remote side as they * do locally --- they need only have the same names. */

Source from the content-addressed store, hash-verified

3261 * do locally --- they need only have the same names.
3262 */
3263static void
3264printRemoteParam(int paramindex, Oid paramtype, int32 paramtypmod,
3265 deparse_expr_cxt *context)
3266{
3267 StringInfo buf = context->buf;
3268 char *ptypename = deparse_type_name(paramtype, paramtypmod);
3269
3270 appendStringInfo(buf, "$%d::%s", paramindex, ptypename);
3271}
3272
3273/*
3274 * Print the representation of a placeholder for a parameter that will be

Callers 2

deparseVarFunction · 0.85
deparseParamFunction · 0.85

Calls 2

deparse_type_nameFunction · 0.85
appendStringInfoFunction · 0.85

Tested by

no test coverage detected