Fix for aggreg problem and fmgr.c compile problems.
authorBruce Momjian
Thu, 15 Jan 1998 22:31:33 +0000 (22:31 +0000)
committerBruce Momjian
Thu, 15 Jan 1998 22:31:33 +0000 (22:31 +0000)
src/backend/executor/nodeAgg.c
src/backend/utils/fmgr/fmgr.c

index 91c5e43b6136fb5adabd06c48f63db6e7c94698c..a319f9d6cf2b54b453bba20c0ccd34a7d2d22f1b 100644 (file)
@@ -128,6 +128,7 @@ ExecAgg(Agg *node)
    for (i = 0; i < nagg; i++)
    {
        aggregates[i] = lfirst(alist);
+       aggregates[i]->aggno = i;
        alist = lnext(alist);
    }
 
index 6a11bda292c295c3c2732eb4ca4038c6cb445f81..08302c341709f22cfdff0c6159146a7d16251ac2 100644 (file)
@@ -7,12 +7,13 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/utils/fmgr/fmgr.c,v 1.10 1998/01/15 19:45:58 pgsql Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/utils/fmgr/fmgr.c,v 1.11 1998/01/15 22:31:33 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
 #include 
 #include 
+#include 
 
 #include "postgres.h"
 
@@ -81,7 +82,7 @@ fmgr_c(FmgrInfo *finfo,
         * Untrusted functions have very limited use and is clumsy. We
         * just get rid of it.
         */
-       elog(WARN, "internal error: untrusted function not supported.");
+       elog(ERROR, "internal error: untrusted function not supported.");
    }
 
    /*
@@ -159,7 +160,6 @@ fmgr_c(FmgrInfo *finfo,
 void
 fmgr_info(Oid procedureId, FmgrInfo *finfo)
 {
-   func_ptr    user_fn = NULL;
    FmgrCall   *fcp;
    HeapTuple   procedureTuple;
    FormData_pg_proc *procedureStruct;
@@ -195,7 +195,7 @@ fmgr_info(Oid procedureId, FmgrInfo *finfo)
                finfo->fn_addr = 
                            fmgr_lookupByName(procedureStruct->proname.data);
                if (!finfo->fn_addr)
-                   elog(WARN, "fmgr_info: function %s: not in internal table",
+                   elog(ERROR, "fmgr_info: function %s: not in internal table",
                                procedureStruct->proname.data);
                break;
            case ClanguageId: