diff options
author | Robert Haas <rhaas@postgresql.org> | 2015-11-12 07:40:31 -0500 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2015-11-12 07:40:31 -0500 |
commit | a05dc4d7fd57d4ae084c1f0801973e5c1a1aa26e (patch) | |
tree | a439fca900eace722c121012691ddfb08750c7b4 /src/backend/nodes/outfuncs.c | |
parent | 39b9978d9cac34ad799a5fa3ff3846f3e0372b0a (diff) | |
download | postgresql-a05dc4d7fd57d4ae084c1f0801973e5c1a1aa26e.tar.gz postgresql-a05dc4d7fd57d4ae084c1f0801973e5c1a1aa26e.zip |
Provide readfuncs support for custom scans.
Commit a0d9f6e434bb56f7e5441b7988f3982feead33b3 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.
Diffstat (limited to 'src/backend/nodes/outfuncs.c')
-rw-r--r-- | src/backend/nodes/outfuncs.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/backend/nodes/outfuncs.c b/src/backend/nodes/outfuncs.c index c230ee8296c..012c14bf29a 100644 --- a/src/backend/nodes/outfuncs.c +++ b/src/backend/nodes/outfuncs.c @@ -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 |