Fix comments.
authorShigeru Hanada <hanada@metrosystems.co.jp>
Thu, 24 Feb 2011 10:46:50 +0000 (19:46 +0900)
committerShigeru Hanada <hanada@metrosystems.co.jp>
Thu, 24 Feb 2011 10:46:50 +0000 (19:46 +0900)
contrib/postgresql_fdw/postgresql_fdw.c

index 7211ce4df96b0da3328b08c70d2a499c57f76220..fd8a4d5ed37389da50e59481e923ec24070921f5 100644 (file)
@@ -47,7 +47,7 @@ extern Datum postgresql_fdw_handler(PG_FUNCTION_ARGS);
  * FDW routines
  */
 static FdwPlan *pgPlanForeignScan(Oid foreigntableid, PlannerInfo *root,
-             RelOptInfo *baserel);
+                                 RelOptInfo *baserel);
 static void pgExplainForeignScan(ForeignScanState *node,
                                 struct ExplainState *es);
 static void pgBeginForeignScan(ForeignScanState *node, int eflags);
@@ -111,6 +111,10 @@ postgresql_fdw_handler(PG_FUNCTION_ARGS)
    PG_RETURN_POINTER(fdwroutine);
 }
 
+/*
+ * pgPlanForeignScan
+ *     Create FdwPlan for the scan
+ */
 static FdwPlan *
 pgPlanForeignScan(Oid foreigntableid, PlannerInfo *root, RelOptInfo *baserel)
 {
@@ -377,12 +381,11 @@ deparseSql(Oid foreigntableid, PlannerInfo *root, RelOptInfo *baserel)
    {
        Var *var;
 
-       /* Separete columns with comma. */
        if (!first)
            appendStringInfoString(&sql, ", ");
        first = false;
 
-       /* Use "NULL" for unused columns.*/
+       /* Use "NULL" for unused columns. */
        foreach (lc, attr_used)
        {
            var = lfirst(lc);