mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-28 11:55:03 +03:00 
			
		
		
		
	Show backend status on ps command line. Remove unused args from
pg_exec_query().
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -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); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user