Other similar options also use the plural form.
</varlistentry>
<varlistentry>
- <term><option>--no-security-label</option></term>
+ <term><option>--no-security-labels</option></term>
<listitem>
<para>
Do not dump security labels.
</varlistentry>
<varlistentry>
- <term><option>--no-security-label</option></term>
+ <term><option>--no-security-labels</option></term>
<listitem>
<para>
Do not dump security labels.
</varlistentry>
<varlistentry>
- <term><option>--no-security-label</option></term>
+ <term><option>--no-security-labels</option></term>
<listitem>
<para>
Do not output commands to restore security labels,
* restore */
int use_setsessauth;/* Use SET SESSION AUTHORIZATION commands
* instead of OWNER TO */
- int skip_seclabel; /* Skip security label entries */
+ int no_security_labels; /* Skip security label entries */
char *superuser; /* Username to use as superuser */
char *use_role; /* Issue SET ROLE to this */
int dataOnly;
return 0;
/* If it's security labels, maybe ignore it */
- if (ropt->skip_seclabel && strcmp(te->desc, "SECURITY LABEL") == 0)
+ if (ropt->no_security_labels && strcmp(te->desc, "SECURITY LABEL") == 0)
return 0;
/* Ignore DATABASE entry unless we should create it */
static int disable_dollar_quoting = 0;
static int dump_inserts = 0;
static int column_inserts = 0;
-static int no_security_label = 0;
+static int no_security_labels = 0;
static int no_unlogged_table_data = 0;
static int serializable_deferrable = 0;
{"role", required_argument, NULL, 3},
{"serializable-deferrable", no_argument, &serializable_deferrable, 1},
{"use-set-session-authorization", no_argument, &use_setsessauth, 1},
- {"no-security-label", no_argument, &no_security_label, 1},
+ {"no-security-labels", no_argument, &no_security_labels, 1},
{"no-unlogged-table-data", no_argument, &no_unlogged_table_data, 1},
{NULL, 0, NULL, 0}
/*
* Disables security label support if server version < v9.1.x
*/
- if (!no_security_label && g_fout->remoteVersion < 90100)
- no_security_label = 1;
+ if (!no_security_labels && g_fout->remoteVersion < 90100)
+ no_security_labels = 1;
/*
* Start transaction-snapshot mode transaction to dump consistent data.
printf(_(" --quote-all-identifiers quote all identifiers, even if not keywords\n"));
printf(_(" --serializable-deferrable wait until the dump can run without anomalies\n"));
printf(_(" --role=ROLENAME do SET ROLE before dump\n"));
- printf(_(" --no-security-label do not dump security label assignments\n"));
+ printf(_(" --no-security-labels do not dump security label assignments\n"));
printf(_(" --no-unlogged-table-data do not dump unlogged table data\n"));
printf(_(" --use-set-session-authorization\n"
" use SET SESSION AUTHORIZATION commands instead of\n"
int i;
PQExpBuffer query;
- /* do nothing, if --no-security-label is supplied */
- if (no_security_label)
+ /* do nothing, if --no-security-labels is supplied */
+ if (no_security_labels)
return;
/* Comments are schema not data ... except blob comments are data */
PQExpBuffer query;
PQExpBuffer target;
- /* do nothing, if --no-security-label is supplied */
- if (no_security_label)
+ /* do nothing, if --no-security-labels is supplied */
+ if (no_security_labels)
return;
/* SecLabel are SCHEMA not data */
static int inserts = 0;
static int no_tablespaces = 0;
static int use_setsessauth = 0;
-static int no_security_label = 0;
+static int no_security_labels = 0;
static int no_unlogged_table_data = 0;
static int server_version;
{"quote-all-identifiers", no_argument, "e_all_identifiers, 1},
{"role", required_argument, NULL, 3},
{"use-set-session-authorization", no_argument, &use_setsessauth, 1},
- {"no-security-label", no_argument, &no_security_label, 1},
+ {"no-security-labels", no_argument, &no_security_labels, 1},
{"no-unlogged-table-data", no_argument, &no_unlogged_table_data, 1},
{NULL, 0, NULL, 0}
appendPQExpBuffer(pgdumpopts, " --quote-all-identifiers");
if (use_setsessauth)
appendPQExpBuffer(pgdumpopts, " --use-set-session-authorization");
- if (no_security_label)
- appendPQExpBuffer(pgdumpopts, " --no-security-label");
+ if (no_security_labels)
+ appendPQExpBuffer(pgdumpopts, " --no-security-labels");
if (no_unlogged_table_data)
appendPQExpBuffer(pgdumpopts, " --no-unlogged-table-data");
printf(_(" --no-tablespaces do not dump tablespace assignments\n"));
printf(_(" --quote-all-identifiers quote all identifiers, even if not keywords\n"));
printf(_(" --role=ROLENAME do SET ROLE before dump\n"));
- printf(_(" --no-security-label do not dump security label assignments\n"));
+ printf(_(" --no-security-labels do not dump security label assignments\n"));
printf(_(" --no-unlogged-table-data do not dump unlogged table data\n"));
printf(_(" --use-set-session-authorization\n"
" use SET SESSION AUTHORIZATION commands instead of\n"
static int no_data_for_failed_tables = 0;
static int outputNoTablespaces = 0;
static int use_setsessauth = 0;
- static int skip_seclabel = 0;
+ static int no_security_labels = 0;
struct option cmdopts[] = {
{"clean", 0, NULL, 'c'},
{"no-tablespaces", no_argument, &outputNoTablespaces, 1},
{"role", required_argument, NULL, 2},
{"use-set-session-authorization", no_argument, &use_setsessauth, 1},
- {"no-security-label", no_argument, &skip_seclabel, 1},
+ {"no-security-labels", no_argument, &no_security_labels, 1},
{NULL, 0, NULL, 0}
};
opts->noDataForFailedTables = no_data_for_failed_tables;
opts->noTablespace = outputNoTablespaces;
opts->use_setsessauth = use_setsessauth;
- opts->skip_seclabel = skip_seclabel;
+ opts->no_security_labels = no_security_labels;
if (opts->formatName)
{
" do not restore data of tables that could not be\n"
" created\n"));
printf(_(" --no-tablespaces do not restore tablespace assignments\n"));
- printf(_(" --no-security-label do not restore security labels\n"));
+ printf(_(" --no-security-labels do not restore security labels\n"));
printf(_(" --role=ROLENAME do SET ROLE before restore\n"));
printf(_(" --use-set-session-authorization\n"
" use SET SESSION AUTHORIZATION commands instead of\n"