mirror of
https://github.com/postgres/postgres.git
synced 2025-07-03 20:02:46 +03:00
Initial pgindent run for v12.
This is still using the 2.0 version of pg_bsd_indent. I thought it would be good to commit this separately, so as to document the differences between 2.0 and 2.1 behavior. Discussion: https://postgr.es/m/16296.1558103386@sss.pgh.pa.us
This commit is contained in:
6
src/backend/utils/cache/relcache.c
vendored
6
src/backend/utils/cache/relcache.c
vendored
@ -2635,9 +2635,9 @@ RelationClearRelation(Relation relation, bool rebuild)
|
||||
* there should be no PartitionDirectory with a pointer to the old
|
||||
* entry.
|
||||
*
|
||||
* Note that newrel and relation have already been swapped, so
|
||||
* the "old" partition descriptor is actually the one hanging off
|
||||
* of newrel.
|
||||
* Note that newrel and relation have already been swapped, so the
|
||||
* "old" partition descriptor is actually the one hanging off of
|
||||
* newrel.
|
||||
*/
|
||||
MemoryContextSetParent(newrel->rd_pdcxt, relation->rd_pdcxt);
|
||||
newrel->rd_partdesc = NULL;
|
||||
|
4
src/backend/utils/cache/relmapper.c
vendored
4
src/backend/utils/cache/relmapper.c
vendored
@ -656,7 +656,7 @@ EstimateRelationMapSpace(void)
|
||||
void
|
||||
SerializeRelationMap(Size maxSize, char *startAddress)
|
||||
{
|
||||
SerializedActiveRelMaps *relmaps;
|
||||
SerializedActiveRelMaps *relmaps;
|
||||
|
||||
Assert(maxSize >= EstimateRelationMapSpace());
|
||||
|
||||
@ -673,7 +673,7 @@ SerializeRelationMap(Size maxSize, char *startAddress)
|
||||
void
|
||||
RestoreRelationMap(char *startAddress)
|
||||
{
|
||||
SerializedActiveRelMaps *relmaps;
|
||||
SerializedActiveRelMaps *relmaps;
|
||||
|
||||
if (active_shared_updates.num_mappings != 0 ||
|
||||
active_local_updates.num_mappings != 0 ||
|
||||
|
2
src/backend/utils/cache/syscache.c
vendored
2
src/backend/utils/cache/syscache.c
vendored
@ -1235,7 +1235,7 @@ GetSysCacheOid(int cacheId,
|
||||
result = heap_getattr(tuple, oidcol,
|
||||
SysCache[cacheId]->cc_tupdesc,
|
||||
&isNull);
|
||||
Assert(!isNull); /* columns used as oids should never be NULL */
|
||||
Assert(!isNull); /* columns used as oids should never be NULL */
|
||||
ReleaseSysCache(tuple);
|
||||
return result;
|
||||
}
|
||||
|
Reference in New Issue
Block a user