-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: add warehouse grammar and GUC variable (#111)
Feature: add warehouse grammar and GUC variable Since we are going to support storage/compute/catalog separation, we need to add a warehouse logic to the system. Then we can use the warehouse clause to specify the warehouse for a SQL query. A warehouse is a group of segments, and we can create/alter/delete a warehouse. This commit does the following things: add the grammar for the warehouse clause. add the GUC variable for the current warehouse. add some fileter conditions for gp_segment_configuration table, since we need to filter out the segments that are not in the current warehouse.
- Loading branch information
Showing
26 changed files
with
444 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<!-- | ||
doc/src/sgml/ref/create_warehouse.sgml | ||
PostgreSQL documentation | ||
--> | ||
|
||
<refentry id="sql-createwarehouse"> | ||
<indexterm zone="sql-createwarehouse"> | ||
<primary>CREATE WAREHOUSE</primary> | ||
</indexterm> | ||
|
||
<refmeta> | ||
<refentrytitle>CREATE WAREHOUSE</refentrytitle> | ||
<manvolnum>7</manvolnum> | ||
<refmiscinfo>SQL - Language Statements</refmiscinfo> | ||
</refmeta> | ||
|
||
<refnamediv> | ||
<refname>CREATE WAREHOUSE</refname> | ||
<refpurpose>define a new warehouse for query processing</refpurpose> | ||
</refnamediv> | ||
|
||
<refsynopsisdiv> | ||
<synopsis> | ||
CREATE WAREHOUSE <replaceable class="parameter">name</replaceable> | ||
[ WAREHOUSE_SIZE <replaceable class="parameter">size</replaceable> ] | ||
</synopsis> | ||
</refsynopsisdiv> | ||
|
||
<refsect1> | ||
<title>Description</title> | ||
|
||
<para> | ||
<command>CREATE WAREHOUSE</command> Creates a new virtual warehouse in the system. | ||
Initial creation of a virtual warehouse might take some time to provision the compute resources. | ||
</para> | ||
|
||
</refsect1> | ||
|
||
<refsect1> | ||
<title>Parameters</title> | ||
<variablelist> | ||
<varlistentry> | ||
<term><literal>WAREHOUSE_SIZE</literal></term> | ||
<listitem> | ||
<para> | ||
The size of the warehouse. | ||
</para> | ||
</listitem> | ||
</varlistentry> | ||
</variablelist> | ||
</refsect1> | ||
|
||
</refentry> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.