Files
doc-exports/docs/dws/dev/dws_04_1611.html
Lu, Huayi ef0ada5a59 DWS DEV 20240716 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Lu, Huayi <luhuayi@huawei.com>
Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
2024-11-02 09:07:47 +00:00

67 lines
6.1 KiB
HTML

<a name="EN-US_TOPIC_0000001510522357"></a><a name="EN-US_TOPIC_0000001510522357"></a>
<h1 class="topictitle1">PG_RELFILENODE_SIZE</h1>
<div id="body0000001259679959"><p id="EN-US_TOPIC_0000001510522357__p1511135195612">The <strong id="EN-US_TOPIC_0000001510522357__b62166357255">PG_RELFILENODE_SIZE</strong> system catalog provides file-level space statistics. Each record in the table corresponds to a physical file on the disk and the size of the file.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001510522357__table11669143412348" frame="border" border="1" rules="all"><caption><b>Table 1 </b>PG_RELFILENODE_SIZE columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001510522357__row06701334193419"><th align="left" class="cellrowborder" valign="top" width="14.531453145314533%" id="mcps1.3.2.2.4.1.1"><p id="EN-US_TOPIC_0000001510522357__a3747e02f89ea41c4af8f0f79c9b76f3a">Name</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="14.13141314131413%" id="mcps1.3.2.2.4.1.2"><p id="EN-US_TOPIC_0000001510522357__ae20f1787aa68429d81a78d33bad2f6ec">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="71.33713371337134%" id="mcps1.3.2.2.4.1.3"><p id="EN-US_TOPIC_0000001510522357__a69e8f283a2594152bd616dea04b60bb7">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001510522357__row15670143423416"><td class="cellrowborder" valign="top" width="14.531453145314533%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001510522357__p115754306561">databaseid</p>
</td>
<td class="cellrowborder" valign="top" width="14.13141314131413%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001510522357__p7574173014565">oid</p>
</td>
<td class="cellrowborder" valign="top" width="71.33713371337134%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001510522357__p8572123017564">OID of the database that the physical file belongs to If a system catalog is shared across databases, its value is <strong id="EN-US_TOPIC_0000001510522357__b182271314153314">0</strong>.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510522357__row2671934153417"><td class="cellrowborder" valign="top" width="14.531453145314533%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001510522357__p18570143017566">tablespaceid</p>
</td>
<td class="cellrowborder" valign="top" width="14.13141314131413%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001510522357__p5568193017569">oid</p>
</td>
<td class="cellrowborder" valign="top" width="71.33713371337134%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001510522357__p1956683012561">Tablespace OID of the physical file</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510522357__row067113343347"><td class="cellrowborder" valign="top" width="14.531453145314533%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001510522357__p1856443045610">relfilenode</p>
</td>
<td class="cellrowborder" valign="top" width="14.13141314131413%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001510522357__p156293005619">oid</p>
</td>
<td class="cellrowborder" valign="top" width="71.33713371337134%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001510522357__p145601830195614">Serial number of the physical file</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510522357__row5672163443413"><td class="cellrowborder" valign="top" width="14.531453145314533%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001510522357__p11691171313161">backendid</p>
</td>
<td class="cellrowborder" valign="top" width="14.13141314131413%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001510522357__p7556143011560">integer</p>
</td>
<td class="cellrowborder" valign="top" width="71.33713371337134%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001510522357__p155413307561">ID of the background thread that creates the physical file. Generally, the value is <strong id="EN-US_TOPIC_0000001510522357__b7377647163316">-1</strong>.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510522357__row13672734183417"><td class="cellrowborder" valign="top" width="14.531453145314533%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001510522357__p35461330205611">type</p>
</td>
<td class="cellrowborder" valign="top" width="14.13141314131413%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001510522357__p8544630165613">integer</p>
</td>
<td class="cellrowborder" valign="top" width="71.33713371337134%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001510522357__p173891246143617">Type of the physical file.</p>
<ul id="EN-US_TOPIC_0000001510522357__ul17266316143719"><li id="EN-US_TOPIC_0000001510522357__li8266121663713">The value <strong id="EN-US_TOPIC_0000001510522357__b917541853514">0</strong> indicates a data file.</li><li id="EN-US_TOPIC_0000001510522357__li7266516163713">The value <strong id="EN-US_TOPIC_0000001510522357__b7936152954311">1</strong> indicates an FSM file.</li><li id="EN-US_TOPIC_0000001510522357__li14266131614379">The value <strong id="EN-US_TOPIC_0000001510522357__b16975193313436">2</strong> indicates a VM file.</li><li id="EN-US_TOPIC_0000001510522357__li52660169374">The value <strong id="EN-US_TOPIC_0000001510522357__b1391943694316">3</strong> indicates a BCM file.</li><li id="EN-US_TOPIC_0000001510522357__li102671716183717">If the value greater than 4 indicates the total size of the data file and BCM file of the column in a column-store table.</li></ul>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510522357__row629014421367"><td class="cellrowborder" valign="top" width="14.531453145314533%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001510522357__p554014302565">filesize</p>
</td>
<td class="cellrowborder" valign="top" width="14.13141314131413%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001510522357__p45383309568">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="71.33713371337134%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001510522357__p15536163014561">Size of the physical file, in bytes.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_04_0561.html">System Catalogs</a></div>
</div>
</div>