diff options
author | Bruce Momjian <bruce@momjian.us> | 1998-06-04 17:26:49 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1998-06-04 17:26:49 +0000 |
commit | a576a60e3f24e6c7a81442f0e7c8615e43819d8a (patch) | |
tree | 3b8b6e688308ca2395b201102578aa99f4f0907f /src/backend/commands | |
parent | 99d21d5b62a54d64b95dc915a35fb35111bbc430 (diff) | |
download | postgresql-a576a60e3f24e6c7a81442f0e7c8615e43819d8a.tar.gz postgresql-a576a60e3f24e6c7a81442f0e7c8615e43819d8a.zip |
Show backend status on ps command line. Remove unused args from
pg_exec_query().
Diffstat (limited to 'src/backend/commands')
-rw-r--r-- | src/backend/commands/_deadcode/version.c | 6 | ||||
-rw-r--r-- | src/backend/commands/dbcommands.c | 6 | ||||
-rw-r--r-- | src/backend/commands/user.c | 10 |
3 files changed, 11 insertions, 11 deletions
diff --git a/src/backend/commands/_deadcode/version.c b/src/backend/commands/_deadcode/version.c index 1522bc40e13..7ae5a716013 100644 --- a/src/backend/commands/_deadcode/version.c +++ b/src/backend/commands/_deadcode/version.c @@ -10,7 +10,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/_deadcode/Attic/version.c,v 1.11 1998/01/05 16:39:07 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/_deadcode/Attic/version.c,v 1.12 1998/06/04 17:26:38 momjian Exp $ * * NOTES * At the point the version is defined, 2 physical relations are created @@ -95,7 +95,7 @@ eval_as_new_xact(char *query) * CommitTransactionCommand(); StartTransactionCommand(); */ CommandCounterIncrement(); - pg_exec_query(query, (char **) NULL, (Oid *) NULL, 0); + pg_exec_query(query); } #endif @@ -157,7 +157,7 @@ VersionCreate(char *vname, char *bname) sprintf(query_buf, "SELECT * INTO TABLE %s from %s where 1 =2", vname, bname); - pg_exec_query(query_buf, (char **) NULL, (Oid *) NULL, 0); + pg_exec_query(query_buf); /* * Creating the ``v_added'' relation diff --git a/src/backend/commands/dbcommands.c b/src/backend/commands/dbcommands.c index 44b19650e08..40cdd4d94e1 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.13 1998/04/27 04:05:11 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/dbcommands.c,v 1.14 1998/06/04 17:26:38 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -95,7 +95,7 @@ createdb(char *dbname, char *dbpath) sprintf(buf, "insert into pg_database (datname, datdba, datpath)" " values (\'%s\', \'%d\', \'%s\');", dbname, user_id, loc); - pg_exec_query(buf, (char **) NULL, (Oid *) NULL, 0); + pg_exec_query(buf); } void @@ -133,7 +133,7 @@ destroydb(char *dbname) */ sprintf(buf, "delete from pg_database where pg_database.oid = \'%d\'::oid", db_id); - pg_exec_query(buf, (char **) NULL, (Oid *) NULL, 0); + pg_exec_query(buf); /* * remove the data directory. If the DELETE above failed, this will diff --git a/src/backend/commands/user.c b/src/backend/commands/user.c index a5b1715be42..1f43be77d5d 100644 --- a/src/backend/commands/user.c +++ b/src/backend/commands/user.c @@ -65,7 +65,7 @@ UpdatePgPwdFile(char *sql) * file to its final name. */ sprintf(sql, "copy %s to '%s' using delimiters %s", ShadowRelationName, tempname, CRYPT_PWD_FILE_SEPCHAR); - pg_exec_query(sql, (char **) NULL, (Oid *) NULL, 0); + pg_exec_query(sql); rename(tempname, filename); free((void *) tempname); @@ -196,7 +196,7 @@ DefineUser(CreateUserStmt *stmt) } strcat(sql_end, ")"); - pg_exec_query(sql, (char **) NULL, (Oid *) NULL, 0); + pg_exec_query(sql); /* * Add the stuff here for groups. @@ -328,7 +328,7 @@ AlterUser(AlterUserStmt *stmt) { sql_end += strlen(sql_end); sprintf(sql_end, " where usename = '%s'", stmt->user); - pg_exec_query(sql, (char **) NULL, (Oid *) NULL, 0); + pg_exec_query(sql); } /* do the pg_group stuff here */ @@ -450,7 +450,7 @@ RemoveUser(char *user) elog(NOTICE, "Dropping database %s", dbase[ndbase]); sprintf(sql, "drop database %s", dbase[ndbase]); free((void *) dbase[ndbase]); - pg_exec_query(sql, (char **) NULL, (Oid *) NULL, 0); + pg_exec_query(sql); } if (dbase) free((void *) dbase); @@ -477,7 +477,7 @@ RemoveUser(char *user) * Remove the user from the pg_shadow table */ sprintf(sql, "delete from %s where usename = '%s'", ShadowRelationName, user); - pg_exec_query(sql, (char **) NULL, (Oid *) NULL, 0); + pg_exec_query(sql); UpdatePgPwdFile(sql); |