markdown/reference/catalog/pg_filespace.html.md.erb (11 lines of code) (raw):
---
title: pg_filespace
---
<!--
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 `pg_filespace` table contains information about the filespaces created in a HAWQ system. Every system contains a default filespace, `pg_system`, which is a collection of all the data directory locations created at system initialization time.
A tablespace requires a file system location to store its database files. In HAWQ, the master and each segment needs its own distinct storage location. This collection of file system locations for all components in a HAWQ system is referred to as a filespace.
<a id="topic1__go138428"></a>
<span class="tablecap">Table 1. pg\_catalog.pg\_filespace</span>
| column | type | references | description |
|-----------|------|---------------|-------------------------------------------------------|
| `fsname` | name | | The name of the filespace. |
| `fsowner` | oid | pg\_roles.oid | The object id of the role that created the filespace. |