doc-exports/docs/dws/umn/dws_03_2106.html
Lu, Huayi 95132e24fc DWS UMN 830.201_new version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Reviewed-by: Rechenburg, Matthias <matthias.rechenburg@t-systems.com>
Co-authored-by: Lu, Huayi <luhuayi@huawei.com>
Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
2024-05-27 11:54:34 +00:00

25 lines
2.4 KiB
HTML

<a name="EN-US_TOPIC_0000001464363981"></a><a name="EN-US_TOPIC_0000001464363981"></a>
<h1 class="topictitle1">What Are the Schemas Starting with <strong id="b152551738564">pg_toast_temp*</strong> or <strong id="b15405136155619">pg_temp*</strong>?</h1>
<div id="body0000001464363981"><p id="EN-US_TOPIC_0000001464363981__p8060118">When you query the schema list, the query result may contain schemas starting with <strong id="EN-US_TOPIC_0000001464363981__b1054465210567">pg_temp*</strong> or <strong id="EN-US_TOPIC_0000001464363981__b866615617564">pg_toast_temp*</strong>, as shown in the following figure.</p>
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001464363981__screen79561014619"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">SELECT</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="k">FROM</span><span class="w"> </span><span class="n">pg_namespace</span><span class="p">;</span>
</pre></div></td></tr></table></div>
</div>
<p id="EN-US_TOPIC_0000001464363981__p96313106613"><span><img id="EN-US_TOPIC_0000001464363981__image14001626269" src="figure/en-us_image_0000001414084876.png" title="Click to enlarge" class="imgResize"></span></p>
<p id="EN-US_TOPIC_0000001464363981__p6821205011510">These schemas are created when temporary tables are created. Each session has an independent schema starting with <strong id="EN-US_TOPIC_0000001464363981__b198584010588">pg_temp</strong> to ensure that the temporary tables are visible only to the current session. Therefore, you are not advised to manually delete schemas starting with <strong id="EN-US_TOPIC_0000001464363981__b9596149155814">pg_temp</strong> or <strong id="EN-US_TOPIC_0000001464363981__b19712155419587">pg_toast_temp</strong> during routine operations.</p>
<p id="EN-US_TOPIC_0000001464363981__p2302327693">Temporary tables are visible only in the current session and are automatically deleted after the session ends. The corresponding schemas are also deleted.</p>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_03_0065.html">Database Usage</a></div>
</div>
</div>
<script language="JavaScript">
<!--
image_size('.imgResize');
var msg_imageMax = "view original image";
var msg_imageClose = "close";
//--></script>