markdown/reference/catalog/gp_persistent_relfile_node.html.md.erb (90 lines of code) (raw):

--- title: gp_persistent_relfile_node --- <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> The `gp_persistent_relfile_node` table keeps track of the status of file system objects in relation to the transaction status of database objects. This information is used to make sure the state of the system catalogs and the file system files persisted to disk are synchronized. <a id="topic1__fk138428"></a> <span class="tablecap">Table 1. pg\_catalog.gp\_persistent\_relfile\_node</span> <table> <colgroup> <col width="25%" /> <col width="25%" /> <col width="25%" /> <col width="25%" /> </colgroup> <thead> <tr class="header"> <th>column</th> <th>type</th> <th>references</th> <th>description</th> </tr> </thead> <tbody> <tr class="odd"> <td><code class="ph codeph">tablespace_oid</code></td> <td>oid</td> <td>pg_tablespace.oid</td> <td>Tablespace object id</td> </tr> <tr class="even"> <td><code class="ph codeph">database_oid</code></td> <td>oid</td> <td>pg_database.oid</td> <td>Database object id</td> </tr> <tr class="odd"> <td><code class="ph codeph">relfilenode_oid</code></td> <td>oid</td> <td>pg_class.relfilenode</td> <td>The object id of the relation file node.</td> </tr> <tr class="even"> <td><code class="ph codeph">segment_file_num</code></td> <td>integer</td> <td> </td> <td> </td> </tr> <tr class="odd"> <td><code class="ph codeph">relation_storage_manager</code></td> <td>smallint</td> <td> </td> <td> </td> </tr> <tr class="even"> <td><code class="ph codeph">persistent_state</code></td> <td>smallint</td> <td> </td> <td>0 - free <p>1 - create pending</p> <p>2 - created</p> <p>3 - drop pending</p> <p>4 - aborting create</p> <p>5 - &quot;Just in Time&quot; create pending</p> <p>6 - bulk load create pending</p></td> </tr> <tr class="odd"> <td><code class="ph codeph">relation_bufpool_kind</code></td> <td>integer</td> <td> </td> <td> </td> </tr> <tr class="even"> <td><code class="ph codeph">parent_xid</code></td> <td>integer</td> <td> </td> <td>Global transaction id.</td> </tr> <tr class="odd"> <td><code class="ph codeph">persistent_serial_num</code></td> <td>bigint</td> <td> </td> <td>Log sequence number position in the transaction log for a file block.</td> </tr> <tr class="even"> <td><code class="ph codeph">previous_free_tid</code></td> <td>tid</td> <td> </td> <td>Used by HAWQ to internally manage persistent representations of file system objects.</td> </tr> </tbody> </table>