mirror of
https://github.com/postgres/postgres.git
synced 2025-07-02 09:02:37 +03:00
Fix for aggreg problem and fmgr.c compile problems.
This commit is contained in:
@ -128,6 +128,7 @@ ExecAgg(Agg *node)
|
|||||||
for (i = 0; i < nagg; i++)
|
for (i = 0; i < nagg; i++)
|
||||||
{
|
{
|
||||||
aggregates[i] = lfirst(alist);
|
aggregates[i] = lfirst(alist);
|
||||||
|
aggregates[i]->aggno = i;
|
||||||
alist = lnext(alist);
|
alist = lnext(alist);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,12 +7,13 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* 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 <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
|
||||||
@ -81,7 +82,7 @@ fmgr_c(FmgrInfo *finfo,
|
|||||||
* Untrusted functions have very limited use and is clumsy. We
|
* Untrusted functions have very limited use and is clumsy. We
|
||||||
* just get rid of it.
|
* 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
|
void
|
||||||
fmgr_info(Oid procedureId, FmgrInfo *finfo)
|
fmgr_info(Oid procedureId, FmgrInfo *finfo)
|
||||||
{
|
{
|
||||||
func_ptr user_fn = NULL;
|
|
||||||
FmgrCall *fcp;
|
FmgrCall *fcp;
|
||||||
HeapTuple procedureTuple;
|
HeapTuple procedureTuple;
|
||||||
FormData_pg_proc *procedureStruct;
|
FormData_pg_proc *procedureStruct;
|
||||||
@ -195,7 +195,7 @@ fmgr_info(Oid procedureId, FmgrInfo *finfo)
|
|||||||
finfo->fn_addr =
|
finfo->fn_addr =
|
||||||
fmgr_lookupByName(procedureStruct->proname.data);
|
fmgr_lookupByName(procedureStruct->proname.data);
|
||||||
if (!finfo->fn_addr)
|
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);
|
procedureStruct->proname.data);
|
||||||
break;
|
break;
|
||||||
case ClanguageId:
|
case ClanguageId:
|
||||||
|
Reference in New Issue
Block a user