<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>OpenText Analytics Database 26.2.x – Meta-commands</title>
    <link>/en/connecting-to/using-vsql/meta-commands/</link>
    <description>Recent content in Meta-commands on OpenText Analytics Database 26.2.x</description>
    <generator>Hugo -- gohugo.io</generator>
    
	  <atom:link href="/en/connecting-to/using-vsql/meta-commands/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Connecting-To: Meta-commands quick reference</title>
      <link>/en/connecting-to/using-vsql/meta-commands/meta-commands-quick-reference/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/connecting-to/using-vsql/meta-commands/meta-commands-quick-reference/</guid>
      <description>
        
        
        
&lt;table class=&#34;table table-bordered&#34; &gt;



&lt;tr&gt; 

&lt;th &gt;
Syntax&lt;/th&gt; 

&lt;th &gt;
Summary&lt;/th&gt; 

&lt;th &gt;
&lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/&#34;&gt;Command-line Options&lt;/a&gt;&lt;/th&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;\! [&lt;/code&gt;&lt;em&gt;&lt;code&gt;cmd&lt;/code&gt;&lt;/em&gt;&lt;code&gt;]&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;
Executes a command in a Linux shell (passing arguments as entered) or starts an interactive shell.&lt;/td&gt; 

&lt;td &gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;\?&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;
Displays help information about all meta-commands, the same as &lt;code&gt;\h&lt;/code&gt;.&lt;/td&gt; 

&lt;td &gt;
&lt;code&gt;?&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;\a&lt;/code&gt;&lt;br /&gt;&lt;/td&gt; 

&lt;td &gt;



Toggles output format alignment. For details, see
&lt;code&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/meta-commands/pset/#&#34;&gt;\pset format aligned&lt;/a&gt;&lt;/code&gt;.&lt;/td&gt; 

&lt;td &gt;


&lt;code&gt;-A&lt;/code&gt;&lt;br /&gt;&lt;code&gt;-no-align&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;\b&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;
Toggles beep on command completion.&lt;/td&gt; 

&lt;td &gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;

&lt;code&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/meta-commands/connect/#&#34;&gt;\c[connect]&lt;/a&gt; [&lt;span class=&#34;code-variable&#34;&gt;db&lt;/span&gt; [&lt;span class=&#34;code-variable&#34;&gt;user-name&lt;/span&gt;]]&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;



Establishes a connection to database &lt;em&gt;&lt;code&gt;db&lt;/code&gt;&lt;/em&gt;, under the specified user &lt;em&gt;&lt;code&gt;user-name&lt;/code&gt;&lt;/em&gt;. For details, see
&lt;code&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/meta-commands/connect/#&#34;&gt;\connect&lt;/a&gt;&lt;/code&gt;.&lt;/td&gt; 

&lt;td &gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;\C [&#39;&lt;/code&gt;&lt;em&gt;&lt;code&gt;title-str&lt;/code&gt;&lt;/em&gt;&lt;code&gt;&#39;]&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;


Sets a title &lt;em&gt;&lt;code&gt;title-str&lt;/code&gt;&lt;/em&gt; that precedes query result output. For details, see &lt;a href=&#34;../../../../en/connecting-to/using-vsql/meta-commands/pset/&#34;&gt;&lt;code&gt;\pset title&lt;/code&gt; &lt;em&gt;&lt;code&gt;title-str&lt;/code&gt;&lt;/em&gt;&lt;/a&gt;.&lt;/td&gt; 

&lt;td &gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;\cd [&lt;/code&gt;&lt;em&gt;&lt;code&gt;dir&lt;/code&gt;&lt;/em&gt;&lt;code&gt;]&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;
Changes the current working directory to &lt;em&gt;&lt;code&gt;dir&lt;/code&gt;&lt;/em&gt;, changes to your home directory if you omit specifying a directory.&lt;/td&gt; 

&lt;td &gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;\d&lt;/code&gt; commands&lt;/td&gt; 

&lt;td &gt;
See &lt;a href=&#34;../../../../en/connecting-to/using-vsql/meta-commands/d-meta-commands/#&#34;&gt;\d meta-commands&lt;/a&gt;&lt;/td&gt; 

&lt;td &gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;

&lt;code&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/meta-commands/edit/#&#34;&gt;\e[dit]&lt;/a&gt; [&lt;span class=&#34;code-variable&#34;&gt;file&lt;/span&gt;]&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;

Edits the query buffer (or specified file) with an external editor. For details, see
&lt;code&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/meta-commands/edit/#&#34;&gt;\edit&lt;/a&gt;&lt;/code&gt;.&lt;/td&gt; 

&lt;td &gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;\echo [&lt;/code&gt;&lt;em&gt;&lt;code&gt;str&lt;/code&gt;&lt;/em&gt;&lt;code&gt;]&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;









&lt;p&gt;Writes &lt;em&gt;&lt;code&gt;str&lt;/code&gt;&lt;/em&gt; to standard output.&lt;/p&gt;
&lt;div class=&#34;alert admonition tip&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Tip&lt;/h4&gt;
&lt;p&gt;Use &lt;code&gt;\qecho&lt;/code&gt; to redirect query output to the query output stream, as set by &lt;code&gt;\o&lt;/code&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;/td&gt; 

&lt;td &gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;\f  [&lt;/code&gt;&lt;em&gt;&lt;code&gt;str&lt;/code&gt;&lt;/em&gt;&lt;code&gt;]&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;
Sets the field separator for unaligned query output. The default is the vertical bar (|).&lt;/td&gt; 

&lt;td &gt;
&lt;code&gt;-F&lt;/code&gt;&lt;br /&gt;&lt;code&gt;--field-separator&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;\g [&lt;/code&gt;&lt;em&gt;&lt;code&gt;file-name&lt;/code&gt;&lt;/em&gt;&lt;code&gt;|&lt;/code&gt;&lt;em&gt;&lt;code&gt;shell-command&lt;/code&gt;&lt;/em&gt;&lt;code&gt;]&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;
Sends the query in the input buffer (see &lt;code&gt;\p&lt;/code&gt;) to the server. You can send query results to &lt;em&gt;&lt;code&gt;file-name&lt;/code&gt;&lt;/em&gt;, or pipe results to &lt;em&gt;&lt;code&gt;shell-comand&lt;/code&gt;&lt;/em&gt;; otherwise, &lt;code&gt;\g&lt;/code&gt; sends query results to standard output.&lt;/td&gt; 

&lt;td &gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;\H&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;

Renders output in HTML markup as a table. For details, see
&lt;code&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/meta-commands/pset/#&#34;&gt;\pset format aligned&lt;/a&gt;&lt;/code&gt;.&lt;/td&gt; 

&lt;td &gt;
&lt;code&gt;-H&lt;/code&gt;&lt;br /&gt;&lt;code&gt;--html&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;\h[elp]&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;
Displays help information about the meta-commands, the same as &lt;code&gt;\?&lt;/code&gt;.&lt;/td&gt; 

&lt;td &gt;
&lt;code&gt;--help&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;\i &lt;/code&gt;&lt;em&gt;&lt;code&gt;file&lt;/code&gt;&lt;/em&gt;&lt;/td&gt; 

&lt;td &gt;
Reads and executes input from filename.&lt;/td&gt; 

&lt;td &gt;
&lt;code&gt;-f&lt;/code&gt;&lt;br /&gt;&lt;code&gt;--file&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;

&lt;code&gt;\l \list&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;
Lists available databases and owners.&lt;/td&gt; 

&lt;td &gt;
&lt;code&gt;-l&lt;/code&gt;&lt;br /&gt;&lt;code&gt;--list&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;\locale [&lt;/code&gt;&lt;em&gt;&lt;code&gt;locale&lt;/code&gt;&lt;/em&gt;&lt;code&gt;]&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;

Displays the current locale setting or sets a new locale for the session. For details, see
&lt;code&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/meta-commands/locale/#&#34;&gt;\locale&lt;/a&gt;&lt;/code&gt;.&lt;/td&gt; 

&lt;td &gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;\o [&lt;/code&gt;&lt;em&gt;&lt;code&gt;file-name&lt;/code&gt;&lt;/em&gt;&lt;code&gt;|&lt;/code&gt;&lt;em&gt;&lt;code&gt;shell-command&lt;/code&gt;&lt;/em&gt;&lt;code&gt;]&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;


Controls where vsql directs query output. You can send query results to &lt;em&gt;&lt;code&gt;file-name&lt;/code&gt;&lt;/em&gt;, or pipe results to &lt;em&gt;&lt;code&gt;shell-comand&lt;/code&gt;&lt;/em&gt;; otherwise, &lt;code&gt;\o&lt;/code&gt; sends query results to standard output.&lt;/td&gt; 

&lt;td &gt;
&lt;code&gt;-o&lt;/code&gt;&lt;br /&gt;&lt;code&gt;--output&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;\p&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;
Prints the current query buffer to standard output.&lt;/td&gt; 

&lt;td &gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;\password [&lt;/code&gt;&lt;em&gt;&lt;code&gt;user-name&lt;/code&gt;&lt;/em&gt;&lt;code&gt;]&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;
Starts the password change process. Superusers can specify a user name to change that user&#39;s password; otherwise, users can only change their own passwords.&lt;/td&gt; 

&lt;td &gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;

&lt;code&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/meta-commands/pset/#&#34;&gt;\pset&lt;/a&gt; &lt;span class=&#34;code-variable&#34;&gt;output-option&lt;/span&gt;&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;

Sets options that control how OpenText™ Analytics Database formats query result output. For details, see
&lt;code&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/meta-commands/pset/#&#34;&gt;\pset&lt;/a&gt;&lt;/code&gt;.&lt;/td&gt; 

&lt;td &gt;
&lt;code&gt;-P&lt;/code&gt;&lt;br /&gt;&lt;code&gt;--pset&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;\q&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;
Quits the vsql program&lt;/td&gt; 

&lt;td &gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;\qecho [&lt;/code&gt;&lt;em&gt;&lt;code&gt;str&lt;/code&gt;&lt;/em&gt;&lt;code&gt;]&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;
Writes &lt;em&gt;&lt;code&gt;str&lt;/code&gt;&lt;/em&gt; to the query output stream, as specified by by &lt;code&gt;\o&lt;/code&gt;.&lt;/td&gt; 

&lt;td &gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;\r&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;
Clears (resets) the query buffer&lt;/td&gt; 

&lt;td &gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;\s [&lt;/code&gt;&lt;em&gt;&lt;code&gt;file&lt;/code&gt;&lt;/em&gt;&lt;code&gt;]&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;
Valid only if vsql is configured to use the GNU Readline library, prints or saves the command line history to &lt;em&gt;&lt;code&gt;file&lt;/code&gt;&lt;/em&gt;, or to standard output if no file name is supplied.&lt;/td&gt; 

&lt;td &gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;

&lt;code&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/meta-commands/set/#&#34;&gt;\set&lt;/a&gt; [&lt;span class=&#34;code-variable&#34;&gt;var&lt;/span&gt; [&lt;span class=&#34;code-variable&#34;&gt;value&lt;/span&gt;]...]&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;


Sets internal variable &lt;em&gt;&lt;code&gt;var&lt;/code&gt;&lt;/em&gt; to &lt;em&gt;&lt;code&gt;value&lt;/code&gt;&lt;/em&gt;. If you specify multiple values, var is set to their concantenated values. If no values are specified, &lt;em&gt;&lt;code&gt;var&lt;/code&gt;&lt;/em&gt; is set to no value.&lt;/td&gt; 

&lt;td &gt;


&lt;code&gt;--set&lt;/code&gt;&lt;br /&gt;&lt;code&gt;-v&lt;/code&gt;&lt;br /&gt;&lt;code&gt;--variable&lt;/code&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;\t&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;

Toggles between tuples only and full display. For details, see
&lt;code&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/meta-commands/pset/#&#34;&gt;\pset format tuples_only&lt;/a&gt;&lt;/code&gt;.&lt;/td&gt; 

&lt;td &gt;
&lt;code&gt;-t&lt;/code&gt;&lt;br /&gt;&lt;code&gt;--tuples-only&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;\T &lt;/code&gt;&lt;em&gt;&lt;code&gt;html-attribute&lt;/code&gt;&lt;/em&gt;&lt;code&gt;[...]&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;

Specifies attributes to be placed inside the HTML &lt;code&gt;table&lt;/code&gt; tag—for example, &lt;code&gt;cellpadding&lt;/code&gt; or &lt;code&gt;bgcolor&lt;/code&gt;, the same as
&lt;code&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/meta-commands/pset/#&#34;&gt;\pset&lt;/a&gt; tableattr &lt;span class=&#34;code-variable&#34;&gt;html-attribute&lt;/span&gt;[...]&lt;/code&gt;. For sample usage, see &lt;a href=&#34;../../../../en/connecting-to/using-vsql/output-formatting-examples/#&#34;&gt;Output formatting examples&lt;/a&gt;.&lt;/td&gt; 

&lt;td &gt;
&lt;code&gt;-T&lt;/code&gt;&lt;br /&gt;&lt;code&gt;--table-attr&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;\timing&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;

If set to on, returns how long (in milliseconds) each SQL statement runs. For details, see
&lt;code&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/meta-commands/timing/#&#34;&gt;\timing&lt;/a&gt;&lt;/code&gt;.&lt;/td&gt; 

&lt;td &gt;
&lt;code&gt;-i&lt;/code&gt;&lt;br /&gt;&lt;code&gt;-- timing&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;\unset &lt;/code&gt;&lt;em&gt;&lt;code&gt;var&lt;/code&gt;&lt;/em&gt;&lt;/td&gt; 

&lt;td &gt;
Deletes internal variable &lt;em&gt;&lt;code&gt;var&lt;/code&gt;&lt;/em&gt; that was set by the meta-command &lt;code&gt;\set&lt;/code&gt; .&lt;/td&gt; 

&lt;td &gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;\w &lt;/code&gt;&lt;em&gt;&lt;code&gt;file-name&lt;/code&gt;&lt;/em&gt;&lt;/td&gt; 

&lt;td &gt;
Outputs the current query buffer to file &lt;em&gt;&lt;code&gt;file-name&lt;/code&gt;&lt;/em&gt;.&lt;/td&gt; 

&lt;td &gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;\x&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;



Toggles between regular and expanded format. For details, see
&lt;code&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/meta-commands/pset/#&#34;&gt;\pset format expanded&lt;/a&gt;&lt;/code&gt;.&lt;/td&gt; 

&lt;td &gt;
&lt;code&gt;-x&lt;/code&gt;&lt;br /&gt;&lt;code&gt;--expanded&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;\z&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;

















&lt;p&gt;Returns a summary of privileges on all objects in system table
&lt;code&gt;&lt;a href=&#34;../../../../en/sql-reference/system-tables/v-catalog-schema/grants/#&#34;&gt;V_CATALOG.GRANTS&lt;/a&gt;&lt;/code&gt;: grantee, grantor, privileges, schema, and object name (equivalent to
&lt;code&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/meta-commands/d-meta-commands/#&#34;&gt;\dp&lt;/a&gt;&lt;/code&gt;).&lt;/p&gt;
&lt;p&gt;&lt;code&gt;\z&lt;/code&gt; supports the same options as &lt;code&gt;\dp&lt;/code&gt; for filtering output by schema and object name patterns, . For example:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;&amp;gt; \z *.*myseq*
     Access privileges for database &amp;#34;dbadmin&amp;#34;
 Grantee | Grantor | Privileges | Schema |  Name
---------+---------+------------+--------+--------
 dbadmin | dbadmin | SELECT*    | public | mySeq
 dbadmin | dbadmin | SELECT*    | public | mySeq2
(2 rows)
&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt; 

&lt;td &gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;


      </description>
    </item>
    
    <item>
      <title>Connecting-To: \connect</title>
      <link>/en/connecting-to/using-vsql/meta-commands/connect/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/connecting-to/using-vsql/meta-commands/connect/</guid>
      <description>
        
        
        &lt;p&gt;Establishes a connection to database &lt;em&gt;&lt;code&gt;db&lt;/code&gt;&lt;/em&gt;, under the specified user &lt;em&gt;&lt;code&gt;user-name&lt;/code&gt;&lt;/em&gt;. The previous connection is closed. If you omit specifying a database name, OpenText™ Analytics Database connects to the current database. If you omit specifying a user name argument, the database assumes the current user.&lt;/p&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;\c[connect] [&lt;span class=&#34;code-variable&#34;&gt;db&lt;/span&gt; [&lt;span class=&#34;code-variable&#34;&gt;user-name&lt;/span&gt;]]
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;error-handling&#34;&gt;Error handling&lt;/h2&gt;
&lt;p&gt;Errors that prevent execution include specifying an unknown user and denial of access to the specified database. The database handles errors differently, depending on whether this command is executed interactively in vsql, or in a script:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;VSQL handling: The current connection is maintained.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Script: Processing immediately stops with an error. This is prevents scripts from acting on the wrong database.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Connecting-To: \d meta-commands</title>
      <link>/en/connecting-to/using-vsql/meta-commands/d-meta-commands/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/connecting-to/using-vsql/meta-commands/d-meta-commands/</guid>
      <description>
        
        
        &lt;p&gt;OpenText™ Analytics Database supports a number of &lt;code&gt;\d&lt;/code&gt; commands, which return information on different categories of database objects. For a full list, see &lt;a href=&#34;#-d&#34;&gt;\d Reference&lt;/a&gt; below.&lt;/p&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;p&gt;Unless otherwise noted, &lt;code&gt;\d&lt;/code&gt; commands generally conform to the following syntax:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;\&lt;span class=&#34;code-variable&#34;&gt;dCommand&lt;/span&gt; [ [&lt;span class=&#34;code-variable&#34;&gt;schema&lt;/span&gt;.]&lt;span class=&#34;code-variable&#34;&gt;pattern&lt;/span&gt; ]
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;arguments&#34;&gt;Arguments&lt;/h2&gt;
&lt;p&gt;You can supply most \d commands with a string pattern argument, which filters the results that the command returns. The pattern can optionally be qualified by a schema name.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;schema&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Valid for most &lt;code&gt;\d&lt;/code&gt; commands, restricts output to only database objects in &lt;em&gt;&lt;code&gt;schema&lt;/code&gt;&lt;/em&gt;. For example, the following &lt;code&gt;\dp&lt;/code&gt; command obtains privileges information for all &lt;code&gt;V_MONITOR&lt;/code&gt; tables that contain the string &lt;code&gt;resource&lt;/code&gt;:
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; \dp V_MONITOR.*resource*
                Access privileges for database &amp;#34;dbadmin&amp;#34;
 Grantee | Grantor | Privileges |  Schema   |            Name
---------+---------+------------+-----------+----------------------------
 public  | dbadmin | SELECT     | v_monitor | resource_rejections
 public  | dbadmin | SELECT     | v_monitor | disk_resource_rejections
 public  | dbadmin | SELECT     | v_monitor | resource_usage
 public  | dbadmin | SELECT     | v_monitor | resource_acquisitions
 public  | dbadmin | SELECT     | v_monitor | resource_rejection_details
 public  | dbadmin | SELECT     | v_monitor | resource_pool_move
 public  | dbadmin | SELECT     | v_monitor | host_resources
 public  | dbadmin | SELECT     | v_monitor | node_resources
 public  | dbadmin | SELECT     | v_monitor | resource_queues
 public  | dbadmin | SELECT     | v_monitor | resource_pool_status
(10 rows)
  
&lt;/code&gt;&lt;/pre&gt;&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;pattern&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Returns only the database objects that match the specified string. Pattern strings can include the following wildcards:
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;*&lt;/code&gt; (asterisk): zero or more characters.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;?&lt;/code&gt; (question mark): any single character.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For example, the following &lt;code&gt;\dt&lt;/code&gt; command returns tables that start with the string &lt;code&gt;store&lt;/code&gt;:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; \dt store*
                     List of tables
 Schema |       Name        | Kind  |  Owner  | Comment
--------+-------------------+-------+---------+---------
 public | store_orders      | table | dbadmin |
 public | store_orders_2018 | table | dbadmin |
 public | store_overseas    | table | dbadmin |
 store  | store_dimension   | table | dbadmin |
 store  | store_orders_fact | table | dbadmin |
 store  | store_sales_fact  | table | dbadmin |
(6 rows)
  
&lt;/code&gt;&lt;/pre&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;p&gt;&lt;a name=&#34;-d&#34;&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&#34;d-reference&#34;&gt;\d reference&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;\d&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Unqualified by a pattern argument, returns all tables with their schema names, owners, and comments. If qualified by a pattern argument, &lt;code&gt;\d&lt;/code&gt; returns all matching tables and all columns in each table, with details about each column, such as data type, size, and default value.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;\df&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Returns all function names, the function return data type, and the function argument data type. Also returns the procedure names and arguments for all procedures that are available to the user.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;\dj&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Returns all projections showing the schema, projection name, owner, and node. The returned rows include superprojections, live aggregate projections, Top-K projections, and projections with expressions.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;\dn&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Returns the schema names and schema owner.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;\dp&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Returns a summary of privileges on all objects in system table 
&lt;code&gt;&lt;a href=&#34;../../../../en/sql-reference/system-tables/v-catalog-schema/grants/#&#34;&gt;V_CATALOG.GRANTS&lt;/a&gt;&lt;/code&gt;: grantee, grantor, privileges, schema, and object name (equivalent to 
&lt;code&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/meta-commands/meta-commands-quick-reference/#&#34;&gt;\z&lt;/a&gt;&lt;/code&gt;).&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;\dS&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Unqualified by a pattern argument, returns all &lt;code&gt;V_CATALOG&lt;/code&gt; and &lt;code&gt;V_MONITOR&lt;/code&gt; system tables. To obtain system tables for just one schema, qualify the command with the schema name, as follows:
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;\dS { V_CATALOG | V_MONITOR }.*
&lt;/code&gt;&lt;/pre&gt;&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;\ds&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Returns sequences and their parameters.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;\dT&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Returns all data types that the database supports.

&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;code&gt;\dT&lt;/code&gt; returns no results if qualified with a pattern argument.

&lt;/div&gt;&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;\dt&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Unqualified by a pattern argument, returns the same information as an unqualified &lt;code&gt;\d&lt;/code&gt; command. If qualified by a pattern argument, &lt;code&gt;\dt&lt;/code&gt; returns matching tables with the same level of detail as an unqualified &lt;code&gt;\dt&lt;/code&gt; command.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;\dtv&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Returns tables and views.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;\du&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Returns database users and whether they are superusers.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;\dv&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Unqualified by a pattern argument, returns all views with their schema names, owners, and comments. If qualified by a pattern argument, &lt;code&gt;\dv&lt;/code&gt; returns all matching views and the columns in each view, with each column&#39;s data type and size.&lt;/dd&gt;
&lt;/dl&gt;

      </description>
    </item>
    
    <item>
      <title>Connecting-To: \edit</title>
      <link>/en/connecting-to/using-vsql/meta-commands/edit/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/connecting-to/using-vsql/meta-commands/edit/</guid>
      <description>
        
        
        &lt;p&gt;Edits the query buffer (or specified file) with an external editor. When the editor exits, its content is copied back to the query buffer. If no argument is given, the current query buffer is copied to a temporary file which is then edited in the same fashion.&lt;/p&gt;
&lt;p&gt;The new query buffer is then re-parsed according to the normal rules of vsql, where the whole buffer up to the first semicolon is treated as a single line. (Thus you cannot make scripts this way. Use &lt;a href=&#34;../../../../en/connecting-to/using-vsql/meta-commands/i/&#34;&gt;&lt;code&gt;\i&lt;/code&gt;&lt;/a&gt; for that.) If there is no semicolon, vsql waits for one to be entered (it does not execute the query buffer).

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

vsql searches the environment variables VSQL_EDITOR, EDITOR, and VISUAL (in that order) for an editor to use. If all of them are unset, vi is used on Linux systems, notepad.exe on Windows systems.

&lt;/div&gt;&lt;/p&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;\e[dit] [ &lt;span class=&#34;code-variable&#34;&gt;file&lt;/span&gt; ]
&lt;/code&gt;&lt;/pre&gt;
      </description>
    </item>
    
    <item>
      <title>Connecting-To: \i</title>
      <link>/en/connecting-to/using-vsql/meta-commands/i/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/connecting-to/using-vsql/meta-commands/i/</guid>
      <description>
        
        
        &lt;p&gt;&lt;code&gt;R&lt;/code&gt;eads and executes input from the specified file.

&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;

To see the lines on the screen as they are read, set the variable &lt;a href=&#34;../../../../en/connecting-to/using-vsql/variables/echo/#&#34;&gt;ECHO&lt;/a&gt; to all.

&lt;/div&gt;&lt;/p&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;\i &lt;span class=&#34;code-variable&#34;&gt;filename&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;The OpenText™ Analytics Database vsql client on Linux supports backquote (backtick) expansion. For example:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Set an environment variable to a path that contains scripts you want to run:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ export MYSCRIPTS=/home/dbadmin/testscripts
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Issue the vsql command.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ vsql
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Use backquote expansion to include the path for running an existing script—for example, &lt;code&gt;sample.sql&lt;/code&gt;.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; \i `echo $MYSCRIPTS/sample.sql`
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;/ol&gt;

      </description>
    </item>
    
    <item>
      <title>Connecting-To: \locale</title>
      <link>/en/connecting-to/using-vsql/meta-commands/locale/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/connecting-to/using-vsql/meta-commands/locale/</guid>
      <description>
        
        
        &lt;p&gt;Displays or sets the locale setting for the current session.

&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 command does not alter the default locale for all database sessions. To change the default for all sessions, set configuration parameter &lt;a href=&#34;../../../../en/sql-reference/config-parameters/internationalization-parameters/#DefaultSessionLocale&#34;&gt;DefaultSessionLocale&lt;/a&gt;.

&lt;/div&gt;&lt;/p&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;\locale [&lt;span class=&#34;code-variable&#34;&gt;locale-identifier&lt;/span&gt;]
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;arguments&#34;&gt;Arguments&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;locale-identifier&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Specifies the ICU locale identifier to use, by default set to:
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;en_US@collation=binary
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;If set to an empty string, OpenText™ Analytics Database sets locale to &lt;code&gt;en_US_POSIX&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;If you omit this argument, &lt;code&gt;\locale&lt;/code&gt; returns the current locale setting.&lt;/p&gt;
&lt;p&gt;For details on identifier options, see &lt;a href=&#34;../../../../en/admin/about-locale/#&#34;&gt;About locale&lt;/a&gt;. For a complete list of locale identifiers, see the &lt;a href=&#34;http://userguide.icu-project.org/locale&#34;&gt;ICU Project&lt;/a&gt;.&lt;/p&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;View the current locale setting:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; \locale
en_US@collation=binary
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Change the default locale for this session:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; \locale en_GBINFO:
INFO 2567:  Canonical locale: &amp;#39;en_GBINFO:&amp;#39;
Standard collation: &amp;#39;LEN&amp;#39;
English (GBINFO:)
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;notes&#34;&gt;Notes&lt;/h2&gt;
&lt;p&gt;The server locale settings impact only the collation behavior for server-side query processing. The client application is responsible for ensuring that the correct locale is set in order to display the characters correctly. OpenText recommends the following best practices to ensure predictable results:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;The locale setting in the terminal emulator for vsql (POSIX) should be set to be equivalent to session locale setting on server side (ICU) so data is collated correctly on the server and displayed correctly on the client.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The vsql locale should be set using the POSIX LANG environment variable in terminal emulator. Refer to the documentation of your terminal emulator for how to set locale.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Server session locale should be set using the set as described in &lt;a href=&#34;../../../../en/admin/configuring-db/config-procedure/implement-locales-international-data-sets/specify-default-locale-db/#&#34;&gt;Specify the default locale for the database&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;All input data for vsql should be in UTF-8 and all output data is encoded in UTF-8.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Non UTF-8 encodings and associated locale values are not supported.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Connecting-To: \pset</title>
      <link>/en/connecting-to/using-vsql/meta-commands/pset/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/connecting-to/using-vsql/meta-commands/pset/</guid>
      <description>
        
        
        &lt;p&gt;Sets options that control how OpenText™ Analytics Database formats query result output.&lt;/p&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;\pset &lt;span class=&#34;code-variable&#34;&gt;output-option&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;output-options&#34;&gt;Output options&lt;/h2&gt;

&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;

Unless otherwise specified, output options are valid for all formats.

&lt;/div&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;format &lt;/code&gt;&lt;em&gt;&lt;code&gt;format-option&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Sets output format, where &lt;em&gt;&lt;code&gt;format-option&lt;/code&gt;&lt;/em&gt; is one of the following:
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;u[naligned]&lt;/code&gt; writes all column data of each row on a single line, where each field is separated only by the current separator character. Use this output for use as input to other programs—for example, comma-delimited fields for CSV input.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;a[ligned]&lt;/code&gt; (default): Renders column-aligned output.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;h[tml]&lt;/code&gt;: Renders output in HTML markup as a table.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;l[atex]&lt;/code&gt;: Renders output in LaTex markup.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;border &lt;/code&gt;&lt;em&gt;&lt;code&gt;int&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Valid only if output format is set to &lt;code&gt;html&lt;/code&gt;, specifies the table border, where &lt;em&gt;&lt;code&gt;int&lt;/code&gt;&lt;/em&gt; specifies the border type.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;expanded&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Toggles between regular and expanded format. When expanded format is enabled, all output has two columns with the column name on the left and the data on the right. This mode is especially useful for wide tables.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;fieldsep &#39;&lt;/code&gt;&lt;em&gt;&lt;code&gt;arg&lt;/code&gt;&lt;/em&gt;&lt;code&gt;&#39;&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Valid only if output format is set to &lt;code&gt;unaligned&lt;/code&gt;, specifies the field separator, by default &lt;code&gt;|&lt;/code&gt; (vertical bar).
&lt;p&gt;For example, to specify tab as the field separator:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;\pset fieldsep &amp;#39;\t&amp;#39;
&lt;/code&gt;&lt;/pre&gt;&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;footer&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Toggles display of the default footer:
&lt;p&gt;&lt;code&gt;(&lt;/code&gt;&lt;em&gt;&lt;code&gt;int&lt;/code&gt;&lt;/em&gt;&lt;code&gt; rows)&lt;/code&gt;&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;null &#39;&lt;/code&gt;&lt;em&gt;&lt;code&gt;string&lt;/code&gt;&lt;/em&gt;&lt;code&gt;&#39;&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Specifies to represent column null values as &lt;em&gt;&lt;code&gt;string&lt;/code&gt;&lt;/em&gt;. By default, the database renders null values as an empty field, which might be mistaken as an empty string.
&lt;p&gt;For example:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;\pset null &amp;#39;(null)&amp;#39;
&lt;/code&gt;&lt;/pre&gt;&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;pager [&lt;/code&gt;&lt;em&gt;&lt;code&gt;always&lt;/code&gt;&lt;/em&gt;&lt;code&gt;]&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Toggles use of a pager for query and vsql help output. If the environment variable &lt;code&gt;PAGER&lt;/code&gt; is set, the output is piped to the specified program. Otherwise a platform-dependent default (such as &lt;code&gt;more&lt;/code&gt;) is used.
&lt;p&gt;When the pager is off, the pager is not used. When the pager is on, the pager is used only when appropriate; that is, the output is to a terminal and does not fit on the screen. (vsql does not do a perfect job of estimating when to use the pager.)&lt;/p&gt;
&lt;p&gt;If qualified with the argument always, the pager is always used.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;recordsep &#39;&lt;/code&gt;&lt;em&gt;&lt;code&gt;char&lt;/code&gt;&lt;/em&gt;&lt;code&gt;&#39;&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Valid only if output format is set to &lt;code&gt;unaligned&lt;/code&gt;, specifies the character used to delimit table records (tuples), by default a newline character.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;tableattr &lt;/code&gt;&lt;em&gt;&lt;code&gt;html-attribute&lt;/code&gt;&lt;/em&gt;&lt;code&gt;[...]&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Specifies attributes to be placed inside the HTML &lt;code&gt;table&lt;/code&gt; tag—for example, &lt;code&gt;cellpadding&lt;/code&gt; or &lt;code&gt;bgcolor&lt;/code&gt;.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;title [&#39;&lt;/code&gt;&lt;em&gt;&lt;code&gt;title-str&lt;/code&gt;&lt;/em&gt;&lt;code&gt;&#39;]&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Sets a title that precedes query result output, to &lt;em&gt;&lt;code&gt;title-str&lt;/code&gt;&lt;/em&gt;. HTML output renders this as follows:
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;&amp;lt;caption&amp;gt;&lt;span class=&#34;code-variable&#34;&gt;title-str&lt;/span&gt;&amp;lt;/caption&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;To remove the title, reissue the command omit the &lt;em&gt;&lt;code&gt;title-str&lt;/code&gt;&lt;/em&gt; argument.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;trailingrecordsep&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Toggles on or off the trailing record separator to use in unaligned output mode.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;t[uples_only]&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Toggles between tuples only and full display. Full display might show extra information such as column headers, titles, and various footers. In tuples only mode, only actual table data is shown.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;shortcuts&#34;&gt;Shortcuts&lt;/h2&gt;
&lt;p&gt;The following \pset commands have short-cuts:&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;\pset expanded&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;\x
&lt;/code&gt;&lt;/pre&gt;&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;\pset fieldsep &#39;&lt;span class=&#34;code-variable&#34;&gt;arg&lt;/span&gt;&#39;&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;code&gt;\f&lt;/code&gt;&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;\pset format aligned&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;\a
&lt;/code&gt;&lt;/pre&gt;&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;\pset format html&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;\H
&lt;/code&gt;&lt;/pre&gt;&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;\pset tableattr &lt;span class=&#34;code-variable&#34;&gt;html-attribute&lt;/span&gt;[...]&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;\T &lt;span class=&#34;code-variable&#34;&gt;html-attribute&lt;/span&gt;[...]
&lt;/code&gt;&lt;/pre&gt;&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;\pset title &lt;span class=&#34;code-variable&#34;&gt;title-str&lt;/span&gt;&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;\C [&amp;#39;&lt;span class=&#34;code-variable&#34;&gt;title-str&lt;/span&gt;&amp;#39;]
&lt;/code&gt;&lt;/pre&gt;&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;\pset tuples_only&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;\t
&lt;/code&gt;&lt;/pre&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;See &lt;a href=&#34;../../../../en/connecting-to/using-vsql/output-formatting-examples/#&#34;&gt;Output formatting examples&lt;/a&gt;.&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Connecting-To: \set</title>
      <link>/en/connecting-to/using-vsql/meta-commands/set/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/connecting-to/using-vsql/meta-commands/set/</guid>
      <description>
        
        
        &lt;p&gt;&lt;code&gt;S&lt;/code&gt;ets an internal variable to one or more values. If multiple values are specified, they are concantenated. An unqualified \set command lists all internal variables.&lt;/p&gt;
&lt;p&gt;To unset a variable, use &lt;a href=&#34;../../../../en/connecting-to/using-vsql/meta-commands/meta-commands-quick-reference/&#34;&gt;vsql meta-command&lt;/a&gt;&lt;code&gt;\unset&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;\set [&lt;span class=&#34;code-variable&#34;&gt;var&lt;/span&gt; [&lt;span class=&#34;code-variable&#34;&gt;value&lt;/span&gt;]...]
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;arguments&#34;&gt;Arguments&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;var&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;The name of an internal variable to set. Valid variable names are case sensitive and can contain characters, digits, and underscores. vsql treats several variables as special, which are described in &lt;a href=&#34;../../../../en/connecting-to/using-vsql/variables/#&#34;&gt;Variables&lt;/a&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;A value to set in variable &lt;em&gt;&lt;code&gt;var&lt;/code&gt;&lt;/em&gt;. If no value is specified, the variable is set to no value.
&lt;p&gt;If set to an empty string, the variable is set to no value. If you omit this argument, &lt;code&gt;\set&lt;/code&gt; returns all internal variables.&lt;/p&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;p&gt;If no arguments are supplied, &lt;code&gt;\set&lt;/code&gt; returns all internal variables. For example:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; \set
VERSION = &amp;#39;vsql&amp;#39;
AUTOCOMMIT = &amp;#39;off&amp;#39;
VERBOSITY = &amp;#39;default&amp;#39;
PROMPT1 = &amp;#39;%/%R%# &amp;#39;
PROMPT2 = &amp;#39;%/%R%# &amp;#39;
PROMPT3 = &amp;#39;&amp;gt;&amp;gt; &amp;#39;
ROWS_AT_A_TIME = &amp;#39;1000&amp;#39;
DBNAME = &amp;#39;dbadmin&amp;#39;
USER = &amp;#39;dbadmin&amp;#39;
PORT = &amp;#39;5433&amp;#39;
LOCALE = &amp;#39;en_US@collation=binary&amp;#39;
HISTSIZE = &amp;#39;500&amp;#39;
&lt;/code&gt;&lt;/pre&gt;
      </description>
    </item>
    
    <item>
      <title>Connecting-To: \timing</title>
      <link>/en/connecting-to/using-vsql/meta-commands/timing/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/connecting-to/using-vsql/meta-commands/timing/</guid>
      <description>
        
        
        &lt;p&gt;If set to on, returns how long (in milliseconds) each SQL statement runs. Results include:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Length of time required to fetch the first block of rows&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Total time until the last block is formatted.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Unqualified, &lt;code&gt;\timing&lt;/code&gt; toggles timing on and off. You can explicitly turn timing on and off by qualifying the command with options &lt;code&gt;ON&lt;/code&gt; and &lt;code&gt;OFF&lt;/code&gt;, respectively.

&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;

You can also enable &lt;code&gt;\timing&lt;/code&gt; from the command line using the
&lt;code&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/i-timing/#&#34;&gt;vsql -i&lt;/a&gt;&lt;/code&gt; command.

&lt;/div&gt;&lt;/p&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;\timing [ON | OFF]
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;The following unqualified &lt;code&gt;\timing&lt;/code&gt; commands toggle timing on and off:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; \timing
Timing is on
=&amp;gt; \timing
Timing is off
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The following example shows a SQL command with timing on:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; \timing
Timing is on.
=&amp;gt; SELECT user_name, ssl_state, authentication_method, client_authentication_name,
     client_type FROM sessions WHERE session_id=(SELECT session_id FROM current_session);
 user_name | ssl_state | authentication_method | client_authentication_name | client_type
-----------+-----------+-----------------------+----------------------------+-------------
 dbadmin   | None      | ImpTrust              | default: Implicit Trust    | vsql
(1 row)

Time: First fetch (1 row): 73.684 ms. All rows formatted: 73.770 ms
&lt;/code&gt;&lt;/pre&gt;
      </description>
    </item>
    
  </channel>
</rss>
