|
PostgreSQL Source Code git master
|
#include "postgres.h"#include "access/heapam.h"#include "access/htup_details.h"#include "access/relation.h"#include "access/visibilitymap.h"#include "catalog/pg_am_d.h"#include "commands/vacuum.h"#include "funcapi.h"#include "miscadmin.h"#include "storage/bufmgr.h"#include "storage/freespace.h"#include "storage/procarray.h"
Go to the source code of this file.
Data Structures | |
| struct | output_type |
Macros | |
| #define | NUM_OUTPUT_COLUMNS 10 |
Typedefs | |
| typedef struct output_type | output_type |
| #define NUM_OUTPUT_COLUMNS 10 |
Definition at line 46 of file pgstatapprox.c.
| PG_FUNCTION_INFO_V1 | ( | pgstattuple_approx | ) |
| PG_FUNCTION_INFO_V1 | ( | pgstattuple_approx_v1_5 | ) |
| Datum pgstattuple_approx | ( | PG_FUNCTION_ARGS | ) |
Definition at line 214 of file pgstatapprox.c.
References ereport, errcode(), errmsg(), ERROR, fb(), PG_GETARG_OID, PG_RETURN_DATUM, pgstattuple_approx_internal(), and superuser().
| Datum pgstattuple_approx_internal | ( | Oid | relid, |
| FunctionCallInfo | fcinfo | ||
| ) |
Definition at line 242 of file pgstatapprox.c.
References AccessShareLock, elog, ereport, errcode(), errdetail_relkind_not_supported(), errmsg(), ERROR, fb(), Float8GetDatum(), get_call_result_type(), heap_form_tuple(), HeapTupleGetDatum(), i, Int64GetDatum(), TupleDescData::natts, NUM_OUTPUT_COLUMNS, RelationData::rd_rel, relation_close(), RELATION_IS_OTHER_TEMP, relation_open(), RelationGetRelationName, statapprox_heap(), TYPEFUNC_COMPOSITE, and values.
Referenced by pgstattuple_approx(), and pgstattuple_approx_v1_5().
| Datum pgstattuple_approx_v1_5 | ( | PG_FUNCTION_ARGS | ) |
Definition at line 234 of file pgstatapprox.c.
References PG_GETARG_OID, PG_RETURN_DATUM, and pgstattuple_approx_internal().
|
static |
Definition at line 59 of file pgstatapprox.c.
References Assert, BAS_BULKREAD, buf, BUFFER_LOCK_SHARE, BufferGetPage(), BufferIsValid(), CHECK_FOR_INTERRUPTS, elog, ERROR, fb(), FirstOffsetNumber, GetAccessStrategy(), GetOldestNonRemovableTransactionId(), GetRecordedFreeSpace(), HEAPTUPLE_DEAD, HEAPTUPLE_DELETE_IN_PROGRESS, HEAPTUPLE_INSERT_IN_PROGRESS, HEAPTUPLE_LIVE, HEAPTUPLE_RECENTLY_DEAD, HeapTupleSatisfiesVacuum(), InvalidBuffer, ItemIdGetLength, ItemIdIsDead, ItemIdIsNormal, ItemIdIsRedirected, ItemIdIsUsed, ItemPointerSet(), LockBuffer(), MAIN_FORKNUM, Max, OffsetNumberNext, PageGetExactFreeSpace(), PageGetItem(), PageGetItemId(), PageGetMaxOffsetNumber(), PageIsEmpty(), PageIsNew(), RBM_NORMAL, ReadBufferExtended(), RelationGetNumberOfBlocks, RelationGetRelid, ReleaseBuffer(), HeapTupleData::t_data, HeapTupleData::t_len, HeapTupleData::t_self, HeapTupleData::t_tableOid, UnlockReleaseBuffer(), vac_estimate_reltuples(), and VM_ALL_VISIBLE.
Referenced by pgstattuple_approx_internal().