<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Vertica Documentation – Catalog functions</title>
    <link>/en/sql-reference/functions/management-functions/catalog-functions/</link>
    <description>Recent content in Catalog functions on Vertica Documentation</description>
    <generator>Hugo -- gohugo.io</generator>
    
	  <atom:link href="/en/sql-reference/functions/management-functions/catalog-functions/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Sql-Reference: DROP_LICENSE</title>
      <link>/en/sql-reference/functions/management-functions/catalog-functions/drop-license/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/management-functions/catalog-functions/drop-license/</guid>
      <description>
        
        
        &lt;p&gt;Drops a license key from the global catalog. Dropping expired keys is optional. Vertica automatically ignores expired license keys if a valid, alternative license key is installed.&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;DROP_LICENSE( &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;license-name&lt;/span&gt;&amp;#39; )
&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;license‑name&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;The name of the license to drop. Use the name (or long license key) in the &lt;code&gt;NAME&lt;/code&gt; column of system table 
&lt;code&gt;&lt;a href=&#34;../../../../../en/sql-reference/system-tables/v-catalog-schema/licenses/&#34;&gt;LICENSES&lt;/a&gt;&lt;/code&gt;.&lt;/dd&gt;
&lt;/dl&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;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT DROP_LICENSE(&amp;#39;9b2d81e2-aab1-4cfb-bc07-fa9a696e8f5e&amp;#39;);
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;see-also&#34;&gt;See also&lt;/h2&gt;
&lt;a href=&#34;../../../../../en/admin/managing-licenses/&#34;&gt;Managing licenses&lt;/a&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: DUMP_CATALOG</title>
      <link>/en/sql-reference/functions/management-functions/catalog-functions/dump-catalog/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/management-functions/catalog-functions/dump-catalog/</guid>
      <description>
        
        
        &lt;p&gt;Returns an internal representation of the Vertica catalog. This function is used for diagnostic purposes.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;DUMP_CATALOG&lt;/code&gt; returns only the objects that are visible to the user.&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;DUMP_CATALOG()
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;None&lt;/p&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;The following query obtains an internal representation of the Vertica catalog:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT DUMP_CATALOG();
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The output is written to the specified file:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;\o /tmp/catalog.txt
SELECT DUMP_CATALOG();
\o
&lt;/code&gt;&lt;/pre&gt;
      </description>
    </item>
    
    <item>
      <title>Sql-Reference: EXPORT_CATALOG</title>
      <link>/en/sql-reference/functions/management-functions/catalog-functions/export-catalog/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/management-functions/catalog-functions/export-catalog/</guid>
      <description>
        
        
        
&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 and &lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/catalog-functions/export-objects/&#34;&gt;EXPORT_OBJECTS&lt;/a&gt; return equivalent output.

&lt;/div&gt;
&lt;p&gt;Generates a SQL script for recreating a physical schema design on another cluster.&lt;/p&gt;
&lt;p&gt;The SQL script conforms to the following requirements:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Only includes objects to which the user has access.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Orders CREATE statements according to object dependencies so they can be recreated in the correct sequence. For example, if a table is in a non-PUBLIC schema, the required CREATE SCHEMA statement precedes the CREATE TABLE statement. Similarly, a table&#39;s CREATE ACCESS POLICY statement follows the table&#39;s CREATE TABLE statement.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If possible, creates projections with their KSAFE clause, if any, otherwise with their OFFSET clause.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&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;EXPORT_CATALOG ( [ &amp;#39;[&lt;span class=&#34;code-variable&#34;&gt;destination&lt;/span&gt;]&amp;#39; [, &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;scope&lt;/span&gt;&amp;#39;] ] )
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;arguments&#34;&gt;Arguments&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;

If you omit all arguments, this function exports to standard output all objects to which you have access.

&lt;/div&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;destination&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Specifies where to send output, one of the following:
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Empty string, writes the script to standard output.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Path and name of an SQL output file, valid only for &lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/db-superuser/&#34; title=&#34;&#34;&gt;superusers&lt;/a&gt;. If you specify a file that does not exist, the function creates one. If you specify only a file name, Vertica creates it in the catalog directory. If the file already exists, the function silently overwrites its contents.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;scope&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Determines what to export. Within the specified scope, EXPORT_CATALOG exports all the objects to which you have access:
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;DESIGN: Exports all catalog objects, including schemas, tables, constraints, views, access policies, projections, SQL macros, and stored procedures.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;DESIGN_ALL: Deprecated.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;TABLES: Exports all tables and their access policies. See also &lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/catalog-functions/export-tables/&#34;&gt;EXPORT_TABLES&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;DIRECTED_QUERIES: Exports all directed queries that are stored in the database. For details, see &lt;a href=&#34;../../../../../en/admin/managing-queries/directed-queries/managing-directed-queries/&#34;&gt;Managing directed queries&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Default&lt;/strong&gt;: DESIGN&lt;/p&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;None&lt;/p&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;See &lt;a href=&#34;../../../../../en/data-export/db-export-and-import/using-export-functions/exporting-catalog/&#34;&gt;Exporting the catalog&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/sql-reference/functions/management-functions/catalog-functions/export-objects/&#34;&gt;EXPORT_OBJECTS&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/catalog-functions/export-tables/&#34;&gt;EXPORT_TABLES&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/data-export/db-export-and-import/using-export-functions/exporting-catalog/&#34;&gt;Exporting the catalog&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: EXPORT_OBJECTS</title>
      <link>/en/sql-reference/functions/management-functions/catalog-functions/export-objects/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/management-functions/catalog-functions/export-objects/</guid>
      <description>
        
        
        
&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 and &lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/catalog-functions/export-catalog/&#34;&gt;EXPORT_CATALOG&lt;/a&gt; return equivalent output.

&lt;/div&gt;
&lt;p&gt;Generates a SQL script you can use to recreate non-virtual catalog objects on another cluster.&lt;/p&gt;
&lt;p&gt;The SQL script conforms to the following requirements:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Only includes objects to which the user has access.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Orders CREATE statements according to object dependencies so they can be recreated in the correct sequence. For example, if a table is in a non-PUBLIC schema, the required CREATE SCHEMA statement precedes the CREATE TABLE statement. Similarly, a table&#39;s CREATE ACCESS POLICY statement follows the table&#39;s CREATE TABLE statement.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If possible, creates projections with their KSAFE clause, if any, otherwise with their OFFSET clause.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&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;EXPORT_OBJECTS( [&amp;#39;[&lt;span class=&#34;code-variable&#34;&gt;destination&lt;/span&gt;]&amp;#39; [, &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;mark-ksafe&lt;/span&gt;&amp;#39;]] )
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;parameters&#34;&gt;Parameters&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;

If you omit all parameters, this function exports to standard output all objects to which you have access.

&lt;/div&gt;

&lt;dl&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;destination&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Specifies where to send output, one of the following:
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;An empty string (&lt;code&gt;&#39;&#39;&lt;/code&gt;) writes the script to standard output.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The path and name of a SQL output file. This option is valid only for &lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/db-superuser/&#34; title=&#34;&#34;&gt;superusers&lt;/a&gt;. If you specify a file that does not exist, the function creates one. If you specify only a file name, Vertica creates it in the catalog directory. If the file already exists, the function silently overwrites its contents.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;scope&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Specifies one or more objects to export as a comma-delimited list:
&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;object&lt;/span&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;object &lt;/span&gt;}[,...]
&lt;/code&gt;&lt;/pre&gt;&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;If set to an empty string, Vertica exports all objects to which the user has access.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If you specify a schema only, Vertica exports all objects in that schema.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If you specify a database, it must be the current database.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For 
stored procedures with the same name but different formal parameters, just specifying the procedure name exports all of them at once:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;mydb.myschema.my_procedure
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Specifying the types or both the names and types of a particular implementation&#39;s formal parameters exports that implementation:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;mydb.myschema.my_procedure()  -- no formal parameters
mydb.myschema.my_procedure(int, int) -- formal parameter types (parameter names are optional)
&lt;/code&gt;&lt;/pre&gt;&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;mark-ksafe&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Boolean argument, specifies whether the generated script calls the Vertica function &lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/catalog-functions/mark-design-ksafe/&#34;&gt;MARK_DESIGN_KSAFE&lt;/a&gt; . If set to true (default), MARK_DESIGN_KSAFE uses the correct K-safe argument for the current database.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;None&lt;/p&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;See &lt;a href=&#34;../../../../../en/data-export/db-export-and-import/using-export-functions/exporting-objects/&#34;&gt;Exporting objects&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/sql-reference/functions/management-functions/catalog-functions/export-catalog/&#34;&gt;EXPORT_CATALOG&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/catalog-functions/export-tables/&#34;&gt;EXPORT_TABLES&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: EXPORT_TABLES</title>
      <link>/en/sql-reference/functions/management-functions/catalog-functions/export-tables/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/management-functions/catalog-functions/export-tables/</guid>
      <description>
        
        
        &lt;p&gt;Generates a SQL script that can be used to recreate a logical schema—schemas, tables, constraints, and views—on another cluster. EXPORT_TABLES only exports objects to which the user has access.&lt;/p&gt;
&lt;p&gt;The SQL script conforms to the following requirements:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Only includes objects to which the user has access.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Orders CREATE statements according to object dependencies so they can be recreated in the correct sequence. For example, if a table references a named sequence, a CREATE SEQUENCE statement precedes the CREATE TABLE statement. Similarly, a table&#39;s CREATE ACCESS POLICY statement follows the table&#39;s CREATE TABLE statement.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&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;EXPORT_TABLES( [&amp;#39;[&lt;span class=&#34;code-variable&#34;&gt;destination&lt;/span&gt;]&amp;#39; [, &amp;#39;[&lt;span class=&#34;code-variable&#34;&gt;scope&lt;/span&gt;]&amp;#39;]] )
&lt;/code&gt;&lt;/pre&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;

If you omit all parameters, EXPORT_CATALOG exports to standard output all tables to which you have access.

&lt;/div&gt;
&lt;h2 id=&#34;parameters&#34;&gt;Parameters&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;destination&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Specifies where to send output, one of the following:
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;An empty string (&lt;code&gt;&#39;&#39;&lt;/code&gt;) writes the script to standard output.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The path and name of a SQL output file. This option is valid only for &lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/db-superuser/&#34; title=&#34;&#34;&gt;superusers&lt;/a&gt;. If you specify a file that does not exist, the function creates one. If you specify only a file name, Vertica creates it in the catalog directory. If the file already exists, the function silently overwrites its contents.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;scope&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Specifies one or more tables to export, 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;ul&gt;
&lt;li&gt;If set to an empty string, Vertica exports all non-virtual table objects to which you have access, including table schemas, sequences, and constraints.&lt;/li&gt;
&lt;li&gt;If you specify a schema, Vertica exports all non-virtual table objects in that schema.&lt;/li&gt;
&lt;li&gt;If you specify a database, it must be the current database.&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;None&lt;/p&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;See &lt;a href=&#34;../../../../../en/data-export/db-export-and-import/using-export-functions/exporting-tables/&#34;&gt;Exporting tables&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/data-export/db-export-and-import/using-export-functions/exporting-tables/&#34;&gt;Exporting tables&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/catalog-functions/export-catalog/&#34;&gt;EXPORT_CATALOG&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/catalog-functions/export-objects/&#34;&gt;EXPORT_OBJECTS&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: INSTALL_LICENSE</title>
      <link>/en/sql-reference/functions/management-functions/catalog-functions/install-license/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/management-functions/catalog-functions/install-license/</guid>
      <description>
        
        
        &lt;p&gt;Installs the license key in the global catalog.&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;INSTALL_LICENSE( &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;filename&lt;/span&gt;&amp;#39; )
&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;filename&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;The absolute path name of a valid license file.&lt;/dd&gt;
&lt;/dl&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;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT INSTALL_LICENSE(&amp;#39;/tmp/vlicense.dat&amp;#39;);
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;see-also&#34;&gt;See also&lt;/h2&gt;
&lt;a href=&#34;../../../../../en/admin/managing-licenses/&#34;&gt;Managing licenses&lt;/a&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: MARK_DESIGN_KSAFE</title>
      <link>/en/sql-reference/functions/management-functions/catalog-functions/mark-design-ksafe/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/management-functions/catalog-functions/mark-design-ksafe/</guid>
      <description>
        
        
        &lt;p&gt;Enables or disables high availability in your environment, in case of a failure. Before enabling recovery, &lt;code&gt;MARK_DESIGN_KSAFE&lt;/code&gt; queries the catalog to determine whether a cluster&#39;s physical schema design meets the following requirements:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Small, unsegmented tables are replicated on all nodes.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Large table &lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/superprojection/&#34; title=&#34;A projection that includes all columns in an anchor table.&#34;&gt;superprojections&lt;/a&gt; are segmented with each segment on a different node.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Each large table projection has at least one &lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/buddy-projection/&#34; title=&#34;Required for K-safety.&#34;&gt;buddy projection&lt;/a&gt; for K-safety=1 (or two buddy projections for K-safety=2).&lt;/p&gt;
&lt;p&gt;Buddy projections are also segmented across database nodes, but the distribution is modified so segments that contain the same data are distributed to different nodes. See &lt;a href=&#34;../../../../../en/architecture/enterprise-concepts/high-availability-with-projections/&#34;&gt;High availability with projections&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;code&gt;MARK_DESIGN_KSAFE&lt;/code&gt; does not change the physical schema.&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;MARK_DESIGN_KSAFE ( &lt;span class=&#34;code-variable&#34;&gt;k &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;k&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Specifies the level of K-safety, one of the following:
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;2: Enables high availability if the schema design meets requirements for K-safety=2&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;1: Enables high availability if the schema design meets requirements for K-safety=1&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;0: Disables high availability&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;Superuser&lt;/p&gt;

&lt;h2 id=&#34;return-messages&#34;&gt;Return messages&lt;/h2&gt;
&lt;p&gt;If you specify a &lt;em&gt;&lt;code&gt;k&lt;/code&gt;&lt;/em&gt; value of 1 or 2, Vertica returns one of the following messages.&lt;/p&gt;
&lt;p&gt;Success:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt; Marked design &lt;span class=&#34;code-variable&#34;&gt;n-&lt;/span&gt;safe
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Failure:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt; The schema does not meet requirements for K=&lt;span class=&#34;code-variable&#34;&gt;n&lt;/span&gt;.
 Fact table projection &lt;span class=&#34;code-variable&#34;&gt;projection-name&lt;/span&gt;
 has insufficient &amp;#34;buddy&amp;#34; projections.
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;where &lt;em&gt;&lt;code&gt;n&lt;/code&gt;&lt;/em&gt; is a K-safety setting.&lt;/p&gt;
&lt;h2 id=&#34;notes&#34;&gt;Notes&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;The database&#39;s internal recovery state persists across database restarts but it is not checked at startup time.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;When one node fails on a system marked K-safe=1, the remaining nodes are available for DML operations.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&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 MARK_DESIGN_KSAFE(1);
  mark_design_ksafe
----------------------
 Marked design 1-safe
(1 row)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;If the physical schema design is not K-safe, messages indicate which projections do not have a buddy:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT MARK_DESIGN_KSAFE(1);
The given K value is not correct;
the schema is 0-safe
Projection pp1 has 0 buddies,
which is smaller that the given K of 1
Projection pp2 has 0 buddies,
which is smaller that the given K of 1
.
.
.
(1 row)
&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/data-analysis/query-optimization/join-queries/identical-segmentation/&#34;&gt;Identical segmentation&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/admin/failure-recovery/&#34;&gt;Failure recovery&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: RELOAD_ADMINTOOLS_CONF</title>
      <link>/en/sql-reference/functions/management-functions/catalog-functions/reload-admin/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/management-functions/catalog-functions/reload-admin/</guid>
      <description>
        
        
        &lt;p&gt;Updates the admintools.conf on each UP node in the cluster. Updates include:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;IP addresses and catalog paths&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Node names for all nodes in the current database&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This function provides a manual method to instruct the server to update admintools.conf on all UP nodes. For example, if you restart a node, call this function to confirm its admintools.conf file is accurate.&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;p&gt;&lt;code&gt;RELOAD_ADMINTOOLS_CONF()&lt;/code&gt;&lt;/p&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/db-superuser/&#34; title=&#34;&#34;&gt;Superuser&lt;/a&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;Update admintools.conf on each UP node in the cluster:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT RELOAD_ADMINTOOLS_CONF();
  RELOAD_ADMINTOOLS_CONF
--------------------------
 admintools.conf reloaded
(1 row)
&lt;/code&gt;&lt;/pre&gt;
      </description>
    </item>
    
  </channel>
</rss>
