mirror of
https://github.com/postgres/postgres.git
synced 2025-07-18 17:42:25 +03:00
Rework custom scans to work more like the new extensible node stuff.
Per discussion, the new extensible node framework is thought to be better designed than the custom path/scan/scanstate stuff we added in PostgreSQL 9.5. Rework the latter to be more like the former. This is not backward-compatible, but we generally don't promise that for C APIs, and there probably aren't many people using this yet anyway. KaiGai Kohei, reviewed by Petr Jelinek and me. Some further cosmetic changes by me.
This commit is contained in:
@ -632,11 +632,9 @@ _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 */
|
||||
/* CustomName is a key to lookup CustomScanMethods */
|
||||
appendStringInfoString(str, " :methods ");
|
||||
_outToken(str, node->methods->LibraryName);
|
||||
appendStringInfoChar(str, ' ');
|
||||
_outToken(str, node->methods->SymbolName);
|
||||
_outToken(str, node->methods->CustomName);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Reference in New Issue
Block a user