mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +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:
@ -82,8 +82,10 @@ typedef struct CustomPath
|
||||
by <literal>nodeToString</>, so that debugging routines that attempt to
|
||||
print the custom path will work as designed. <structfield>methods</> must
|
||||
point to a (usually statically allocated) object implementing the required
|
||||
custom path methods, of which there are currently only two, as further
|
||||
detailed below.
|
||||
custom path methods, of which there is currently only one. The
|
||||
<structfield>LibraryName</> and <structfield>SymbolName</> fields must also
|
||||
be initialized so that the dynamic loader can resolve them to locate the
|
||||
method table.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
@ -218,18 +220,6 @@ Node *(*CreateCustomScanState) (CustomScan *cscan);
|
||||
the <function>BeginCustomScan</> callback will be invoked to give the
|
||||
custom scan provider a chance to do whatever else is needed.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
<programlisting>
|
||||
void (*TextOutCustomScan) (StringInfo str,
|
||||
const CustomScan *node);
|
||||
</programlisting>
|
||||
Generate additional output when <function>nodeToString</> is invoked on
|
||||
this custom plan node. This callback is optional. Since
|
||||
<function>nodeToString</> will automatically dump all fields in the
|
||||
structure, including the substructure of the <quote>custom</> fields,
|
||||
there is usually not much need for this callback.
|
||||
</para>
|
||||
</sect2>
|
||||
</sect1>
|
||||
|
||||
|
Reference in New Issue
Block a user