* by PostgreSQL
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.473 2007/10/13 20:18:41 tgl Exp $
+ * $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.474 2007/11/07 13:11:05 petere Exp $
*
*-------------------------------------------------------------------------
*/
if (dataOnly && schemaOnly)
{
- write_msg(NULL, "options \"schema only\" (-s) and \"data only\" (-a) cannot be used together\n");
+ write_msg(NULL, "options -s/--schema-only and -a/--data-only cannot be used together\n");
exit(1);
}
if (dataOnly && outputClean)
{
- write_msg(NULL, "options \"clean\" (-c) and \"data only\" (-a) cannot be used together\n");
+ write_msg(NULL, "options -c/--clean and -a/--data-only cannot be used together\n");
exit(1);
}
if (dumpInserts == true && oids == true)
{
- write_msg(NULL, "INSERT (-d, -D) and OID (-o) options cannot be used together\n");
+ write_msg(NULL, "options -d/-D/--inserts/--column-inserts and -o/--oids cannot be used together\n");
write_msg(NULL, "(The INSERT command cannot set OIDs.)\n");
exit(1);
}
/* should be at least 1 value */
if (num == 0)
{
- write_msg(NULL, "No rows found for enum");
+ write_msg(NULL, "no label definitions found for enum ID %u", tinfo->dobj.catId.oid);
exit_nicely();
}
* Portions Copyright (c) 1994, Regents of the University of California
*
*
- * $PostgreSQL: pgsql/src/bin/pg_dump/pg_dumpall.c,v 1.95 2007/11/07 12:24:24 petere Exp $
+ * $PostgreSQL: pgsql/src/bin/pg_dump/pg_dumpall.c,v 1.96 2007/11/07 13:11:05 petere Exp $
*
*-------------------------------------------------------------------------
*/
/* Make sure the user hasn't specified a mix of globals-only options */
if (globals_only && roles_only)
{
- fprintf(stderr, _("%s: --globals-only and --roles-only cannot be used together\n"),
+ fprintf(stderr, _("%s: options -g/--globals-only and -r/--roles-only cannot be used together\n"),
progname);
fprintf(stderr, _("Try \"%s --help\" for more information.\n"),
progname);
if (globals_only && tablespaces_only)
{
- fprintf(stderr, _("%s: --globals-only and --tablespaces-only cannot be used together\n"),
+ fprintf(stderr, _("%s: options -g/--globals-only and -t/--tablespaces-only cannot be used together\n"),
progname);
fprintf(stderr, _("Try \"%s --help\" for more information.\n"),
progname);
if (roles_only && tablespaces_only)
{
- fprintf(stderr, _("%s: --roles-only and --tablespaces-only cannot be used together\n"),
+ fprintf(stderr, _("%s: options -r/--roles-only and -t/--tablespaces-only cannot be used together\n"),
progname);
fprintf(stderr, _("Try \"%s --help\" for more information.\n"),
progname);
if (!conn)
{
- fprintf(stderr, _("%s: could not connect to databases \"postgres\" or \"template1\". Please specify an alternative database\n"),
+ fprintf(stderr, _("%s: could not connect to databases \"postgres\" or \"template1\"\n"
+ "Please specify an alternative database.\n"),
progname);
fprintf(stderr, _("Try \"%s --help\" for more information.\n"),
progname);