Commit 7584649a authored by Tom Lane's avatar Tom Lane

Re-pgindent src/bin/pg_dump/*.

Seems to have gotten rather messy lately, as a consequence of a couple
of large recent commits.
parent 389573fd
...@@ -1331,7 +1331,8 @@ readMessageFromPipe(int fd) ...@@ -1331,7 +1331,8 @@ readMessageFromPipe(int fd)
static int static int
pgpipe(int handles[2]) pgpipe(int handles[2])
{ {
pgsocket s, tmp_sock; pgsocket s,
tmp_sock;
struct sockaddr_in serv_addr; struct sockaddr_in serv_addr;
int len = sizeof(serv_addr); int len = sizeof(serv_addr);
......
...@@ -2156,7 +2156,8 @@ dumpDatabase(Archive *fout, DumpOptions *dopt) ...@@ -2156,7 +2156,8 @@ dumpDatabase(Archive *fout, DumpOptions *dopt)
*collate, *collate,
*ctype, *ctype,
*tablespace; *tablespace;
uint32 frozenxid, minmxid; uint32 frozenxid,
minmxid;
datname = PQdb(conn); datname = PQdb(conn);
...@@ -2338,7 +2339,8 @@ dumpDatabase(Archive *fout, DumpOptions *dopt) ...@@ -2338,7 +2339,8 @@ dumpDatabase(Archive *fout, DumpOptions *dopt)
PGresult *lo_res; PGresult *lo_res;
PQExpBuffer loFrozenQry = createPQExpBuffer(); PQExpBuffer loFrozenQry = createPQExpBuffer();
PQExpBuffer loOutQry = createPQExpBuffer(); PQExpBuffer loOutQry = createPQExpBuffer();
int i_relfrozenxid, i_relminmxid; int i_relfrozenxid,
i_relminmxid;
/* /*
* pg_largeobject * pg_largeobject
...@@ -2762,7 +2764,9 @@ getRowSecurity(Archive *fout, TableInfo tblinfo[], int numTables) ...@@ -2762,7 +2764,9 @@ getRowSecurity(Archive *fout, TableInfo tblinfo[], int numTables)
int i_rsecroles; int i_rsecroles;
int i_rsecqual; int i_rsecqual;
int i_rsecwithcheck; int i_rsecwithcheck;
int i, j, ntups; int i,
j,
ntups;
if (fout->remoteVersion < 90500) if (fout->remoteVersion < 90500)
return; return;
...@@ -2783,9 +2787,9 @@ getRowSecurity(Archive *fout, TableInfo tblinfo[], int numTables) ...@@ -2783,9 +2787,9 @@ getRowSecurity(Archive *fout, TableInfo tblinfo[], int numTables)
tbinfo->dobj.name); tbinfo->dobj.name);
/* /*
* Get row-security enabled information for the table. * Get row-security enabled information for the table. We represent
* We represent RLS enabled on a table by creating RowSecurityInfo * RLS enabled on a table by creating RowSecurityInfo object with an
* object with an empty policy. * empty policy.
*/ */
if (tbinfo->rowsec) if (tbinfo->rowsec)
{ {
...@@ -2909,8 +2913,8 @@ dumpRowSecurity(Archive *fout, DumpOptions *dopt, RowSecurityInfo *rsinfo) ...@@ -2909,8 +2913,8 @@ dumpRowSecurity(Archive *fout, DumpOptions *dopt, RowSecurityInfo *rsinfo)
/* /*
* If rsecpolname is NULL, then this record is just indicating that ROW * If rsecpolname is NULL, then this record is just indicating that ROW
* LEVEL SECURITY is enabled for the table. * LEVEL SECURITY is enabled for the table. Dump as ALTER TABLE <table>
* Dump as ALTER TABLE <table> ENABLE ROW LEVEL SECURITY. * ENABLE ROW LEVEL SECURITY.
*/ */
if (rsinfo->rsecpolname == NULL) if (rsinfo->rsecpolname == NULL)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment