- Do not display a response.
+ Do not display progress messages.
-
-
-
-
- Do not display a response.
-
-
-
-
-
-
-
-
-
- Do not display a response.
-
-
-
-
-
-
-
-
- Do not display a response.
-
-
-
-
-
-
-
-
- Do not display a response.
-
-
-
-
-
+
+
- Reindex database's system catalogs.
+ Specifies the name of the database to be reindexed.
+ If this is not specified and (or
+ ) is not used, the database name is read
+ from the environment variable PGDATABASE. If
+ that is not set, the user name specified for the connection is
+ used.
-
-
+
+
- Reindex table only.
+ Echo the commands that
reindexdb generates
+ and sends to the server.
-
-
+
+
- Specifies the name of the database to be reindexed.
- If this is not specified and (or
- ) is not used, the database name is read
- from the environment variable PGDATABASE. If
- that is not set, the user name specified for the connection is
- used.
+ Do not display progress messages.
-
-
+
+
- Echo the commands that
reindexdb generates
- and sends to the server.
+ Reindex database's system catalogs.
-
-
+
+
- Do not display a response.
+ Reindex table only.
-
- Do not display a response.
+ Do not display progress messages.
*
* Portions Copyright (c) 2002-2007, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/bin/scripts/clusterdb.c,v 1.17 2007/04/09 18:21:22 mha Exp $
+ * $PostgreSQL: pgsql/src/bin/scripts/clusterdb.c,v 1.18 2007/06/04 10:02:40 petere Exp $
*
*-------------------------------------------------------------------------
*/
static void cluster_one_database(const char *dbname, const char *table,
const char *host, const char *port,
const char *username, bool password,
- const char *progname, bool echo, bool quiet);
+ const char *progname, bool echo);
static void cluster_all_databases(const char *host, const char *port,
const char *username, bool password,
const char *progname, bool echo, bool quiet);
cluster_one_database(dbname, table,
host, port, username, password,
- progname, echo, quiet);
+ progname, echo);
}
exit(0);
cluster_one_database(const char *dbname, const char *table,
const char *host, const char *port,
const char *username, bool password,
- const char *progname, bool echo, bool quiet)
+ const char *progname, bool echo)
{
PQExpBufferData sql;
}
PQfinish(conn);
termPQExpBuffer(&sql);
-
- if (!quiet)
- {
- puts("CLUSTER");
- fflush(stdout);
- }
}
char *dbname = PQgetvalue(result, i, 0);
if (!quiet)
- fprintf(stderr, _("%s: clustering database \"%s\"\n"), progname, dbname);
+ {
+ printf(_("%s: clustering database \"%s\"\n"), progname, dbname);
+ fflush(stdout);
+ }
cluster_one_database(dbname, NULL,
host, port, username, password,
- progname, echo, quiet);
+ progname, echo);
}
PQclear(result);
* Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/bin/scripts/createdb.c,v 1.22 2007/01/05 22:19:50 momjian Exp $
+ * $PostgreSQL: pgsql/src/bin/scripts/createdb.c,v 1.23 2007/06/04 10:02:40 petere Exp $
*
*-------------------------------------------------------------------------
*/
char *username = NULL;
bool password = false;
bool echo = false;
- bool quiet = false;
char *owner = NULL;
char *tablespace = NULL;
char *template = NULL;
echo = true;
break;
case 'q':
- quiet = true;
+ /* obsolete; remove in 8.4 */
break;
case 'O':
owner = optarg;
PQclear(result);
PQfinish(conn);
- if (!quiet)
- {
- puts("CREATE DATABASE");
- fflush(stdout);
- }
-
if (comment)
{
conn = connectDatabase(dbname, host, port, username, password, progname);
PQclear(result);
PQfinish(conn);
- if (!quiet)
- {
- puts("COMMENT");
- fflush(stdout);
- }
}
exit(0);
printf(_(" -O, --owner=OWNER database user to own the new database\n"));
printf(_(" -T, --template=TEMPLATE template database to copy\n"));
printf(_(" -e, --echo show the commands being sent to the server\n"));
- printf(_(" -q, --quiet don't write any messages\n"));
printf(_(" --help show this help, then exit\n"));
printf(_(" --version output version information, then exit\n"));
printf(_("\nConnection options:\n"));
* Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/bin/scripts/createuser.c,v 1.35 2007/01/05 22:19:50 momjian Exp $
+ * $PostgreSQL: pgsql/src/bin/scripts/createuser.c,v 1.36 2007/06/04 10:02:40 petere Exp $
*
*-------------------------------------------------------------------------
*/
char *username = NULL;
bool password = false;
bool echo = false;
- bool quiet = false;
char *conn_limit = NULL;
bool pwprompt = false;
char *newpassword = NULL;
echo = true;
break;
case 'q':
- quiet = true;
+ /* obsolete; remove in 8.4 */
break;
case 'd':
createdb = TRI_YES;
PQclear(result);
PQfinish(conn);
- if (!quiet)
- {
- puts("CREATE ROLE");
- fflush(stdout);
- }
exit(0);
}
printf(_(" -E, --encrypted encrypt stored password\n"));
printf(_(" -N, --unencrypted do not encrypt stored password\n"));
printf(_(" -e, --echo show the commands being sent to the server\n"));
- printf(_(" -q, --quiet don't write any messages\n"));
printf(_(" --help show this help, then exit\n"));
printf(_(" --version output version information, then exit\n"));
printf(_("\nConnection options:\n"));
* Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/bin/scripts/dropdb.c,v 1.19 2007/01/05 22:19:50 momjian Exp $
+ * $PostgreSQL: pgsql/src/bin/scripts/dropdb.c,v 1.20 2007/06/04 10:02:40 petere Exp $
*
*-------------------------------------------------------------------------
*/
char *username = NULL;
bool password = false;
bool echo = false;
- bool quiet = false;
bool interactive = false;
PQExpBufferData sql;
echo = true;
break;
case 'q':
- quiet = true;
+ /* obsolete; remove in 8.4 */
break;
case 'i':
interactive = true;
PQclear(result);
PQfinish(conn);
- if (!quiet)
- {
- puts("DROP DATABASE");
- fflush(stdout);
- }
exit(0);
}
printf(_("\nOptions:\n"));
printf(_(" -e, --echo show the commands being sent to the server\n"));
printf(_(" -i, --interactive prompt before deleting anything\n"));
- printf(_(" -q, --quiet don't write any messages\n"));
printf(_(" -h, --host=HOSTNAME database server host or socket directory\n"));
printf(_(" -p, --port=PORT database server port\n"));
printf(_(" -U, --username=USERNAME user name to connect as\n"));
* Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/bin/scripts/dropuser.c,v 1.20 2007/01/05 22:19:50 momjian Exp $
+ * $PostgreSQL: pgsql/src/bin/scripts/dropuser.c,v 1.21 2007/06/04 10:02:40 petere Exp $
*
*-------------------------------------------------------------------------
*/
char *username = NULL;
bool password = false;
bool echo = false;
- bool quiet = false;
bool interactive = false;
PQExpBufferData sql;
echo = true;
break;
case 'q':
- quiet = true;
+ /* obsolete; remove in 8.4 */
break;
case 'i':
interactive = true;
PQclear(result);
PQfinish(conn);
- if (!quiet)
- {
- puts("DROP ROLE");
- fflush(stdout);
- }
exit(0);
}
printf(_("\nOptions:\n"));
printf(_(" -e, --echo show the commands being sent to the server\n"));
printf(_(" -i, --interactive prompt before deleting anything\n"));
- printf(_(" -q, --quiet don't write any messages\n"));
printf(_(" -h, --host=HOSTNAME database server host or socket directory\n"));
printf(_(" -p, --port=PORT database server port\n"));
printf(_(" -U, --username=USERNAME user name to connect as (not the one to drop)\n"));
*
* Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/bin/scripts/reindexdb.c,v 1.10 2007/04/09 18:21:22 mha Exp $
+ * $PostgreSQL: pgsql/src/bin/scripts/reindexdb.c,v 1.11 2007/06/04 10:02:40 petere Exp $
*
*-------------------------------------------------------------------------
*/
const char *type, const char *host,
const char *port, const char *username,
bool password, const char *progname,
- bool echo, bool quiet);
+ bool echo);
static void reindex_all_databases(const char *host, const char *port,
const char *username, bool password,
const char *progname, bool echo,
static void reindex_system_catalogs(const char *dbname,
const char *host, const char *port,
const char *username, bool password,
- const char *progname, bool echo,
- bool quiet);
+ const char *progname, bool echo);
static void help(const char *progname);
int
}
reindex_system_catalogs(dbname, host, port, username, password,
- progname, echo, quiet);
+ progname, echo);
}
else
{
if (index)
reindex_one_database(index, dbname, "INDEX", host, port,
- username, password, progname, echo, quiet);
+ username, password, progname, echo);
if (table)
reindex_one_database(table, dbname, "TABLE", host, port,
- username, password, progname, echo, quiet);
+ username, password, progname, echo);
/* reindex database only if index or table is not specified */
if (index == NULL && table == NULL)
reindex_one_database(dbname, dbname, "DATABASE", host, port,
- username, password, progname, echo, quiet);
+ username, password, progname, echo);
}
exit(0);
static void
reindex_one_database(const char *name, const char *dbname, const char *type,
const char *host, const char *port, const char *username,
- bool password, const char *progname, bool echo,
- bool quiet)
+ bool password, const char *progname, bool echo)
{
PQExpBufferData sql;
PQfinish(conn);
termPQExpBuffer(&sql);
-
- if (!quiet)
- {
- puts("REINDEX");
- fflush(stdout);
- }
}
static void
char *dbname = PQgetvalue(result, i, 0);
if (!quiet)
- fprintf(stderr, _("%s: reindexing database \"%s\"\n"), progname, dbname);
+ {
+ printf(_("%s: reindexing database \"%s\"\n"), progname, dbname);
+ fflush(stdout);
+ }
reindex_one_database(dbname, dbname, "DATABASE", host, port, username,
- password, progname, echo, quiet);
+ password, progname, echo);
}
PQclear(result);
static void
reindex_system_catalogs(const char *dbname, const char *host, const char *port,
const char *username, bool password,
- const char *progname, bool echo, bool quiet)
+ const char *progname, bool echo)
{
PQExpBufferData sql;
}
PQfinish(conn);
termPQExpBuffer(&sql);
-
- if (!quiet)
- {
- puts("REINDEX");
- fflush(stdout);
- }
}
static void
* Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/bin/scripts/vacuumdb.c,v 1.17 2007/04/09 18:21:22 mha Exp $
+ * $PostgreSQL: pgsql/src/bin/scripts/vacuumdb.c,v 1.18 2007/06/04 10:02:40 petere Exp $
*
*-------------------------------------------------------------------------
*/
const char *table,
const char *host, const char *port,
const char *username, bool password,
- const char *progname, bool echo, bool quiet);
+ const char *progname, bool echo);
static void vacuum_all_databases(bool full, bool verbose, bool analyze,
const char *host, const char *port,
const char *username, bool password,
vacuum_one_database(dbname, full, verbose, analyze, table,
host, port, username, password,
- progname, echo, quiet);
+ progname, echo);
}
exit(0);
const char *table,
const char *host, const char *port,
const char *username, bool password,
- const char *progname, bool echo, bool quiet)
+ const char *progname, bool echo)
{
PQExpBufferData sql;
}
PQfinish(conn);
termPQExpBuffer(&sql);
-
- if (!quiet)
- {
- puts("VACUUM");
- fflush(stdout);
- }
}
char *dbname = PQgetvalue(result, i, 0);
if (!quiet)
- fprintf(stderr, _("%s: vacuuming database \"%s\"\n"), progname, dbname);
+ {
+ printf(_("%s: vacuuming database \"%s\"\n"), progname, dbname);
+ fflush(stdout);
+ }
vacuum_one_database(dbname, full, verbose, analyze, NULL,
host, port, username, password,
- progname, echo, quiet);
+ progname, echo);
}
PQclear(result);