mirror of
https://github.com/postgres/postgres.git
synced 2025-11-10 17:42:29 +03:00
pgindent run for 8.3.
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
* Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/backend/utils/init/flatfiles.c,v 1.28 2007/10/15 15:11:29 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/utils/init/flatfiles.c,v 1.29 2007/11/15 21:14:40 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -169,7 +169,7 @@ name_okay(const char *str)
|
||||
* so we can set or update the XID wrap limit.
|
||||
*
|
||||
* Also, if "startup" is true, we tell relcache.c to clear out the relcache
|
||||
* init file in each database. That's a bit nonmodular, but scanning
|
||||
* init file in each database. That's a bit nonmodular, but scanning
|
||||
* pg_database twice during system startup seems too high a price for keeping
|
||||
* things better separated.
|
||||
*/
|
||||
@@ -223,8 +223,8 @@ write_database_file(Relation drel, bool startup)
|
||||
datfrozenxid = dbform->datfrozenxid;
|
||||
|
||||
/*
|
||||
* Identify the oldest datfrozenxid. This must match
|
||||
* the logic in vac_truncate_clog() in vacuum.c.
|
||||
* Identify the oldest datfrozenxid. This must match the logic in
|
||||
* vac_truncate_clog() in vacuum.c.
|
||||
*/
|
||||
if (TransactionIdIsNormal(datfrozenxid))
|
||||
{
|
||||
@@ -261,7 +261,7 @@ write_database_file(Relation drel, bool startup)
|
||||
*/
|
||||
if (startup)
|
||||
{
|
||||
char *dbpath = GetDatabasePath(datoid, dattablespace);
|
||||
char *dbpath = GetDatabasePath(datoid, dattablespace);
|
||||
|
||||
RelationCacheInitFileRemove(dbpath);
|
||||
pfree(dbpath);
|
||||
@@ -437,10 +437,10 @@ write_auth_file(Relation rel_authid, Relation rel_authmem)
|
||||
* We can't use heap_getattr() here because during startup we will not
|
||||
* have any tupdesc for pg_authid. Fortunately it's not too hard to
|
||||
* work around this. rolpassword is the first possibly-null field so
|
||||
* we can compute its offset directly. Note that this only works
|
||||
* we can compute its offset directly. Note that this only works
|
||||
* reliably because the preceding field (rolconnlimit) is int4, and
|
||||
* therefore rolpassword is always 4-byte-aligned, and will be at
|
||||
* the same offset no matter whether it uses 1-byte or 4-byte header.
|
||||
* therefore rolpassword is always 4-byte-aligned, and will be at the
|
||||
* same offset no matter whether it uses 1-byte or 4-byte header.
|
||||
*/
|
||||
tp = (char *) tup + tup->t_hoff;
|
||||
off = offsetof(FormData_pg_authid, rolpassword);
|
||||
@@ -634,21 +634,21 @@ write_auth_file(Relation rel_authid, Relation rel_authmem)
|
||||
for (curr_role = 0; curr_role < total_roles; curr_role++)
|
||||
{
|
||||
auth_entry *arole = &auth_info[curr_role];
|
||||
ListCell *mem;
|
||||
ListCell *mem;
|
||||
|
||||
fputs_quote(arole->rolname, fp);
|
||||
fputs_quote(arole->rolname, fp);
|
||||
fputs(" ", fp);
|
||||
fputs_quote(arole->rolpassword, fp);
|
||||
fputs(" ", fp);
|
||||
fputs_quote(arole->rolvaliduntil, fp);
|
||||
|
||||
foreach(mem, arole->member_of)
|
||||
{
|
||||
fputs(" ", fp);
|
||||
fputs_quote(arole->rolpassword, fp);
|
||||
fputs(" ", fp);
|
||||
fputs_quote(arole->rolvaliduntil, fp);
|
||||
fputs_quote((char *) lfirst(mem), fp);
|
||||
}
|
||||
|
||||
foreach(mem, arole->member_of)
|
||||
{
|
||||
fputs(" ", fp);
|
||||
fputs_quote((char *) lfirst(mem), fp);
|
||||
}
|
||||
|
||||
fputs("\n", fp);
|
||||
fputs("\n", fp);
|
||||
}
|
||||
|
||||
if (FreeFile(fp))
|
||||
@@ -845,10 +845,10 @@ AtEOXact_UpdateFlatFiles(bool isCommit)
|
||||
SendPostmasterSignal(PMSIGNAL_PASSWORD_CHANGE);
|
||||
|
||||
/*
|
||||
* Force synchronous commit, to minimize the window between changing
|
||||
* the flat files on-disk and marking the transaction committed. It's
|
||||
* not great that there is any window at all, but definitely we don't
|
||||
* want to make it larger than necessary.
|
||||
* Force synchronous commit, to minimize the window between changing the
|
||||
* flat files on-disk and marking the transaction committed. It's not
|
||||
* great that there is any window at all, but definitely we don't want to
|
||||
* make it larger than necessary.
|
||||
*/
|
||||
ForceSyncCommit();
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/utils/init/globals.c,v 1.102 2007/08/02 23:39:44 adunstan Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/utils/init/globals.c,v 1.103 2007/11/15 21:14:40 momjian Exp $
|
||||
*
|
||||
* NOTES
|
||||
* Globals used all over the place should be declared here and not
|
||||
@@ -33,7 +33,7 @@ volatile uint32 InterruptHoldoffCount = 0;
|
||||
volatile uint32 CritSectionCount = 0;
|
||||
|
||||
int MyProcPid;
|
||||
time_t MyStartTime;
|
||||
time_t MyStartTime;
|
||||
struct Port *MyProcPort;
|
||||
long MyCancelKey;
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/utils/init/postinit.c,v 1.178 2007/09/11 00:06:42 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/utils/init/postinit.c,v 1.179 2007/11/15 21:14:40 momjian Exp $
|
||||
*
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
@@ -107,8 +107,8 @@ FindMyDatabase(const char *name, Oid *db_id, Oid *db_tablespace)
|
||||
/*
|
||||
* FindMyDatabaseByOid
|
||||
*
|
||||
* As above, but the actual database Id is known. Return its name and the
|
||||
* tablespace OID. Return TRUE if found, FALSE if not. The same restrictions
|
||||
* As above, but the actual database Id is known. Return its name and the
|
||||
* tablespace OID. Return TRUE if found, FALSE if not. The same restrictions
|
||||
* as FindMyDatabase apply.
|
||||
*/
|
||||
static bool
|
||||
@@ -320,7 +320,7 @@ BaseInit(void)
|
||||
* Initialize POSTGRES.
|
||||
*
|
||||
* The database can be specified by name, using the in_dbname parameter, or by
|
||||
* OID, using the dboid parameter. In the latter case, the computed database
|
||||
* OID, using the dboid parameter. In the latter case, the computed database
|
||||
* name is passed out to the caller as a palloc'ed string in out_dbname.
|
||||
*
|
||||
* In bootstrap mode no parameters are used.
|
||||
@@ -361,9 +361,10 @@ InitPostgres(const char *in_dbname, Oid dboid, const char *username,
|
||||
else
|
||||
{
|
||||
/*
|
||||
* Find tablespace of the database we're about to open. Since we're not
|
||||
* yet up and running we have to use one of the hackish FindMyDatabase
|
||||
* variants, which look in the flat-file copy of pg_database.
|
||||
* Find tablespace of the database we're about to open. Since we're
|
||||
* not yet up and running we have to use one of the hackish
|
||||
* FindMyDatabase variants, which look in the flat-file copy of
|
||||
* pg_database.
|
||||
*
|
||||
* If the in_dbname param is NULL, lookup database by OID.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user