mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list
provided by Andrew.
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $PostgreSQL: pgsql/contrib/pgstattuple/pgstattuple.c,v 1.37 2009/03/31 22:54:31 tgl Exp $
|
||||
* $PostgreSQL: pgsql/contrib/pgstattuple/pgstattuple.c,v 1.38 2009/06/11 14:48:52 momjian Exp $
|
||||
*
|
||||
* Copyright (c) 2001,2002 Tatsuo Ishii
|
||||
*
|
||||
@ -59,30 +59,30 @@ typedef struct pgstattuple_type
|
||||
uint64 dead_tuple_count;
|
||||
uint64 dead_tuple_len;
|
||||
uint64 free_space; /* free/reusable space in bytes */
|
||||
} pgstattuple_type;
|
||||
} pgstattuple_type;
|
||||
|
||||
typedef void (*pgstat_page) (pgstattuple_type *, Relation, BlockNumber);
|
||||
|
||||
static Datum build_pgstattuple_type(pgstattuple_type * stat,
|
||||
static Datum build_pgstattuple_type(pgstattuple_type *stat,
|
||||
FunctionCallInfo fcinfo);
|
||||
static Datum pgstat_relation(Relation rel, FunctionCallInfo fcinfo);
|
||||
static Datum pgstat_heap(Relation rel, FunctionCallInfo fcinfo);
|
||||
static void pgstat_btree_page(pgstattuple_type * stat,
|
||||
static void pgstat_btree_page(pgstattuple_type *stat,
|
||||
Relation rel, BlockNumber blkno);
|
||||
static void pgstat_hash_page(pgstattuple_type * stat,
|
||||
static void pgstat_hash_page(pgstattuple_type *stat,
|
||||
Relation rel, BlockNumber blkno);
|
||||
static void pgstat_gist_page(pgstattuple_type * stat,
|
||||
static void pgstat_gist_page(pgstattuple_type *stat,
|
||||
Relation rel, BlockNumber blkno);
|
||||
static Datum pgstat_index(Relation rel, BlockNumber start,
|
||||
pgstat_page pagefn, FunctionCallInfo fcinfo);
|
||||
static void pgstat_index_page(pgstattuple_type * stat, Page page,
|
||||
static void pgstat_index_page(pgstattuple_type *stat, Page page,
|
||||
OffsetNumber minoff, OffsetNumber maxoff);
|
||||
|
||||
/*
|
||||
* build_pgstattuple_type -- build a pgstattuple_type tuple
|
||||
*/
|
||||
static Datum
|
||||
build_pgstattuple_type(pgstattuple_type * stat, FunctionCallInfo fcinfo)
|
||||
build_pgstattuple_type(pgstattuple_type *stat, FunctionCallInfo fcinfo)
|
||||
{
|
||||
#define NCOLUMNS 9
|
||||
#define NCHARS 32
|
||||
@ -200,9 +200,9 @@ pgstat_relation(Relation rel, FunctionCallInfo fcinfo)
|
||||
const char *err;
|
||||
|
||||
/*
|
||||
* Reject attempts to read non-local temporary relations; we would
|
||||
* be likely to get wrong data since we have no visibility into the
|
||||
* owning session's local buffers.
|
||||
* Reject attempts to read non-local temporary relations; we would be
|
||||
* likely to get wrong data since we have no visibility into the owning
|
||||
* session's local buffers.
|
||||
*/
|
||||
if (RELATION_IS_OTHER_TEMP(rel))
|
||||
ereport(ERROR,
|
||||
@ -331,7 +331,7 @@ pgstat_heap(Relation rel, FunctionCallInfo fcinfo)
|
||||
* pgstat_btree_page -- check tuples in a btree page
|
||||
*/
|
||||
static void
|
||||
pgstat_btree_page(pgstattuple_type * stat, Relation rel, BlockNumber blkno)
|
||||
pgstat_btree_page(pgstattuple_type *stat, Relation rel, BlockNumber blkno)
|
||||
{
|
||||
Buffer buf;
|
||||
Page page;
|
||||
@ -374,7 +374,7 @@ pgstat_btree_page(pgstattuple_type * stat, Relation rel, BlockNumber blkno)
|
||||
* pgstat_hash_page -- check tuples in a hash page
|
||||
*/
|
||||
static void
|
||||
pgstat_hash_page(pgstattuple_type * stat, Relation rel, BlockNumber blkno)
|
||||
pgstat_hash_page(pgstattuple_type *stat, Relation rel, BlockNumber blkno)
|
||||
{
|
||||
Buffer buf;
|
||||
Page page;
|
||||
@ -417,7 +417,7 @@ pgstat_hash_page(pgstattuple_type * stat, Relation rel, BlockNumber blkno)
|
||||
* pgstat_gist_page -- check tuples in a gist page
|
||||
*/
|
||||
static void
|
||||
pgstat_gist_page(pgstattuple_type * stat, Relation rel, BlockNumber blkno)
|
||||
pgstat_gist_page(pgstattuple_type *stat, Relation rel, BlockNumber blkno)
|
||||
{
|
||||
Buffer buf;
|
||||
Page page;
|
||||
@ -480,7 +480,7 @@ pgstat_index(Relation rel, BlockNumber start, pgstat_page pagefn,
|
||||
* pgstat_index_page -- for generic index page
|
||||
*/
|
||||
static void
|
||||
pgstat_index_page(pgstattuple_type * stat, Page page,
|
||||
pgstat_index_page(pgstattuple_type *stat, Page page,
|
||||
OffsetNumber minoff, OffsetNumber maxoff)
|
||||
{
|
||||
OffsetNumber i;
|
||||
|
Reference in New Issue
Block a user