diff options
author | Bruce Momjian <bruce@momjian.us> | 1999-03-16 03:24:18 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1999-03-16 03:24:18 +0000 |
commit | 434762b55924c1414d5d66590a08dcabe865c9ac (patch) | |
tree | 5c59644da4f4fd2eb9ee9f832c3a5e8f9800cd2f /src/backend/commands/dbcommands.c | |
parent | 787786085f42467fba1568e8524e33738b9d641f (diff) | |
download | postgresql-434762b55924c1414d5d66590a08dcabe865c9ac.tar.gz postgresql-434762b55924c1414d5d66590a08dcabe865c9ac.zip |
Here is a patch.
I have changed to call pg_exec_query_dest() instead of pg_exec_query().
Thanks.
Hiroshi Inoue
Diffstat (limited to 'src/backend/commands/dbcommands.c')
-rw-r--r-- | src/backend/commands/dbcommands.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/backend/commands/dbcommands.c b/src/backend/commands/dbcommands.c index 89813430d27..1f29ce9c36b 100644 --- a/src/backend/commands/dbcommands.c +++ b/src/backend/commands/dbcommands.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/dbcommands.c,v 1.31 1999/03/15 14:07:44 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/dbcommands.c,v 1.32 1999/03/16 03:24:16 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -24,13 +24,13 @@ #include "catalog/catname.h" #include "catalog/pg_database.h" #include "catalog/pg_shadow.h" -#include "commands/dbcommands.h" #include "fmgr.h" #include "miscadmin.h" /* for DataDir */ #include "storage/bufmgr.h" #include "storage/fd.h" #include "storage/lmgr.h" #include "tcop/tcopprot.h" +#include "commands/dbcommands.h" #include "utils/rel.h" #include "utils/syscache.h" @@ -42,7 +42,7 @@ static HeapTuple get_pg_dbtup(char *command, char *dbname, Relation dbrel); static void stop_vacuum(char *dbpath, char *dbname); void -createdb(char *dbname, char *dbpath, int encoding) +createdb(char *dbname, char *dbpath, int encoding, CommandDest dest) { Oid db_id; int4 user_id; @@ -87,11 +87,11 @@ createdb(char *dbname, char *dbpath, int encoding) "insert into pg_database (datname, datdba, encoding, datpath)" " values ('%s', '%d', '%d', '%s');", dbname, user_id, encoding, loc); - pg_exec_query(buf); + pg_exec_query_dest(buf, dest, false); } void -destroydb(char *dbname) +destroydb(char *dbname, CommandDest dest) { int4 user_id; Oid db_id; @@ -123,7 +123,7 @@ destroydb(char *dbname) */ snprintf(buf, 512, "delete from pg_database where pg_database.oid = \'%d\'::oid", db_id); - pg_exec_query(buf); + pg_exec_query_dest(buf ,dest, false); /* drop pages for this database that are in the shared buffer cache */ DropBuffers(db_id); |