aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/define.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2001-09-08 01:10:21 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2001-09-08 01:10:21 +0000
commit02b1a7fd5160d4117973527dc6d4214cd225a97c (patch)
tree47cc4a70b26f65537003f4ee5404866a45087571 /src/backend/commands/define.c
parent6b9f94022c481fdcde45d491b61eddb414454aea (diff)
downloadpostgresql-02b1a7fd5160d4117973527dc6d4214cd225a97c.tar.gz
postgresql-02b1a7fd5160d4117973527dc6d4214cd225a97c.zip
Clean up some confusion about where and how to set whereToSendOutput.
We will no longer try to send elog messages to the client before we have initialized backend libpq (oops); however, reporting bogus commandline switches via elog does work now (not irrelevant, because of PGOPTIONS). Fix problem with inappropriate sending of checkpoint-process messages to stderr.
Diffstat (limited to 'src/backend/commands/define.c')
-rw-r--r--src/backend/commands/define.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/backend/commands/define.c b/src/backend/commands/define.c
index 947257b5e18..764cceff701 100644
--- a/src/backend/commands/define.c
+++ b/src/backend/commands/define.c
@@ -10,7 +10,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/commands/define.c,v 1.59 2001/09/06 02:07:42 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/commands/define.c,v 1.60 2001/09/08 01:10:20 tgl Exp $
*
* DESCRIPTION
* The "DefineFoo" routines take the parse tree and pick out the
@@ -50,7 +50,6 @@
#include "miscadmin.h"
#include "optimizer/cost.h"
#include "parser/parse_expr.h"
-#include "tcop/dest.h"
#include "utils/builtins.h"
#include "utils/syscache.h"
@@ -212,10 +211,9 @@ interpret_AS_clause(const char *languageName, const List *as,
/*
* CreateFunction
* Execute a CREATE FUNCTION utility statement.
- *
*/
void
-CreateFunction(ProcedureStmt *stmt, CommandDest dest)
+CreateFunction(ProcedureStmt *stmt)
{
char *probin_str;
@@ -338,8 +336,7 @@ CreateFunction(ProcedureStmt *stmt, CommandDest dest)
perbyte_cpu,
percall_cpu,
outin_ratio,
- stmt->argTypes,
- dest);
+ stmt->argTypes);
}