Go to the source code of this file.
◆ pg_freespace()
Definition at line 28 of file pg_freespacemap.c.
29{
34
36
37 if (!RELKIND_HAS_STORAGE(rel->
rd_rel->relkind))
39 (
errcode(ERRCODE_WRONG_OBJECT_TYPE),
40 errmsg(
"relation \"%s\" does not have storage",
43
46 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
47 errmsg(
"invalid block number")));
48
50
53}
int errcode(int sqlerrcode)
int errmsg(const char *fmt,...)
#define ereport(elevel,...)
#define PG_GETARG_INT64(n)
#define PG_RETURN_INT16(x)
Size GetRecordedFreeSpace(Relation rel, BlockNumber heapBlk)
int errdetail_relkind_not_supported(char relkind)
#define RelationGetRelationName(relation)
void relation_close(Relation relation, LOCKMODE lockmode)
Relation relation_open(Oid relationId, LOCKMODE lockmode)
References AccessShareLock, ereport, errcode(), errdetail_relkind_not_supported(), errmsg(), ERROR, GetRecordedFreeSpace(), MaxBlockNumber, PG_GETARG_INT64, PG_GETARG_OID, PG_RETURN_INT16, RelationData::rd_rel, relation_close(), relation_open(), and RelationGetRelationName.
◆ PG_FUNCTION_INFO_V1()
◆ PG_MODULE_MAGIC_EXT()
PG_MODULE_MAGIC_EXT |
( |
. |
name = "pg_freespacemap" , |
|
|
. |
version = PG_VERSION |
|
) |
| |