<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>OpenText Analytics Database 26.2.x – Workload management functions</title>
    <link>/en/sql-reference/functions/performance-analysis-functions/workload-management-functions/</link>
    <description>Recent content in Workload management functions on OpenText Analytics Database 26.2.x</description>
    <generator>Hugo -- gohugo.io</generator>
    
	  <atom:link href="/en/sql-reference/functions/performance-analysis-functions/workload-management-functions/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Sql-Reference: ANALYZE_WORKLOAD</title>
      <link>/en/sql-reference/functions/performance-analysis-functions/workload-management-functions/analyze-workload/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/performance-analysis-functions/workload-management-functions/analyze-workload/</guid>
      <description>
        
        
        &lt;p&gt;Runs Workload Analyzer, a utility that analyzes system information held in &lt;a href=&#34;../../../../../en/sql-reference/system-tables/&#34;&gt;system tables&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Workload Analyzer intelligently monitors the performance of SQL queries and workload history, resources, and configurations to identify the root causes for poor query performance. &lt;code&gt;ANALYZE_WORKLOAD&lt;/code&gt; returns tuning recommendations for all events within the scope and time that you specify, from system table 
&lt;code&gt;&lt;a href=&#34;../../../../../en/sql-reference/system-tables/v-monitor-schema/tuning-recommendations/#&#34;&gt;TUNING_RECOMMENDATIONS&lt;/a&gt;&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Tuning recommendations are based on a combination of &lt;a href=&#34;../../../../../en/admin/collecting-db-statistics/&#34;&gt;statistics&lt;/a&gt;, system and &lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/data-collector/&#34; title=&#34;A utility that collects and retains database monitoring information.&#34;&gt;data collector&lt;/a&gt; events, and database-table-projection design. Workload Analyzer recommendations can help you quickly and easily tune query performance.&lt;/p&gt;
&lt;p&gt;See &lt;a href=&#34;../../../../../en/admin/analyzing-workloads/workload-analyzer-recommendations/#&#34;&gt;Workload analyzer recommendations&lt;/a&gt; for the common triggering conditions and recommendations.&lt;/p&gt;
&lt;p&gt;This is a meta-function. You must call meta-functions in a top-level &lt;a href=&#34;../../../../../en/sql-reference/statements/select/#&#34;&gt;SELECT&lt;/a&gt; statement.&lt;/p&gt;

&lt;h2 id=&#34;behavior-type&#34;&gt;Behavior type&lt;/h2&gt;
&lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/volatile-functions/&#34; title=&#34;&#34;&gt;Volatile&lt;/a&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;ANALYZE_WORKLOAD ( &amp;#39;[ &lt;span class=&#34;code-variable&#34;&gt;scope&lt;/span&gt; ]&amp;#39; [, &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;since-time&lt;/span&gt;&amp;#39; | &lt;span class=&#34;code-variable&#34;&gt;save-data&lt;/span&gt; ] );
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;parameters&#34;&gt;Parameters&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;scope&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Specifies the catalog objects to analyze, as follows:
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;[[&lt;span class=&#34;code-variable&#34;&gt;database&lt;/span&gt;.]&lt;span class=&#34;code-variable&#34;&gt;schema.&lt;/span&gt;]&lt;span class=&#34;code-variable&#34;&gt;table&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;If set to an empty string, OpenText™ Analytics Database returns recommendations for all database objects.&lt;/p&gt;
&lt;p&gt;If you specify a database, it must be the current database.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;since-time &lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Specifies the start time for the analysis time span, which continues up to the current system status, inclusive. If you omit this parameter, &lt;code&gt;ANALYZE_WORKLOAD&lt;/code&gt; returns recommendations on events since the last time you called this function.

&lt;div class=&#34;alert admonition note&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Note&lt;/h4&gt;

&lt;p&gt;You must explicitly cast strings to &lt;code&gt;TIMESTAMP&lt;/code&gt; or &lt;code&gt;TIMESTAMPTZ&lt;/code&gt;. For example:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;SELECT ANALYZE_WORKLOAD(&amp;#39;T1&amp;#39;, &amp;#39;2010-10-04 11:18:15&amp;#39;::TIMESTAMPTZ);
SELECT ANALYZE_WORKLOAD(&amp;#39;T1&amp;#39;, TIMESTAMPTZ &amp;#39;2010-10-04 11:18:15&amp;#39;);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;save-data&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Specifies whether to save returned values from &lt;code&gt;ANALYZE_WORKLOAD&lt;/code&gt;:
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;false&lt;/code&gt; (default): Results are discarded.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;true&lt;/code&gt;: Saves the results returned by &lt;code&gt;ANALYZE_WORKLOAD&lt;/code&gt;. Subsequent calls to &lt;code&gt;ANALYZE_WORKLOAD&lt;/code&gt; return results that start from the last invocation when results were saved. Object events preceding that invocation are ignored.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;return-values&#34;&gt;Return values&lt;/h2&gt;
&lt;p&gt;Returns aggregated tuning recommendations from 
&lt;code&gt;&lt;a href=&#34;../../../../../en/sql-reference/system-tables/v-monitor-schema/tuning-recommendations/#&#34;&gt;TUNING_RECOMMENDATIONS&lt;/a&gt;&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;Superuser&lt;/p&gt;

&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;See &lt;a href=&#34;../../../../../en/admin/analyzing-workloads/getting-tuning-recommendations/#&#34;&gt;Getting tuning recommendations&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;see-also&#34;&gt;See also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/admin/analyzing-workloads/#&#34;&gt;Analyzing workloads&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/admin/analyzing-workloads/workload-analyzer-recommendations/#&#34;&gt;Workload analyzer recommendations&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: CHANGE_CURRENT_STATEMENT_RUNTIME_PRIORITY</title>
      <link>/en/sql-reference/functions/performance-analysis-functions/workload-management-functions/change-current-statement-runtime-priority/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/performance-analysis-functions/workload-management-functions/change-current-statement-runtime-priority/</guid>
      <description>
        
        
        &lt;p&gt;Changes the run-time priority of an active query.

&lt;div class=&#34;alert admonition note&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Note&lt;/h4&gt;

This function replaces deprecated function &lt;code&gt;CHANGE_RUNTIME_PRIORITY&lt;/code&gt;.

&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;This is a meta-function. You must call meta-functions in a top-level &lt;a href=&#34;../../../../../en/sql-reference/statements/select/#&#34;&gt;SELECT&lt;/a&gt; statement.&lt;/p&gt;

&lt;h2 id=&#34;behavior-type&#34;&gt;Behavior type&lt;/h2&gt;
&lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/volatile-functions/&#34; title=&#34;&#34;&gt;Volatile&lt;/a&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;CHANGE_CURRENT_STATEMENT_RUNTIME_PRIORITY(&lt;span class=&#34;code-variable&#34;&gt;transaction-id&lt;/span&gt;, &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;value&#39;&lt;/span&gt;)
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;parameters&#34;&gt;Parameters&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;transaction-id&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Identifies the transaction, obtained from the system table 
&lt;code&gt;&lt;a href=&#34;../../../../../en/sql-reference/system-tables/v-monitor-schema/sessions/#&#34;&gt;SESSIONS&lt;/a&gt;&lt;/code&gt;.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;value&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;The &lt;code&gt;RUNTIMEPRIORITY&lt;/code&gt; value: &lt;code&gt;HIGH&lt;/code&gt;, &lt;code&gt;MEDIUM&lt;/code&gt;, or &lt;code&gt;LOW&lt;/code&gt;.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/db-superuser/&#34; title=&#34;&#34;&gt;Superuser&lt;/a&gt;: None&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Non-superusers can only change the runtime priority of their own queries, and cannot raise the runtime priority of a query to a level higher than that of the resource pool.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;See &lt;a href=&#34;../../../../../en/admin/managing-db/managing-workloads/managing-resources-query-run-time/changing-runtime-priority-of-running-query/#&#34;&gt;Changing runtime priority of a running query&lt;/a&gt;.&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: CHANGE_RUNTIME_PRIORITY</title>
      <link>/en/sql-reference/functions/performance-analysis-functions/workload-management-functions/change-runtime-priority/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/performance-analysis-functions/workload-management-functions/change-runtime-priority/</guid>
      <description>
        
        
        &lt;p&gt;Changes the run-time priority of a query that is actively running. Note that, while this function is still valid, you should instead use &lt;code&gt;CHANGE_CURRENT_STATEMENT_RUNTIME_PRIORITY&lt;/code&gt; to change run-time priority. &lt;code&gt;CHANGE_RUNTIME_PRIORITY&lt;/code&gt; will be deprecated in a future release of OpenText™ Analytics Database.&lt;/p&gt;
&lt;p&gt;This is a meta-function. You must call meta-functions in a top-level &lt;a href=&#34;../../../../../en/sql-reference/statements/select/#&#34;&gt;SELECT&lt;/a&gt; statement.&lt;/p&gt;

&lt;h2 id=&#34;behavior-type&#34;&gt;Behavior type&lt;/h2&gt;
&lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/volatile-functions/&#34; title=&#34;&#34;&gt;Volatile&lt;/a&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;CHANGE_RUNTIME_PRIORITY(TRANSACTION_ID,STATEMENT_ID, &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;value&#39;&lt;/span&gt;)
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;parameters&#34;&gt;Parameters&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;TRANSACTION_ID&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;An identifier for the transaction within the session.
&lt;p&gt;&lt;code&gt;TRANSACTION_ID&lt;/code&gt; cannot be NULL.&lt;/p&gt;
&lt;p&gt;You can find the transaction ID in the Sessions table.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;STATEMENT_ID&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;A unique numeric ID assigned by the database catalog, which identifies the currently executing statement.
&lt;p&gt;You can find the statement ID in the Sessions table.&lt;/p&gt;
&lt;p&gt;You can specify NULL to change the run-time priority of the currently running query within the transaction.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;&lt;span class=&#34;code-variable&#34;&gt;&#39;value&#39;&lt;/span&gt;&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The &lt;code&gt;RUNTIMEPRIORITY&lt;/code&gt; value. Can be HIGH, MEDIUM, or LOW.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;No special privileges required. However, non-superusers can change the run-time priority of their own queries only. In addition, non-superusers can never raise the run-time priority of a query to a level higher than that of the resource pool.&lt;/p&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT CHANGE_RUNTIME_PRIORITY(45035996273705748, NULL, &amp;#39;low&amp;#39;);
&lt;/code&gt;&lt;/pre&gt;
      </description>
    </item>
    
    <item>
      <title>Sql-Reference: MOVE_STATEMENT_TO_RESOURCE_POOL</title>
      <link>/en/sql-reference/functions/performance-analysis-functions/workload-management-functions/move-statement-to-resource-pool/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/performance-analysis-functions/workload-management-functions/move-statement-to-resource-pool/</guid>
      <description>
        
        
        &lt;p&gt;Attempts to move the specified query to the specified target pool.&lt;/p&gt;
&lt;p&gt;This is a meta-function. You must call meta-functions in a top-level &lt;a href=&#34;../../../../../en/sql-reference/statements/select/#&#34;&gt;SELECT&lt;/a&gt; statement.&lt;/p&gt;

&lt;h2 id=&#34;behavior-type&#34;&gt;Behavior type&lt;/h2&gt;
&lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/volatile-functions/&#34; title=&#34;&#34;&gt;Volatile&lt;/a&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;MOVE_STATEMENT_TO_RESOURCE_POOL (&lt;span class=&#34;code-variable&#34;&gt;session_id&lt;/span&gt; , &lt;span class=&#34;code-variable&#34;&gt;transaction_id&lt;/span&gt;, &lt;span class=&#34;code-variable&#34;&gt;statement_id&lt;/span&gt;, &lt;span class=&#34;code-variable&#34;&gt;target_resource_pool_name&lt;/span&gt;)
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;parameters&#34;&gt;Parameters&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;&lt;span class=&#34;code-variable&#34;&gt;session_id&lt;/span&gt;&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Identifier for the session where the query you want to move is currently executing.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;&lt;span class=&#34;code-variable&#34;&gt;transaction_id&lt;/span&gt;&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Identifier for the transaction within the session.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;&lt;span class=&#34;code-variable&#34;&gt;statement_id&lt;/span&gt;&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Unique numeric ID for the statement you want to move.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;&lt;span class=&#34;code-variable&#34;&gt;target_resource_pool_name&lt;/span&gt;&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Name of the existing resource pool to which you want to move the specified query.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;outputs&#34;&gt;Outputs&lt;/h2&gt;
&lt;p&gt;The function may return the following results:

&lt;table class=&#34;table table-bordered&#34; &gt;



&lt;tr&gt; 

&lt;td &gt;
MOV_REPLAN: Target pool does not have sufficient resources. See v_monitor.resource_pool_move for details. OpenText™ Analytics Database will attempt to replan the statement on target pool.&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
MOV_REPLAN: Target pool has priority HOLD. The database will attempt to replan the statement on target pool.&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
MOV_FAILED: Statement not found.&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
MOV_NO_OP: Statement already on target pool.&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
MOV_REPLAN: Statement is in queue. The database will attempt to replan the statement on target pool.&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
MOV_SUCC: Statement successfully moved to target pool.&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/p&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;Superuser&lt;/p&gt;

&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;The following example shows how you can move a specific statement to a resource pool called my_target_pool:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT MOVE_STATEMENT_TO_RESOURCE_POOL (&amp;#39;v_vmart_node0001.example.-31427:0x82fbm&amp;#39;, 45035996273711993, 1, &amp;#39;my_target_pool&amp;#39;);
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;see-also&#34;&gt;See also:&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/admin/managing-db/managing-workloads/managing-resources-query-run-time/move-queries-manually/#&#34;&gt;Manually moving queries to different resource pools&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/sql-reference/system-tables/v-monitor-schema/resource-pool-move/#&#34;&gt;RESOURCE_POOL_MOVE&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: SLEEP</title>
      <link>/en/sql-reference/functions/performance-analysis-functions/workload-management-functions/sleep/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/performance-analysis-functions/workload-management-functions/sleep/</guid>
      <description>
        
        
        &lt;p&gt;Waits a specified number of seconds before executing another statement or command.&lt;/p&gt;
&lt;p&gt;This is a meta-function. You must call meta-functions in a top-level &lt;a href=&#34;../../../../../en/sql-reference/statements/select/#&#34;&gt;SELECT&lt;/a&gt; statement.&lt;/p&gt;

&lt;h2 id=&#34;behavior-type&#34;&gt;Behavior type&lt;/h2&gt;
&lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/volatile-functions/&#34; title=&#34;&#34;&gt;Volatile&lt;/a&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;SLEEP( &lt;span class=&#34;code-variable&#34;&gt;seconds &lt;/span&gt;)
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;parameters&#34;&gt;Parameters&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;&lt;span class=&#34;code-variable&#34;&gt;seconds&lt;/span&gt;&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The wait time, specified in one or more seconds (0 or higher) expressed as a positive integer. Single quotes are optional; for example, &lt;code&gt;SLEEP(3)&lt;/code&gt; is the same as &lt;code&gt;SLEEP(&#39;3&#39;)&lt;/code&gt;.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;notes&#34;&gt;Notes&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;This function returns value 0 when successful; otherwise it returns an error message due to syntax errors.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;You cannot cancel a sleep operation.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Be cautious when using SLEEP() in an environment with shared resources, such as in combination with transactions that take exclusive locks.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;The following command suspends execution for 100 seconds:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT SLEEP(100);
 sleep
-------
     0
(1 row)
&lt;/code&gt;&lt;/pre&gt;
      </description>
    </item>
    
  </channel>
</rss>
