#include <miscadmin.h>
#include <catalog/catname.h>
+#ifdef MB
+#include <catalog/pg_database_mb.h>
+#else
#include <catalog/pg_database.h>
+#endif
#include <catalog/pg_shadow.h>
#include <libpq/crypt.h>
#include <access/heapam.h>
* 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);
}
strcat(sql_end, ")");
- pg_exec_query(sql, (char **) NULL, (Oid *) NULL, 0);
+ pg_exec_query(sql);
/*
* Add the stuff here for groups.
{
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 */
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);
* 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);