mirror of
https://github.com/postgres/postgres.git
synced 2025-07-21 16:02:15 +03:00
Run pgindent on src/bin/pg_dump/*
To ease doing indent fixups on a couple of patches I have in progress.
This commit is contained in:
@ -38,8 +38,8 @@ typedef struct SimpleOidList
|
|||||||
typedef struct SimpleStringListCell
|
typedef struct SimpleStringListCell
|
||||||
{
|
{
|
||||||
struct SimpleStringListCell *next;
|
struct SimpleStringListCell *next;
|
||||||
bool touched; /* true, when this string was searched
|
bool touched; /* true, when this string was searched and
|
||||||
and touched */
|
* touched */
|
||||||
char val[FLEXIBLE_ARRAY_MEMBER]; /* null-terminated string here */
|
char val[FLEXIBLE_ARRAY_MEMBER]; /* null-terminated string here */
|
||||||
} SimpleStringListCell;
|
} SimpleStringListCell;
|
||||||
|
|
||||||
|
@ -921,7 +921,7 @@ help(const char *progname)
|
|||||||
printf(_(" --serializable-deferrable wait until the dump can run without anomalies\n"));
|
printf(_(" --serializable-deferrable wait until the dump can run without anomalies\n"));
|
||||||
printf(_(" --snapshot=SNAPSHOT use given snapshot for the dump\n"));
|
printf(_(" --snapshot=SNAPSHOT use given snapshot for the dump\n"));
|
||||||
printf(_(" --strict-names require table and/or schema include patterns to\n"
|
printf(_(" --strict-names require table and/or schema include patterns to\n"
|
||||||
" match at least one entity each\n"));
|
" match at least one entity each\n"));
|
||||||
printf(_(" --use-set-session-authorization\n"
|
printf(_(" --use-set-session-authorization\n"
|
||||||
" use SET SESSION AUTHORIZATION commands instead of\n"
|
" use SET SESSION AUTHORIZATION commands instead of\n"
|
||||||
" ALTER OWNER commands to set ownership\n"));
|
" ALTER OWNER commands to set ownership\n"));
|
||||||
@ -1216,8 +1216,8 @@ expand_table_name_patterns(Archive *fout,
|
|||||||
query = createPQExpBuffer();
|
query = createPQExpBuffer();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* this might sometimes result in duplicate entries in the OID list,
|
* this might sometimes result in duplicate entries in the OID list, but
|
||||||
* but we don't care.
|
* we don't care.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
for (cell = patterns->head; cell; cell = cell->next)
|
for (cell = patterns->head; cell; cell = cell->next)
|
||||||
|
@ -1415,8 +1415,8 @@ dumpCreateDB(PGconn *conn)
|
|||||||
else if (strcmp(dbtablespace, "pg_default") != 0 && !no_tablespaces)
|
else if (strcmp(dbtablespace, "pg_default") != 0 && !no_tablespaces)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* Cannot change tablespace of the database we're connected to,
|
* Cannot change tablespace of the database we're connected to, so
|
||||||
* so to move "postgres" to another tablespace, we connect to
|
* to move "postgres" to another tablespace, we connect to
|
||||||
* "template1", and vice versa.
|
* "template1", and vice versa.
|
||||||
*/
|
*/
|
||||||
if (strcmp(dbname, "postgres") == 0)
|
if (strcmp(dbname, "postgres") == 0)
|
||||||
|
@ -471,7 +471,7 @@ usage(const char *progname)
|
|||||||
printf(_(" --no-tablespaces do not restore tablespace assignments\n"));
|
printf(_(" --no-tablespaces do not restore tablespace assignments\n"));
|
||||||
printf(_(" --section=SECTION restore named section (pre-data, data, or post-data)\n"));
|
printf(_(" --section=SECTION restore named section (pre-data, data, or post-data)\n"));
|
||||||
printf(_(" --strict-names require table and/or schema include patterns to\n"
|
printf(_(" --strict-names require table and/or schema include patterns to\n"
|
||||||
" match at least one entity each\n"));
|
" match at least one entity each\n"));
|
||||||
printf(_(" --use-set-session-authorization\n"
|
printf(_(" --use-set-session-authorization\n"
|
||||||
" use SET SESSION AUTHORIZATION commands instead of\n"
|
" use SET SESSION AUTHORIZATION commands instead of\n"
|
||||||
" ALTER OWNER commands to set ownership\n"));
|
" ALTER OWNER commands to set ownership\n"));
|
||||||
|
Reference in New Issue
Block a user