Skip to content

Commit fcf70e0

Browse files
committed
Re-pgindent src/bin/pg_dump/*
Cleanup for recent patches --- it's not much change, but I got annoyed while re-indenting the view-rule fix I'm working on.
1 parent f65b94f commit fcf70e0

File tree

3 files changed

+29
-18
lines changed

3 files changed

+29
-18
lines changed

src/bin/pg_dump/pg_backup_archiver.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2108,7 +2108,9 @@ _discoverArchiveFormat(ArchiveHandle *AH)
21082108
if (strncmp(sig, "PGDMP", 5) == 0)
21092109
{
21102110
int byteread;
2111-
char vmaj, vmin, vrev;
2111+
char vmaj,
2112+
vmin,
2113+
vrev;
21122114

21132115
/*
21142116
* Finish reading (most of) a custom-format header.
@@ -3563,7 +3565,9 @@ ReadHead(ArchiveHandle *AH)
35633565
*/
35643566
if (!AH->readHeader)
35653567
{
3566-
char vmaj, vmin, vrev;
3568+
char vmaj,
3569+
vmin,
3570+
vrev;
35673571

35683572
(*AH->ReadBufPtr) (AH, tmpMag, 5);
35693573

src/bin/pg_dump/pg_backup_archiver.h

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -71,28 +71,33 @@ typedef z_stream *z_streamp;
7171

7272
#define ARCHIVE_MAJOR(version) (((version) >> 16) & 255)
7373
#define ARCHIVE_MINOR(version) (((version) >> 8) & 255)
74-
#define ARCHIVE_REV(version) (((version) ) & 255)
74+
#define ARCHIVE_REV(version) (((version) ) & 255)
7575

7676
/* Historical version numbers (checked in code) */
7777
#define K_VERS_1_0 MAKE_ARCHIVE_VERSION(1, 0, 0)
78-
#define K_VERS_1_2 MAKE_ARCHIVE_VERSION(1, 2, 0) /* Allow No ZLIB */
79-
#define K_VERS_1_3 MAKE_ARCHIVE_VERSION(1, 3, 0) /* BLOBs */
80-
#define K_VERS_1_4 MAKE_ARCHIVE_VERSION(1, 4, 0) /* Date & name in header */
81-
#define K_VERS_1_5 MAKE_ARCHIVE_VERSION(1, 5, 0) /* Handle dependencies */
82-
#define K_VERS_1_6 MAKE_ARCHIVE_VERSION(1, 6, 0) /* Schema field in TOCs */
83-
#define K_VERS_1_7 MAKE_ARCHIVE_VERSION(1, 7, 0) /* File Offset size in header */
84-
#define K_VERS_1_8 MAKE_ARCHIVE_VERSION(1, 8, 0) /* change interpretation of ID
85-
numbers and dependencies */
86-
#define K_VERS_1_9 MAKE_ARCHIVE_VERSION(1, 9, 0) /* add default_with_oids tracking */
87-
#define K_VERS_1_10 MAKE_ARCHIVE_VERSION(1, 10, 0) /* add tablespace */
88-
#define K_VERS_1_11 MAKE_ARCHIVE_VERSION(1, 11, 0) /* add toc section indicator */
89-
#define K_VERS_1_12 MAKE_ARCHIVE_VERSION(1, 12, 0) /* add separate BLOB entries */
78+
#define K_VERS_1_2 MAKE_ARCHIVE_VERSION(1, 2, 0) /* Allow No ZLIB */
79+
#define K_VERS_1_3 MAKE_ARCHIVE_VERSION(1, 3, 0) /* BLOBs */
80+
#define K_VERS_1_4 MAKE_ARCHIVE_VERSION(1, 4, 0) /* Date & name in header */
81+
#define K_VERS_1_5 MAKE_ARCHIVE_VERSION(1, 5, 0) /* Handle dependencies */
82+
#define K_VERS_1_6 MAKE_ARCHIVE_VERSION(1, 6, 0) /* Schema field in TOCs */
83+
#define K_VERS_1_7 MAKE_ARCHIVE_VERSION(1, 7, 0) /* File Offset size in
84+
* header */
85+
#define K_VERS_1_8 MAKE_ARCHIVE_VERSION(1, 8, 0) /* change interpretation
86+
* of ID numbers and
87+
* dependencies */
88+
#define K_VERS_1_9 MAKE_ARCHIVE_VERSION(1, 9, 0) /* add default_with_oids
89+
* tracking */
90+
#define K_VERS_1_10 MAKE_ARCHIVE_VERSION(1, 10, 0) /* add tablespace */
91+
#define K_VERS_1_11 MAKE_ARCHIVE_VERSION(1, 11, 0) /* add toc section
92+
* indicator */
93+
#define K_VERS_1_12 MAKE_ARCHIVE_VERSION(1, 12, 0) /* add separate BLOB
94+
* entries */
9095

9196
/* Current archive version number (the format we can output) */
9297
#define K_VERS_MAJOR 1
9398
#define K_VERS_MINOR 12
9499
#define K_VERS_REV 0
95-
#define K_VERS_SELF MAKE_ARCHIVE_VERSION(K_VERS_MAJOR, K_VERS_MINOR, K_VERS_REV);
100+
#define K_VERS_SELF MAKE_ARCHIVE_VERSION(K_VERS_MAJOR, K_VERS_MINOR, K_VERS_REV);
96101

97102
/* Newest format we can read */
98103
#define K_VERS_MAX MAKE_ARCHIVE_VERSION(K_VERS_MAJOR, K_VERS_MINOR, 255)

src/bin/pg_dump/pg_dump.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -546,9 +546,11 @@ main(int argc, char **argv)
546546
if (dopt.column_inserts)
547547
dopt.dump_inserts = 1;
548548

549-
/* Binary upgrade mode implies dumping sequence data even in schema-only
549+
/*
550+
* Binary upgrade mode implies dumping sequence data even in schema-only
550551
* mode. This is not exposed as a separate option, but kept separate
551-
* internally for clarity. */
552+
* internally for clarity.
553+
*/
552554
if (dopt.binary_upgrade)
553555
dopt.sequence_data = 1;
554556

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy