markdown/reference/catalog/gp_persistent_filespace_node.html.md.erb (78 lines of code) (raw):
---
title: gp_persistent_filespace_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_filespace_node` table keeps track of the status of file system objects in relation to the transaction status of filespace 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__fj138428"></a>
<span class="tablecap">Table 1. pg\_catalog.gp\_persistent\_filespace\_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">filespace_oid</code></td>
<td>oid</td>
<td>pg_filespace.oid</td>
<td>object id of the filespace</td>
</tr>
<tr class="even">
<td><code class="ph codeph">db_id</code></td>
<td>smallint</td>
<td> </td>
<td>primary segment id</td>
</tr>
<tr class="odd">
<td><code class="ph codeph">location</code></td>
<td>text</td>
<td> </td>
<td>primary filesystem location</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 - "Just in Time" create pending</p>
<p>6 - bulk load create pending</p></td>
</tr>
<tr class="odd">
<td><code class="ph codeph">reserved</code></td>
<td>integer</td>
<td> </td>
<td>Not used. Reserved for future use.</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>