mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
Initial pgindent and pgperltidy run for v13.
Includes some manual cleanup of places that pgindent messed up,
most of which weren't per project style anyway.
Notably, it seems some people didn't absorb the style rules of
commit c9d297751
, because there were a bunch of new occurrences
of function calls with a newline just after the left paren, all
with faulty expectations about how the rest of the call would get
indented.
This commit is contained in:
@ -1698,12 +1698,12 @@ Datum
|
||||
pg_stat_get_slru(PG_FUNCTION_ARGS)
|
||||
{
|
||||
#define PG_STAT_GET_SLRU_COLS 9
|
||||
ReturnSetInfo *rsinfo = (ReturnSetInfo *) fcinfo->resultinfo;
|
||||
TupleDesc tupdesc;
|
||||
ReturnSetInfo *rsinfo = (ReturnSetInfo *) fcinfo->resultinfo;
|
||||
TupleDesc tupdesc;
|
||||
Tuplestorestate *tupstore;
|
||||
MemoryContext per_query_ctx;
|
||||
MemoryContext oldcontext;
|
||||
int i;
|
||||
MemoryContext per_query_ctx;
|
||||
MemoryContext oldcontext;
|
||||
int i;
|
||||
PgStat_SLRUStats *stats;
|
||||
|
||||
/* check to see if caller supports us returning a tuplestore */
|
||||
@ -1733,12 +1733,12 @@ pg_stat_get_slru(PG_FUNCTION_ARGS)
|
||||
/* request SLRU stats from the stat collector */
|
||||
stats = pgstat_fetch_slru();
|
||||
|
||||
for (i = 0; ; i++)
|
||||
for (i = 0;; i++)
|
||||
{
|
||||
/* for each row */
|
||||
Datum values[PG_STAT_GET_SLRU_COLS];
|
||||
bool nulls[PG_STAT_GET_SLRU_COLS];
|
||||
PgStat_SLRUStats stat = stats[i];
|
||||
PgStat_SLRUStats stat = stats[i];
|
||||
const char *name;
|
||||
|
||||
name = pgstat_slru_name(i);
|
||||
|
Reference in New Issue
Block a user