/*
* FDW routines
*/
-static void BeginScan(ForeignScanState *scanstate);
-static void Iterate(ForeignScanState *scanstate);
-static void Close(ForeignScanState *scanstate);
-static void ReOpen(ForeignScanState *scanstate);
-static void EstimateCosts(ForeignPath *path, PlannerInfo *root, RelOptInfo *baserel);
+static void fileBeginScan(ForeignScanState *scanstate);
+static void fileIterate(ForeignScanState *scanstate);
+static void fileClose(ForeignScanState *scanstate);
+static void fileReOpen(ForeignScanState *scanstate);
+static void fileEstimateCosts(ForeignPath *path, PlannerInfo *root, RelOptInfo *baserel);
/*
* Check if the provided option is one of valid options.
{
NULL, /* ConnectServer */
NULL, /* FreeFSConnection */
- EstimateCosts,
+ fileEstimateCosts,
NULL, /* Open */
- BeginScan,
- Iterate,
- Close,
- ReOpen,
+ fileBeginScan,
+ fileIterate,
+ fileClose,
+ fileReOpen,
};
PG_RETURN_POINTER(&file_fdw_routine);
* - initiate access to the file, but we have nothing to do
*/
static void
-BeginScan(ForeignScanState *scanstate)
+fileBeginScan(ForeignScanState *scanstate)
{
FileState fstate;
* - create HeapTuple from the record in the file.
*/
static void
-Iterate(ForeignScanState *scanstate)
+fileIterate(ForeignScanState *scanstate)
{
FileState fstate = (FileState) scanstate->reply;
TupleTableSlot *slot = scanstate->ss.ss_ScanTupleSlot;
* Finish scanning foreign table and dispose objects used for this scan.
*/
static void
-Close(ForeignScanState *scanstate)
+fileClose(ForeignScanState *scanstate)
{
FileState fstate = (FileState) scanstate->reply;
* Execute query with new parameter.
*/
static void
-ReOpen(ForeignScanState *scanstate)
+fileReOpen(ForeignScanState *scanstate)
{
FileState fstate = (FileState) scanstate->reply;
* Estimate costs of scanning on a foreign table.
*/
static void
-EstimateCosts(ForeignPath *path, PlannerInfo *root, RelOptInfo *baserel)
+fileEstimateCosts(ForeignPath *path, PlannerInfo *root, RelOptInfo *baserel)
{
RangeTblEntry *rte;
ForeignTable *table;