mirror of
https://github.com/postgres/postgres.git
synced 2025-07-18 17:42:25 +03:00
Provide readfuncs support for custom scans.
Commit a0d9f6e434
added this support for
all other plan node types; this fills in the gap.
Since TextOutCustomScan complicates this and is pretty well useless,
remove it.
KaiGai Kohei, with some modifications by me.
This commit is contained in:
@ -613,10 +613,11 @@ _outCustomScan(StringInfo str, const CustomScan *node)
|
||||
WRITE_NODE_FIELD(custom_private);
|
||||
WRITE_NODE_FIELD(custom_scan_tlist);
|
||||
WRITE_BITMAPSET_FIELD(custom_relids);
|
||||
/* Dump library and symbol name instead of raw pointer */
|
||||
appendStringInfoString(str, " :methods ");
|
||||
_outToken(str, node->methods->CustomName);
|
||||
if (node->methods->TextOutCustomScan)
|
||||
node->methods->TextOutCustomScan(str, node);
|
||||
_outToken(str, node->methods->LibraryName);
|
||||
appendStringInfoChar(str, ' ');
|
||||
_outToken(str, node->methods->SymbolName);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Reference in New Issue
Block a user