doc-exports/docs/dws/dev/dws_06_0303.html
Lu, Huayi e6fa411af0 DWS DEV 830.201 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-05-16 07:24:04 +00:00

19 lines
2.6 KiB
HTML

<a name="EN-US_TOPIC_0000001494918653"></a><a name="EN-US_TOPIC_0000001494918653"></a>
<h1 class="topictitle1">Database Object Position Functions</h1>
<div id="body0000001494918653"><div class="section" id="EN-US_TOPIC_0000001494918653__section865902202518"><h4 class="sectiontitle">pg_relation_filenode(relation regclass)</h4><p id="EN-US_TOPIC_0000001494918653__a4b0fd600cb1a4cd483b71997841aacf3">Description: Specifies the ID of a filenode with the specified relationship.</p>
<p id="EN-US_TOPIC_0000001494918653__a306a46f7d018474caf7ddcc9370402fc">Return type: OID</p>
<p id="EN-US_TOPIC_0000001494918653__a824e687d8c0b4f5eb1d6cf65c06e050d">Description: <strong id="EN-US_TOPIC_0000001494918653__b85090531093647">pg_relation_filenode</strong> receives the OID or name of a table, index, sequence, or compressed table, and returns the filenode number allocated to it. The filenode is the basic component of the file name used by the relationship. For most tables, the result is the same as that of <strong id="EN-US_TOPIC_0000001494918653__b170376465693647">pg_class.relfilenode</strong>. For the specified system directory, <strong id="EN-US_TOPIC_0000001494918653__b75496080593647">relfilenode</strong> is <strong id="EN-US_TOPIC_0000001494918653__b203272022793647">0</strong> and this function must be used to obtain the correct value. If a relationship that is not stored is transmitted, such as a view, this function returns <strong id="EN-US_TOPIC_0000001494918653__b148249727093647">NULL</strong>.</p>
</div>
<div class="section" id="EN-US_TOPIC_0000001494918653__section16115153610254"><h4 class="sectiontitle">pg_relation_filepath(relation regclass)</h4><p id="EN-US_TOPIC_0000001494918653__a39f002f73bfc42a59730aee5de1b879c">Description: Specifies the name of a file path with the specified relationship.</p>
<p id="EN-US_TOPIC_0000001494918653__a3bf0e902aabc47feb2235a9ccfb76001">Return type: text</p>
<p id="EN-US_TOPIC_0000001494918653__a151f2d3500074540bdb2e24f9dbe7d01">Description: <strong id="EN-US_TOPIC_0000001494918653__b199427208493647">pg_relation_filepath</strong> is similar to <strong id="EN-US_TOPIC_0000001494918653__b185200964193647">pg_relation_filenode</strong>, except that <strong id="EN-US_TOPIC_0000001494918653__b201012643793647">pg_relation_filepath</strong> returns the whole file path name for the relationship (relative to the data directory <strong id="EN-US_TOPIC_0000001494918653__b155857207593647">PGDATA</strong> of the database cluster).</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_06_0058.html">Database Object Functions</a></div>
</div>
</div>