mirror of
https://github.com/postgres/postgres.git
synced 2025-05-30 00:02:11 -04:00
Re-pgindent src/bin/pg_dump/*.
Seems to have gotten rather messy lately, as a consequence of a couple of large recent commits.
This commit is contained in:
parent
389573fd19
commit
7584649a1c
@ -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)
|
|||||||
*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)
|
|||||||
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)
|
|||||||
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)
|
|||||||
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)
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* 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)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user