Submit
Path:
~
/
/
opt
/
alt
/
postgresql11
/
usr
/
share
/
doc
/
alt-postgresql11-9.2.24
/
html
/
File Content:
app-psql.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML ><HEAD ><TITLE >psql</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK REV="MADE" HREF="mailto:pgsql-docs@postgresql.org"><LINK REL="HOME" TITLE="PostgreSQL 9.2.24 Documentation" HREF="index.html"><LINK REL="UP" TITLE="PostgreSQL Client Applications" HREF="reference-client.html"><LINK REL="PREVIOUS" TITLE="pg_restore" HREF="app-pgrestore.html"><LINK REL="NEXT" TITLE="reindexdb" HREF="app-reindexdb.html"><LINK REL="STYLESHEET" TYPE="text/css" HREF="stylesheet.css"><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"><META NAME="creation" CONTENT="2017-11-06T22:43:11"></HEAD ><BODY CLASS="REFENTRY" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="5" ALIGN="center" VALIGN="bottom" ><A HREF="index.html" >PostgreSQL 9.2.24 Documentation</A ></TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="top" ><A TITLE="pg_restore" HREF="app-pgrestore.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="10%" ALIGN="left" VALIGN="top" ><A HREF="reference-client.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="60%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="20%" ALIGN="right" VALIGN="top" ><A TITLE="reindexdb" HREF="app-reindexdb.html" ACCESSKEY="N" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><H1 ><A NAME="APP-PSQL" ></A ><SPAN CLASS="APPLICATION" >psql</SPAN ></H1 ><DIV CLASS="REFNAMEDIV" ><A NAME="AEN83896" ></A ><H2 >Name</H2 ><SPAN CLASS="APPLICATION" >psql</SPAN > -- <SPAN CLASS="PRODUCTNAME" >PostgreSQL</SPAN > interactive terminal </DIV ><DIV CLASS="REFSYNOPSISDIV" ><A NAME="AEN83903" ></A ><H2 >Synopsis</H2 ><P ><TT CLASS="COMMAND" >psql</TT > [<TT CLASS="REPLACEABLE" ><I >option</I ></TT >...] [<TT CLASS="REPLACEABLE" ><I >dbname</I ></TT > [<TT CLASS="REPLACEABLE" ><I >username</I ></TT >]]</P ></DIV ><DIV CLASS="REFSECT1" ><A NAME="AEN83912" ></A ><H2 >Description</H2 ><P > <SPAN CLASS="APPLICATION" >psql</SPAN > is a terminal-based front-end to <SPAN CLASS="PRODUCTNAME" >PostgreSQL</SPAN >. It enables you to type in queries interactively, issue them to <SPAN CLASS="PRODUCTNAME" >PostgreSQL</SPAN >, and see the query results. Alternatively, input can be from a file. In addition, it provides a number of meta-commands and various shell-like features to facilitate writing scripts and automating a wide variety of tasks. </P ></DIV ><DIV CLASS="REFSECT1" ><A NAME="R1-APP-PSQL-3" ></A ><H2 >Options</H2 ><P ></P ><DIV CLASS="VARIABLELIST" ><DL ><DT ><TT CLASS="OPTION" >-a</TT ><BR><TT CLASS="OPTION" >--echo-all</TT ></DT ><DD ><P > Print all nonempty input lines to standard output as they are read. (This does not apply to lines read interactively.) This is equivalent to setting the variable <TT CLASS="VARNAME" >ECHO</TT > to <TT CLASS="LITERAL" >all</TT >. </P ></DD ><DT ><TT CLASS="OPTION" >-A</TT ><BR><TT CLASS="OPTION" >--no-align</TT ></DT ><DD ><P > Switches to unaligned output mode. (The default output mode is otherwise aligned.) </P ></DD ><DT ><TT CLASS="OPTION" >-c <TT CLASS="REPLACEABLE" ><I >command</I ></TT ></TT ><BR><TT CLASS="OPTION" >--command=<TT CLASS="REPLACEABLE" ><I >command</I ></TT ></TT ></DT ><DD ><P > Specifies that <SPAN CLASS="APPLICATION" >psql</SPAN > is to execute one command string, <TT CLASS="REPLACEABLE" ><I >command</I ></TT >, and then exit. This is useful in shell scripts. Start-up files (<TT CLASS="FILENAME" >psqlrc</TT > and <TT CLASS="FILENAME" >~/.psqlrc</TT >) are ignored with this option. </P ><P > <TT CLASS="REPLACEABLE" ><I >command</I ></TT > must be either a command string that is completely parsable by the server (i.e., it contains no <SPAN CLASS="APPLICATION" >psql</SPAN >-specific features), or a single backslash command. Thus you cannot mix <ACRONYM CLASS="ACRONYM" >SQL</ACRONYM > and <SPAN CLASS="APPLICATION" >psql</SPAN > meta-commands with this option. To achieve that, you could pipe the string into <SPAN CLASS="APPLICATION" >psql</SPAN >, for example: <TT CLASS="LITERAL" >echo '\x \\ SELECT * FROM foo;' | psql</TT >. (<TT CLASS="LITERAL" >\\</TT > is the separator meta-command.) </P ><P > If the command string contains multiple SQL commands, they are processed in a single transaction, unless there are explicit <TT CLASS="COMMAND" >BEGIN</TT >/<TT CLASS="COMMAND" >COMMIT</TT > commands included in the string to divide it into multiple transactions. This is different from the behavior when the same string is fed to <SPAN CLASS="APPLICATION" >psql</SPAN >'s standard input. Also, only the result of the last SQL command is returned. </P ><P > Because of these legacy behaviors, putting more than one command in the <TT CLASS="OPTION" >-c</TT > string often has unexpected results. It's better to feed multiple commands to <SPAN CLASS="APPLICATION" >psql</SPAN >'s standard input, either using <SPAN CLASS="APPLICATION" >echo</SPAN > as illustrated above, or via a shell here-document, for example: </P><PRE CLASS="PROGRAMLISTING" >psql <<EOF \x SELECT * FROM foo; EOF</PRE ><P> </P ></DD ><DT ><TT CLASS="OPTION" >-d <TT CLASS="REPLACEABLE" ><I >dbname</I ></TT ></TT ><BR><TT CLASS="OPTION" >--dbname=<TT CLASS="REPLACEABLE" ><I >dbname</I ></TT ></TT ></DT ><DD ><P > Specifies the name of the database to connect to. This is equivalent to specifying <TT CLASS="REPLACEABLE" ><I >dbname</I ></TT > as the first non-option argument on the command line. </P ><P > If this parameter contains an <TT CLASS="SYMBOL" >=</TT > sign or starts with a valid <ACRONYM CLASS="ACRONYM" >URI</ACRONYM > prefix (<TT CLASS="LITERAL" >postgresql://</TT > or <TT CLASS="LITERAL" >postgres://</TT >), it is treated as a <TT CLASS="PARAMETER" >conninfo</TT > string. See <A HREF="libpq-connect.html" >Section 31.1</A > for more information. </P ></DD ><DT ><TT CLASS="OPTION" >-e</TT ><BR><TT CLASS="OPTION" >--echo-queries</TT ></DT ><DD ><P > Copy all SQL commands sent to the server to standard output as well. This is equivalent to setting the variable <TT CLASS="VARNAME" >ECHO</TT > to <TT CLASS="LITERAL" >queries</TT >. </P ></DD ><DT ><TT CLASS="OPTION" >-E</TT ><BR><TT CLASS="OPTION" >--echo-hidden</TT ></DT ><DD ><P > Echo the actual queries generated by <TT CLASS="COMMAND" >\d</TT > and other backslash commands. You can use this to study <SPAN CLASS="APPLICATION" >psql</SPAN >'s internal operations. This is equivalent to setting the variable <TT CLASS="VARNAME" >ECHO_HIDDEN</TT > to <TT CLASS="LITERAL" >on</TT >. </P ></DD ><DT ><TT CLASS="OPTION" >-f <TT CLASS="REPLACEABLE" ><I >filename</I ></TT ></TT ><BR><TT CLASS="OPTION" >--file=<TT CLASS="REPLACEABLE" ><I >filename</I ></TT ></TT ></DT ><DD ><P > Use the file <TT CLASS="REPLACEABLE" ><I >filename</I ></TT > as the source of commands instead of reading commands interactively. After the file is processed, <SPAN CLASS="APPLICATION" >psql</SPAN > terminates. This is in many ways equivalent to the meta-command <TT CLASS="COMMAND" >\i</TT >. </P ><P > If <TT CLASS="REPLACEABLE" ><I >filename</I ></TT > is <TT CLASS="LITERAL" >-</TT > (hyphen), then standard input is read until an EOF indication or <TT CLASS="COMMAND" >\q</TT > meta-command. Note however that Readline is not used in this case (much as if <TT CLASS="OPTION" >-n</TT > had been specified). </P ><P > Using this option is subtly different from writing <TT CLASS="LITERAL" >psql < <TT CLASS="REPLACEABLE" ><I >filename</I ></TT ></TT >. In general, both will do what you expect, but using <TT CLASS="LITERAL" >-f</TT > enables some nice features such as error messages with line numbers. There is also a slight chance that using this option will reduce the start-up overhead. On the other hand, the variant using the shell's input redirection is (in theory) guaranteed to yield exactly the same output you would have received had you entered everything by hand. </P ></DD ><DT ><TT CLASS="OPTION" >-F <TT CLASS="REPLACEABLE" ><I >separator</I ></TT ></TT ><BR><TT CLASS="OPTION" >--field-separator=<TT CLASS="REPLACEABLE" ><I >separator</I ></TT ></TT ></DT ><DD ><P > Use <TT CLASS="REPLACEABLE" ><I >separator</I ></TT > as the field separator for unaligned output. This is equivalent to <TT CLASS="COMMAND" >\pset fieldsep</TT > or <TT CLASS="COMMAND" >\f</TT >. </P ></DD ><DT ><TT CLASS="OPTION" >-h <TT CLASS="REPLACEABLE" ><I >hostname</I ></TT ></TT ><BR><TT CLASS="OPTION" >--host=<TT CLASS="REPLACEABLE" ><I >hostname</I ></TT ></TT ></DT ><DD ><P > Specifies the host name of the machine on which the server is running. If the value begins with a slash, it is used as the directory for the Unix-domain socket. </P ></DD ><DT ><TT CLASS="OPTION" >-H</TT ><BR><TT CLASS="OPTION" >--html</TT ></DT ><DD ><P > Turn on <ACRONYM CLASS="ACRONYM" >HTML</ACRONYM > tabular output. This is equivalent to <TT CLASS="LITERAL" >\pset format html</TT > or the <TT CLASS="COMMAND" >\H</TT > command. </P ></DD ><DT ><TT CLASS="OPTION" >-l</TT ><BR><TT CLASS="OPTION" >--list</TT ></DT ><DD ><P > List all available databases, then exit. Other non-connection options are ignored. This is similar to the meta-command <TT CLASS="COMMAND" >\list</TT >. </P ></DD ><DT ><TT CLASS="OPTION" >-L <TT CLASS="REPLACEABLE" ><I >filename</I ></TT ></TT ><BR><TT CLASS="OPTION" >--log-file=<TT CLASS="REPLACEABLE" ><I >filename</I ></TT ></TT ></DT ><DD ><P > Write all query output into file <TT CLASS="REPLACEABLE" ><I >filename</I ></TT >, in addition to the normal output destination. </P ></DD ><DT ><TT CLASS="OPTION" >-n</TT ><BR><TT CLASS="OPTION" >--no-readline</TT ></DT ><DD ><P > Do not use <SPAN CLASS="APPLICATION" >Readline</SPAN > for line editing and do not use the command history. This can be useful to turn off tab expansion when cutting and pasting. </P ></DD ><DT ><TT CLASS="OPTION" >-o <TT CLASS="REPLACEABLE" ><I >filename</I ></TT ></TT ><BR><TT CLASS="OPTION" >--output=<TT CLASS="REPLACEABLE" ><I >filename</I ></TT ></TT ></DT ><DD ><P > Put all query output into file <TT CLASS="REPLACEABLE" ><I >filename</I ></TT >. This is equivalent to the command <TT CLASS="COMMAND" >\o</TT >. </P ></DD ><DT ><TT CLASS="OPTION" >-p <TT CLASS="REPLACEABLE" ><I >port</I ></TT ></TT ><BR><TT CLASS="OPTION" >--port=<TT CLASS="REPLACEABLE" ><I >port</I ></TT ></TT ></DT ><DD ><P > Specifies the TCP port or the local Unix-domain socket file extension on which the server is listening for connections. Defaults to the value of the <TT CLASS="ENVAR" >PGPORT</TT > environment variable or, if not set, to the port specified at compile time, usually 5432. </P ></DD ><DT ><TT CLASS="OPTION" >-P <TT CLASS="REPLACEABLE" ><I >assignment</I ></TT ></TT ><BR><TT CLASS="OPTION" >--pset=<TT CLASS="REPLACEABLE" ><I >assignment</I ></TT ></TT ></DT ><DD ><P > Specifies printing options, in the style of <TT CLASS="COMMAND" >\pset</TT >. Note that here you have to separate name and value with an equal sign instead of a space. For example, to set the output format to <SPAN CLASS="APPLICATION" >LaTeX</SPAN >, you could write <TT CLASS="LITERAL" >-P format=latex</TT >. </P ></DD ><DT ><TT CLASS="OPTION" >-q</TT ><BR><TT CLASS="OPTION" >--quiet</TT ></DT ><DD ><P > Specifies that <SPAN CLASS="APPLICATION" >psql</SPAN > should do its work quietly. By default, it prints welcome messages and various informational output. If this option is used, none of this happens. This is useful with the <TT CLASS="OPTION" >-c</TT > option. This is equivalent to setting the variable <TT CLASS="VARNAME" >QUIET</TT > to <TT CLASS="LITERAL" >on</TT >. </P ></DD ><DT ><TT CLASS="OPTION" >-R <TT CLASS="REPLACEABLE" ><I >separator</I ></TT ></TT ><BR><TT CLASS="OPTION" >--record-separator=<TT CLASS="REPLACEABLE" ><I >separator</I ></TT ></TT ></DT ><DD ><P > Use <TT CLASS="REPLACEABLE" ><I >separator</I ></TT > as the record separator for unaligned output. This is equivalent to the <TT CLASS="COMMAND" >\pset recordsep</TT > command. </P ></DD ><DT ><TT CLASS="OPTION" >-s</TT ><BR><TT CLASS="OPTION" >--single-step</TT ></DT ><DD ><P > Run in single-step mode. That means the user is prompted before each command is sent to the server, with the option to cancel execution as well. Use this to debug scripts. </P ></DD ><DT ><TT CLASS="OPTION" >-S</TT ><BR><TT CLASS="OPTION" >--single-line</TT ></DT ><DD ><P > Runs in single-line mode where a newline terminates an SQL command, as a semicolon does. </P ><DIV CLASS="NOTE" ><BLOCKQUOTE CLASS="NOTE" ><P ><B >Note: </B > This mode is provided for those who insist on it, but you are not necessarily encouraged to use it. In particular, if you mix <ACRONYM CLASS="ACRONYM" >SQL</ACRONYM > and meta-commands on a line the order of execution might not always be clear to the inexperienced user. </P ></BLOCKQUOTE ></DIV ></DD ><DT ><TT CLASS="OPTION" >-t</TT ><BR><TT CLASS="OPTION" >--tuples-only</TT ></DT ><DD ><P > Turn off printing of column names and result row count footers, etc. This is equivalent to the <TT CLASS="COMMAND" >\t</TT > command. </P ></DD ><DT ><TT CLASS="OPTION" >-T <TT CLASS="REPLACEABLE" ><I >table_options</I ></TT ></TT ><BR><TT CLASS="OPTION" >--table-attr=<TT CLASS="REPLACEABLE" ><I >table_options</I ></TT ></TT ></DT ><DD ><P > Specifies options to be placed within the <ACRONYM CLASS="ACRONYM" >HTML</ACRONYM > <CODE CLASS="SGMLTAG" >table</CODE > tag. See <TT CLASS="COMMAND" >\pset</TT > for details. </P ></DD ><DT ><TT CLASS="OPTION" >-U <TT CLASS="REPLACEABLE" ><I >username</I ></TT ></TT ><BR><TT CLASS="OPTION" >--username=<TT CLASS="REPLACEABLE" ><I >username</I ></TT ></TT ></DT ><DD ><P > Connect to the database as the user <TT CLASS="REPLACEABLE" ><I >username</I ></TT > instead of the default. (You must have permission to do so, of course.) </P ></DD ><DT ><TT CLASS="OPTION" >-v <TT CLASS="REPLACEABLE" ><I >assignment</I ></TT ></TT ><BR><TT CLASS="OPTION" >--set=<TT CLASS="REPLACEABLE" ><I >assignment</I ></TT ></TT ><BR><TT CLASS="OPTION" >--variable=<TT CLASS="REPLACEABLE" ><I >assignment</I ></TT ></TT ></DT ><DD ><P > Perform a variable assignment, like the <TT CLASS="COMMAND" >\set</TT > meta-command. Note that you must separate name and value, if any, by an equal sign on the command line. To unset a variable, leave off the equal sign. To set a variable with an empty value, use the equal sign but leave off the value. These assignments are done during a very early stage of start-up, so variables reserved for internal purposes might get overwritten later. </P ></DD ><DT ><TT CLASS="OPTION" >-V</TT ><BR><TT CLASS="OPTION" >--version</TT ></DT ><DD ><P > Print the <SPAN CLASS="APPLICATION" >psql</SPAN > version and exit. </P ></DD ><DT ><TT CLASS="OPTION" >-w</TT ><BR><TT CLASS="OPTION" >--no-password</TT ></DT ><DD ><P > Never issue a password prompt. If the server requires password authentication and a password is not available by other means such as a <TT CLASS="FILENAME" >.pgpass</TT > file, the connection attempt will fail. This option can be useful in batch jobs and scripts where no user is present to enter a password. </P ><P > Note that this option will remain set for the entire session, and so it affects uses of the meta-command <TT CLASS="COMMAND" >\connect</TT > as well as the initial connection attempt. </P ></DD ><DT ><TT CLASS="OPTION" >-W</TT ><BR><TT CLASS="OPTION" >--password</TT ></DT ><DD ><P > Force <SPAN CLASS="APPLICATION" >psql</SPAN > to prompt for a password before connecting to a database. </P ><P > This option is never essential, since <SPAN CLASS="APPLICATION" >psql</SPAN > will automatically prompt for a password if the server demands password authentication. However, <SPAN CLASS="APPLICATION" >psql</SPAN > will waste a connection attempt finding out that the server wants a password. In some cases it is worth typing <TT CLASS="OPTION" >-W</TT > to avoid the extra connection attempt. </P ><P > Note that this option will remain set for the entire session, and so it affects uses of the meta-command <TT CLASS="COMMAND" >\connect</TT > as well as the initial connection attempt. </P ></DD ><DT ><TT CLASS="OPTION" >-x</TT ><BR><TT CLASS="OPTION" >--expanded</TT ></DT ><DD ><P > Turn on the expanded table formatting mode. This is equivalent to the <TT CLASS="COMMAND" >\x</TT > command. </P ></DD ><DT ><TT CLASS="OPTION" >-X,</TT ><BR><TT CLASS="OPTION" >--no-psqlrc</TT ></DT ><DD ><P > Do not read the start-up file (neither the system-wide <TT CLASS="FILENAME" >psqlrc</TT > file nor the user's <TT CLASS="FILENAME" >~/.psqlrc</TT > file). </P ></DD ><DT ><TT CLASS="OPTION" >-z</TT ><BR><TT CLASS="OPTION" >--field-separator-zero</TT ></DT ><DD ><P > Set the field separator for unaligned output to a zero byte. </P ></DD ><DT ><TT CLASS="OPTION" >-0</TT ><BR><TT CLASS="OPTION" >--record-separator-zero</TT ></DT ><DD ><P > Set the record separator for unaligned output to a zero byte. This is useful for interfacing, for example, with <TT CLASS="LITERAL" >xargs -0</TT >. </P ></DD ><DT ><TT CLASS="OPTION" >-1</TT ><BR><TT CLASS="OPTION" >--single-transaction</TT ></DT ><DD ><P > When <SPAN CLASS="APPLICATION" >psql</SPAN > executes a script with the <TT CLASS="OPTION" >-f</TT > option, adding this option wraps <TT CLASS="COMMAND" >BEGIN</TT >/<TT CLASS="COMMAND" >COMMIT</TT > around the script to execute it as a single transaction. This ensures that either all the commands complete successfully, or no changes are applied. </P ><P > If the script itself uses <TT CLASS="COMMAND" >BEGIN</TT >, <TT CLASS="COMMAND" >COMMIT</TT >, or <TT CLASS="COMMAND" >ROLLBACK</TT >, this option will not have the desired effects. Also, if the script contains any command that cannot be executed inside a transaction block, specifying this option will cause that command (and hence the whole transaction) to fail. </P ></DD ><DT ><TT CLASS="OPTION" >-?</TT ><BR><TT CLASS="OPTION" >--help</TT ></DT ><DD ><P > Show help about <SPAN CLASS="APPLICATION" >psql</SPAN > command line arguments, and exit. </P ></DD ></DL ></DIV ></DIV ><DIV CLASS="REFSECT1" ><A NAME="AEN84284" ></A ><H2 >Exit Status</H2 ><P > <SPAN CLASS="APPLICATION" >psql</SPAN > returns 0 to the shell if it finished normally, 1 if a fatal error of its own occurs (e.g. out of memory, file not found), 2 if the connection to the server went bad and the session was not interactive, and 3 if an error occurred in a script and the variable <TT CLASS="VARNAME" >ON_ERROR_STOP</TT > was set. </P ></DIV ><DIV CLASS="REFSECT1" ><A NAME="AEN84289" ></A ><H2 >Usage</H2 ><DIV CLASS="REFSECT2" ><A NAME="R2-APP-PSQL-CONNECTING" ></A ><H3 >Connecting to a Database</H3 ><P > <SPAN CLASS="APPLICATION" >psql</SPAN > is a regular <SPAN CLASS="PRODUCTNAME" >PostgreSQL</SPAN > client application. In order to connect to a database you need to know the name of your target database, the host name and port number of the server, and what user name you want to connect as. <SPAN CLASS="APPLICATION" >psql</SPAN > can be told about those parameters via command line options, namely <TT CLASS="OPTION" >-d</TT >, <TT CLASS="OPTION" >-h</TT >, <TT CLASS="OPTION" >-p</TT >, and <TT CLASS="OPTION" >-U</TT > respectively. If an argument is found that does not belong to any option it will be interpreted as the database name (or the user name, if the database name is already given). Not all of these options are required; there are useful defaults. If you omit the host name, <SPAN CLASS="APPLICATION" >psql</SPAN > will connect via a Unix-domain socket to a server on the local host, or via TCP/IP to <TT CLASS="LITERAL" >localhost</TT > on machines that don't have Unix-domain sockets. The default port number is determined at compile time. Since the database server uses the same default, you will not have to specify the port in most cases. The default user name is your operating-system user name, as is the default database name. Note that you cannot just connect to any database under any user name. Your database administrator should have informed you about your access rights. </P ><P > When the defaults aren't quite right, you can save yourself some typing by setting the environment variables <TT CLASS="ENVAR" >PGDATABASE</TT >, <TT CLASS="ENVAR" >PGHOST</TT >, <TT CLASS="ENVAR" >PGPORT</TT > and/or <TT CLASS="ENVAR" >PGUSER</TT > to appropriate values. (For additional environment variables, see <A HREF="libpq-envars.html" >Section 31.14</A >.) It is also convenient to have a <TT CLASS="FILENAME" >~/.pgpass</TT > file to avoid regularly having to type in passwords. See <A HREF="libpq-pgpass.html" >Section 31.15</A > for more information. </P ><P > An alternative way to specify connection parameters is in a <TT CLASS="PARAMETER" >conninfo</TT > string or a <ACRONYM CLASS="ACRONYM" >URI</ACRONYM >, which is used instead of a database name. This mechanism give you very wide control over the connection. For example: </P><PRE CLASS="PROGRAMLISTING" >$ <KBD CLASS="USERINPUT" >psql "service=myservice sslmode=require"</KBD > $ <KBD CLASS="USERINPUT" >psql postgresql://dbmaster:5433/mydb?sslmode=require</KBD ></PRE ><P> This way you can also use <ACRONYM CLASS="ACRONYM" >LDAP</ACRONYM > for connection parameter lookup as described in <A HREF="libpq-ldap.html" >Section 31.17</A >. See <A HREF="libpq-connect.html" >Section 31.1</A > for more information on all the available connection options. </P ><P > If the connection could not be made for any reason (e.g., insufficient privileges, server is not running on the targeted host, etc.), <SPAN CLASS="APPLICATION" >psql</SPAN > will return an error and terminate. </P ><P > If at least one of standard input or standard output are a terminal, then <SPAN CLASS="APPLICATION" >psql</SPAN > sets the client encoding to <SPAN CLASS="QUOTE" >"auto"</SPAN >, which will detect the appropriate client encoding from the locale settings (<TT CLASS="ENVAR" >LC_CTYPE</TT > environment variable on Unix systems). If this doesn't work out as expected, the client encoding can be overridden using the environment variable <TT CLASS="ENVAR" >PGCLIENTENCODING</TT >. </P ></DIV ><DIV CLASS="REFSECT2" ><A NAME="R2-APP-PSQL-4" ></A ><H3 >Entering SQL Commands</H3 ><P > In normal operation, <SPAN CLASS="APPLICATION" >psql</SPAN > provides a prompt with the name of the database to which <SPAN CLASS="APPLICATION" >psql</SPAN > is currently connected, followed by the string <TT CLASS="LITERAL" >=></TT >. For example: </P><PRE CLASS="PROGRAMLISTING" >$ <KBD CLASS="USERINPUT" >psql testdb</KBD > psql (9.2.24) Type "help" for help. testdb=></PRE ><P> </P ><P > At the prompt, the user can type in <ACRONYM CLASS="ACRONYM" >SQL</ACRONYM > commands. Ordinarily, input lines are sent to the server when a command-terminating semicolon is reached. An end of line does not terminate a command. Thus commands can be spread over several lines for clarity. If the command was sent and executed without error, the results of the command are displayed on the screen. </P ><P > Whenever a command is executed, <SPAN CLASS="APPLICATION" >psql</SPAN > also polls for asynchronous notification events generated by <A HREF="sql-listen.html" >LISTEN</A > and <A HREF="sql-notify.html" >NOTIFY</A >. </P ></DIV ><DIV CLASS="REFSECT2" ><A NAME="APP-PSQL-META-COMMANDS" ></A ><H3 >Meta-Commands</H3 ><P > Anything you enter in <SPAN CLASS="APPLICATION" >psql</SPAN > that begins with an unquoted backslash is a <SPAN CLASS="APPLICATION" >psql</SPAN > meta-command that is processed by <SPAN CLASS="APPLICATION" >psql</SPAN > itself. These commands make <SPAN CLASS="APPLICATION" >psql</SPAN > more useful for administration or scripting. Meta-commands are often called slash or backslash commands. </P ><P > The format of a <SPAN CLASS="APPLICATION" >psql</SPAN > command is the backslash, followed immediately by a command verb, then any arguments. The arguments are separated from the command verb and each other by any number of whitespace characters. </P ><P > To include whitespace in an argument you can quote it with single quotes. To include a single quote in an argument, write two single quotes within single-quoted text. Anything contained in single quotes is furthermore subject to C-like substitutions for <TT CLASS="LITERAL" >\n</TT > (new line), <TT CLASS="LITERAL" >\t</TT > (tab), <TT CLASS="LITERAL" >\b</TT > (backspace), <TT CLASS="LITERAL" >\r</TT > (carriage return), <TT CLASS="LITERAL" >\f</TT > (form feed), <TT CLASS="LITERAL" >\</TT ><TT CLASS="REPLACEABLE" ><I >digits</I ></TT > (octal), and <TT CLASS="LITERAL" >\x</TT ><TT CLASS="REPLACEABLE" ><I >digits</I ></TT > (hexadecimal). A backslash preceding any other character within single-quoted text quotes that single character, whatever it is. </P ><P > Within an argument, text that is enclosed in backquotes (<TT CLASS="LITERAL" >`</TT >) is taken as a command line that is passed to the shell. The output of the command (with any trailing newline removed) replaces the backquoted text. </P ><P > If an unquoted colon (<TT CLASS="LITERAL" >:</TT >) followed by a <SPAN CLASS="APPLICATION" >psql</SPAN > variable name appears within an argument, it is replaced by the variable's value, as described in <A HREF="app-psql.html#APP-PSQL-INTERPOLATION" ><I ><I >SQL</I > Interpolation</I ></A >. </P ><P > Some commands take an <ACRONYM CLASS="ACRONYM" >SQL</ACRONYM > identifier (such as a table name) as argument. These arguments follow the syntax rules of <ACRONYM CLASS="ACRONYM" >SQL</ACRONYM >: Unquoted letters are forced to lowercase, while double quotes (<TT CLASS="LITERAL" >"</TT >) protect letters from case conversion and allow incorporation of whitespace into the identifier. Within double quotes, paired double quotes reduce to a single double quote in the resulting name. For example, <TT CLASS="LITERAL" >FOO"BAR"BAZ</TT > is interpreted as <TT CLASS="LITERAL" >fooBARbaz</TT >, and <TT CLASS="LITERAL" >"A weird"" name"</TT > becomes <TT CLASS="LITERAL" >A weird" name</TT >. </P ><P > Parsing for arguments stops at the end of the line, or when another unquoted backslash is found. An unquoted backslash is taken as the beginning of a new meta-command. The special sequence <TT CLASS="LITERAL" >\\</TT > (two backslashes) marks the end of arguments and continues parsing <ACRONYM CLASS="ACRONYM" >SQL</ACRONYM > commands, if any. That way <ACRONYM CLASS="ACRONYM" >SQL</ACRONYM > and <SPAN CLASS="APPLICATION" >psql</SPAN > commands can be freely mixed on a line. But in any case, the arguments of a meta-command cannot continue beyond the end of the line. </P ><P > The following meta-commands are defined: <P ></P ></P><DIV CLASS="VARIABLELIST" ><DL ><DT ><TT CLASS="LITERAL" >\a</TT ></DT ><DD ><P > If the current table output format is unaligned, it is switched to aligned. If it is not unaligned, it is set to unaligned. This command is kept for backwards compatibility. See <TT CLASS="COMMAND" >\pset</TT > for a more general solution. </P ></DD ><DT ><TT CLASS="LITERAL" >\c</TT > or <TT CLASS="LITERAL" >\connect [ -reuse-previous=<TT CLASS="REPLACEABLE" ><I >on|off</I ></TT > ] [ <TT CLASS="REPLACEABLE" ><I >dbname</I ></TT > [ <TT CLASS="REPLACEABLE" ><I >username</I ></TT > ] [ <TT CLASS="REPLACEABLE" ><I >host</I ></TT > ] [ <TT CLASS="REPLACEABLE" ><I >port</I ></TT > ] | <TT CLASS="REPLACEABLE" ><I >conninfo</I ></TT > ]</TT ></DT ><DD ><P > Establishes a new connection to a <SPAN CLASS="PRODUCTNAME" >PostgreSQL</SPAN > server. The connection parameters to use can be specified either using a positional syntax, or using <TT CLASS="LITERAL" >conninfo</TT > connection strings as detailed in <A HREF="libpq-connect.html#LIBPQ-CONNSTRING" >Section 31.1.1</A >. </P ><P > Where the command omits database name, user, host, or port, the new connection can reuse values from the previous connection. By default, values from the previous connection are reused except when processing a <TT CLASS="LITERAL" >conninfo</TT > string. Passing a first argument of <TT CLASS="LITERAL" >-reuse-previous=on</TT > or <TT CLASS="LITERAL" >-reuse-previous=off</TT > overrides that default. When the command neither specifies nor reuses a particular parameter, the <SPAN CLASS="APPLICATION" >libpq</SPAN > default is used. Specifying any of <TT CLASS="REPLACEABLE" ><I >dbname</I ></TT >, <TT CLASS="REPLACEABLE" ><I >username</I ></TT >, <TT CLASS="REPLACEABLE" ><I >host</I ></TT > or <TT CLASS="REPLACEABLE" ><I >port</I ></TT > as <TT CLASS="LITERAL" >-</TT > is equivalent to omitting that parameter. </P ><P > If the new connection is successfully made, the previous connection is closed. If the connection attempt failed (wrong user name, access denied, etc.), the previous connection will only be kept if <SPAN CLASS="APPLICATION" >psql</SPAN > is in interactive mode. When executing a non-interactive script, processing will immediately stop with an error. This distinction was chosen as a user convenience against typos on the one hand, and a safety mechanism that scripts are not accidentally acting on the wrong database on the other hand. </P ><P > Examples: </P ><PRE CLASS="PROGRAMLISTING" >=> \c mydb myuser host.dom 6432 => \c service=foo => \c "host=localhost port=5432 dbname=mydb connect_timeout=10 sslmode=disable" => \c postgresql://tom@localhost/mydb?application_name=myapp</PRE ></DD ><DT ><TT CLASS="LITERAL" >\C [ <TT CLASS="REPLACEABLE" ><I >title</I ></TT > ]</TT ></DT ><DD ><P > Sets the title of any tables being printed as the result of a query or unset any such title. This command is equivalent to <TT CLASS="LITERAL" >\pset title <TT CLASS="REPLACEABLE" ><I >title</I ></TT ></TT >. (The name of this command derives from <SPAN CLASS="QUOTE" >"caption"</SPAN >, as it was previously only used to set the caption in an <ACRONYM CLASS="ACRONYM" >HTML</ACRONYM > table.) </P ></DD ><DT ><TT CLASS="LITERAL" >\cd [ <TT CLASS="REPLACEABLE" ><I >directory</I ></TT > ]</TT ></DT ><DD ><P > Changes the current working directory to <TT CLASS="REPLACEABLE" ><I >directory</I ></TT >. Without argument, changes to the current user's home directory. </P ><DIV CLASS="TIP" ><BLOCKQUOTE CLASS="TIP" ><P ><B >Tip: </B > To print your current working directory, use <TT CLASS="LITERAL" >\! pwd</TT >. </P ></BLOCKQUOTE ></DIV ></DD ><DT ><TT CLASS="LITERAL" >\conninfo</TT ></DT ><DD ><P > Outputs information about the current database connection. </P ></DD ><DT ><A NAME="APP-PSQL-META-COMMANDS-COPY" ></A ><TT CLASS="LITERAL" >\copy { <TT CLASS="REPLACEABLE" ><I >table</I ></TT > [ ( <TT CLASS="REPLACEABLE" ><I >column_list</I ></TT > ) ] | ( <TT CLASS="REPLACEABLE" ><I >query</I ></TT > ) } { <TT CLASS="LITERAL" >from</TT > | <TT CLASS="LITERAL" >to</TT > } { <TT CLASS="REPLACEABLE" ><I >filename</I ></TT > | stdin | stdout | pstdin | pstdout } [ with ] [ binary ] [ oids ] [ delimiter [ as ] '<TT CLASS="REPLACEABLE" ><I >character</I ></TT >' ] [ null [ as ] '<TT CLASS="REPLACEABLE" ><I >string</I ></TT >' ] [ csv [ header ] [ quote [ as ] '<TT CLASS="REPLACEABLE" ><I >character</I ></TT >' ] [ escape [ as ] '<TT CLASS="REPLACEABLE" ><I >character</I ></TT >' ] [ force quote <TT CLASS="REPLACEABLE" ><I >column_list</I ></TT > | * ] [ force not null <TT CLASS="REPLACEABLE" ><I >column_list</I ></TT > ] ]</TT ></DT ><DD ><P > Performs a frontend (client) copy. This is an operation that runs an <ACRONYM CLASS="ACRONYM" >SQL</ACRONYM > <A HREF="sql-copy.html" >COPY</A > command, but instead of the server reading or writing the specified file, <SPAN CLASS="APPLICATION" >psql</SPAN > reads or writes the file and routes the data between the server and the local file system. This means that file accessibility and privileges are those of the local user, not the server, and no SQL superuser privileges are required. </P ><P > The syntax of the command is similar to that of the <ACRONYM CLASS="ACRONYM" >SQL</ACRONYM > <A HREF="sql-copy.html" >COPY</A > command. Note that, because of this, special parsing rules apply to the <TT CLASS="COMMAND" >\copy</TT > command. In particular, the variable substitution rules and backslash escapes do not apply. </P ><P ><TT CLASS="LITERAL" >\copy ... from stdin | to stdout</TT > reads/writes based on the command input and output respectively. All rows are read from the same source that issued the command, continuing until <TT CLASS="LITERAL" >\.</TT > is read or the stream reaches <ACRONYM CLASS="ACRONYM" >EOF</ACRONYM >. Output is sent to the same place as command output. To read/write from <SPAN CLASS="APPLICATION" >psql</SPAN >'s standard input or output, use <TT CLASS="LITERAL" >pstdin</TT > or <TT CLASS="LITERAL" >pstdout</TT >. This option is useful for populating tables in-line within a SQL script file. </P ><DIV CLASS="TIP" ><BLOCKQUOTE CLASS="TIP" ><P ><B >Tip: </B > This operation is not as efficient as the <ACRONYM CLASS="ACRONYM" >SQL</ACRONYM > <TT CLASS="COMMAND" >COPY</TT > command because all data must pass through the client/server connection. For large amounts of data the <ACRONYM CLASS="ACRONYM" >SQL</ACRONYM > command might be preferable. </P ></BLOCKQUOTE ></DIV ></DD ><DT ><TT CLASS="LITERAL" >\copyright</TT ></DT ><DD ><P > Shows the copyright and distribution terms of <SPAN CLASS="PRODUCTNAME" >PostgreSQL</SPAN >. </P ></DD ><DT ><TT CLASS="LITERAL" >\d[S+] [ <A HREF="app-psql.html#APP-PSQL-PATTERNS" ><TT CLASS="REPLACEABLE" ><I >pattern</I ></TT ></A > ]</TT ></DT ><DD ><P > For each relation (table, view, index, sequence, or foreign table) or composite type matching the <TT CLASS="REPLACEABLE" ><I >pattern</I ></TT >, show all columns, their types, the tablespace (if not the default) and any special attributes such as <TT CLASS="LITERAL" >NOT NULL</TT > or defaults. Associated indexes, constraints, rules, and triggers are also shown. For foreign tables, the associated foreign server is shown as well. (<SPAN CLASS="QUOTE" >"Matching the pattern"</SPAN > is defined in <A HREF="app-psql.html#APP-PSQL-PATTERNS" ><I >Patterns</I ></A > below.) </P ><P > For some types of relation, <TT CLASS="LITERAL" >\d</TT > shows additional information for each column: column values for sequences, indexed expression for indexes and foreign data wrapper options for foreign tables. </P ><P > The command form <TT CLASS="LITERAL" >\d+</TT > is identical, except that more information is displayed: any comments associated with the columns of the table are shown, as is the presence of OIDs in the table, the view definition if the relation is a view. </P ><P > By default, only user-created objects are shown; supply a pattern or the <TT CLASS="LITERAL" >S</TT > modifier to include system objects. </P ><DIV CLASS="NOTE" ><BLOCKQUOTE CLASS="NOTE" ><P ><B >Note: </B > If <TT CLASS="COMMAND" >\d</TT > is used without a <TT CLASS="REPLACEABLE" ><I >pattern</I ></TT > argument, it is equivalent to <TT CLASS="COMMAND" >\dtvsE</TT > which will show a list of all visible tables, views, sequences and foreign tables. This is purely a convenience measure. </P ></BLOCKQUOTE ></DIV ></DD ><DT ><TT CLASS="LITERAL" >\da[S] [ <A HREF="app-psql.html#APP-PSQL-PATTERNS" ><TT CLASS="REPLACEABLE" ><I >pattern</I ></TT ></A > ]</TT ></DT ><DD ><P > Lists aggregate functions, together with their return type and the data types they operate on. If <TT CLASS="REPLACEABLE" ><I >pattern</I ></TT > is specified, only aggregates whose names match the pattern are shown. By default, only user-created objects are shown; supply a pattern or the <TT CLASS="LITERAL" >S</TT > modifier to include system objects. </P ></DD ><DT ><TT CLASS="LITERAL" >\db[+] [ <A HREF="app-psql.html#APP-PSQL-PATTERNS" ><TT CLASS="REPLACEABLE" ><I >pattern</I ></TT ></A > ]</TT ></DT ><DD ><P > Lists tablespaces. If <TT CLASS="REPLACEABLE" ><I >pattern</I ></TT > is specified, only tablespaces whose names match the pattern are shown. If <TT CLASS="LITERAL" >+</TT > is appended to the command name, each object is listed with its associated permissions. </P ></DD ><DT ><TT CLASS="LITERAL" >\dc[S+] [ <A HREF="app-psql.html#APP-PSQL-PATTERNS" ><TT CLASS="REPLACEABLE" ><I >pattern</I ></TT ></A > ]</TT ></DT ><DD ><P > Lists conversions between character-set encodings. If <TT CLASS="REPLACEABLE" ><I >pattern</I ></TT > is specified, only conversions whose names match the pattern are listed. By default, only user-created objects are shown; supply a pattern or the <TT CLASS="LITERAL" >S</TT > modifier to include system objects. If <TT CLASS="LITERAL" >+</TT > is appended to the command name, each object is listed with its associated description. </P ></DD ><DT ><TT CLASS="LITERAL" >\dC[+] [ <A HREF="app-psql.html#APP-PSQL-PATTERNS" ><TT CLASS="REPLACEABLE" ><I >pattern</I ></TT ></A > ]</TT ></DT ><DD ><P > Lists type casts. If <TT CLASS="REPLACEABLE" ><I >pattern</I ></TT > is specified, only casts whose source or target types match the pattern are listed. If <TT CLASS="LITERAL" >+</TT > is appended to the command name, each object is listed with its associated description. </P ></DD ><DT ><TT CLASS="LITERAL" >\dd[S] [ <A HREF="app-psql.html#APP-PSQL-PATTERNS" ><TT CLASS="REPLACEABLE" ><I >pattern</I ></TT ></A > ]</TT ></DT ><DD ><P > Shows the descriptions of objects of type <TT CLASS="LITERAL" >constraint</TT >, <TT CLASS="LITERAL" >operator class</TT >, <TT CLASS="LITERAL" >operator family</TT >, <TT CLASS="LITERAL" >rule</TT >, and <TT CLASS="LITERAL" >trigger</TT >. All other comments may be viewed by the respective backslash commands for those object types. </P ><P ><TT CLASS="LITERAL" >\dd</TT > displays descriptions for objects matching the <TT CLASS="REPLACEABLE" ><I >pattern</I ></TT >, or of visible objects of the appropriate type if no argument is given. But in either case, only objects that have a description are listed. By default, only user-created objects are shown; supply a pattern or the <TT CLASS="LITERAL" >S</TT > modifier to include system objects. </P ><P > Descriptions for objects can be created with the <A HREF="sql-comment.html" >COMMENT</A > <ACRONYM CLASS="ACRONYM" >SQL</ACRONYM > command. </P ></DD ><DT ><TT CLASS="LITERAL" >\ddp [ <A HREF="app-psql.html#APP-PSQL-PATTERNS" ><TT CLASS="REPLACEABLE" ><I >pattern</I ></TT ></A > ]</TT ></DT ><DD ><P > Lists default access privilege settings. An entry is shown for each role (and schema, if applicable) for which the default privilege settings have been changed from the built-in defaults. If <TT CLASS="REPLACEABLE" ><I >pattern</I ></TT > is specified, only entries whose role name or schema name matches the pattern are listed. </P ><P > The <A HREF="sql-alterdefaultprivileges.html" >ALTER DEFAULT PRIVILEGES</A > command is used to set default access privileges. The meaning of the privilege display is explained under <A HREF="sql-grant.html" >GRANT</A >. </P ></DD ><DT ><TT CLASS="LITERAL" >\dD[S+] [ <A HREF="app-psql.html#APP-PSQL-PATTERNS" ><TT CLASS="REPLACEABLE" ><I >pattern</I ></TT ></A > ]</TT ></DT ><DD ><P > Lists domains. If <TT CLASS="REPLACEABLE" ><I >pattern</I ></TT > is specified, only domains whose names match the pattern are shown. By default, only user-created objects are shown; supply a pattern or the <TT CLASS="LITERAL" >S</TT > modifier to include system objects. If <TT CLASS="LITERAL" >+</TT > is appended to the command name, each object is listed with its associated permissions and description. </P ></DD ><DT ><TT CLASS="LITERAL" >\dE[S+] [ <A HREF="app-psql.html#APP-PSQL-PATTERNS" ><TT CLASS="REPLACEABLE" ><I >pattern</I ></TT ></A > ]</TT ><BR><TT CLASS="LITERAL" >\di[S+] [ <A HREF="app-psql.html#APP-PSQL-PATTERNS" ><TT CLASS="REPLACEABLE" ><I >pattern</I ></TT ></A > ]</TT ><BR><TT CLASS="LITERAL" >\ds[S+] [ <A HREF="app-psql.html#APP-PSQL-PATTERNS" ><TT CLASS="REPLACEABLE" ><I >pattern</I ></TT ></A > ]</TT ><BR><TT CLASS="LITERAL" >\dt[S+] [ <A HREF="app-psql.html#APP-PSQL-PATTERNS" ><TT CLASS="REPLACEABLE" ><I >pattern</I ></TT ></A > ]</TT ><BR><TT CLASS="LITERAL" >\dv[S+] [ <A HREF="app-psql.html#APP-PSQL-PATTERNS" ><TT CLASS="REPLACEABLE" ><I >pattern</I ></TT ></A > ]</TT ></DT ><DD ><P > In this group of commands, the letters <TT CLASS="LITERAL" >E</TT >, <TT CLASS="LITERAL" >i</TT >, <TT CLASS="LITERAL" >s</TT >, <TT CLASS="LITERAL" >t</TT >, and <TT CLASS="LITERAL" >v</TT > stand for foreign table, index, sequence, table, and view, respectively. You can specify any or all of these letters, in any order, to obtain a listing of objects of these types. For example, <TT CLASS="LITERAL" >\dit</TT > lists indexes and tables. If <TT CLASS="LITERAL" >+</TT > is appended to the command name, each object is listed with its physical size on disk and its associated description, if any. If <TT CLASS="REPLACEABLE" ><I >pattern</I ></TT > is specified, only objects whose names match the pattern are listed. By default, only user-created objects are shown; supply a pattern or the <TT CLASS="LITERAL" >S</TT > modifier to include system objects. </P ></DD ><DT ><TT CLASS="LITERAL" >\des[+] [ <A HREF="app-psql.html#APP-PSQL-PATTERNS" ><TT CLASS="REPLACEABLE" ><I >pattern</I ></TT ></A > ]</TT ></DT ><DD ><P > Lists foreign servers (mnemonic: <SPAN CLASS="QUOTE" >"external servers"</SPAN >). If <TT CLASS="REPLACEABLE" ><I >pattern</I ></TT > is specified, only those servers whose name matches the pattern are listed. If the form <TT CLASS="LITERAL" >\des+</TT > is used, a full description of each server is shown, including the server's ACL, type, version, options, and description. </P ></DD ><DT ><TT CLASS="LITERAL" >\det[+] [ <A HREF="app-psql.html#APP-PSQL-PATTERNS" ><TT CLASS="REPLACEABLE" ><I >pattern</I ></TT ></A > ]</TT ></DT ><DD ><P > Lists foreign tables (mnemonic: <SPAN CLASS="QUOTE" >"external tables"</SPAN >). If <TT CLASS="REPLACEABLE" ><I >pattern</I ></TT > is specified, only entries whose table name or schema name matches the pattern are listed. If the form <TT CLASS="LITERAL" >\det+</TT > is used, generic options and the foreign table description are also displayed. </P ></DD ><DT ><TT CLASS="LITERAL" >\deu[+] [ <A HREF="app-psql.html#APP-PSQL-PATTERNS" ><TT CLASS="REPLACEABLE" ><I >pattern</I ></TT ></A > ]</TT ></DT ><DD ><P > Lists user mappings (mnemonic: <SPAN CLASS="QUOTE" >"external users"</SPAN >). If <TT CLASS="REPLACEABLE" ><I >pattern</I ></TT > is specified, only those mappings whose user names match the pattern are listed. If the form <TT CLASS="LITERAL" >\deu+</TT > is used, additional information about each mapping is shown. </P ><DIV CLASS="CAUTION" ><P ></P ><TABLE CLASS="CAUTION" BORDER="1" WIDTH="90%" ><TR ><TD ALIGN="CENTER" ><B >Caution</B ></TD ></TR ><TR ><TD ALIGN="LEFT" ><P > <TT CLASS="LITERAL" >\deu+</TT > might also display the user name and password of the remote user, so care should be taken not to disclose them. </P ></TD ></TR ></TABLE ></DIV ></DD ><DT ><TT CLASS="LITERAL" >\dew[+] [ <A HREF="app-psql.html#APP-PSQL-PATTERNS" ><TT CLASS="REPLACEABLE" ><I >pattern</I ></TT ></A > ]</TT ></DT ><DD ><P > Lists foreign-data wrappers (mnemonic: <SPAN CLASS="QUOTE" >"external wrappers"</SPAN >). If <TT CLASS="REPLACEABLE" ><I >pattern</I ></TT > is specified, only those foreign-data wrappers whose name matches the pattern are listed. If the form <TT CLASS="LITERAL" >\dew+</TT > is used, the ACL, options, and description of the foreign-data wrapper are also shown. </P ></DD ><DT ><TT CLASS="LITERAL" >\df[antwS+] [ <A HREF="app-psql.html#APP-PSQL-PATTERNS" ><TT CLASS="REPLACEABLE" ><I >pattern</I ></TT ></A > ]</TT ></DT ><DD ><P > Lists functions, together with their arguments, return types, and function types, which are classified as <SPAN CLASS="QUOTE" >"agg"</SPAN > (aggregate), <SPAN CLASS="QUOTE" >"normal"</SPAN >, <SPAN CLASS="QUOTE" >"trigger"</SPAN >, or <SPAN CLASS="QUOTE" >"window"</SPAN >. To display only functions of specific type(s), add the corresponding letters <TT CLASS="LITERAL" >a</TT >, <TT CLASS="LITERAL" >n</TT >, <TT CLASS="LITERAL" >t</TT >, or <TT CLASS="LITERAL" >w</TT > to the command. If <TT CLASS="REPLACEABLE" ><I >pattern</I ></TT > is specified, only functions whose names match the pattern are shown. If the form <TT CLASS="LITERAL" >\df+</TT > is used, additional information about each function, including volatility, language, source code and description, is shown. By default, only user-created objects are shown; supply a pattern or the <TT CLASS="LITERAL" >S</TT > modifier to include system objects. </P ><DIV CLASS="TIP" ><BLOCKQUOTE CLASS="TIP" ><P ><B >Tip: </B > To look up functions taking arguments or returning values of a specific type, use your pager's search capability to scroll through the <TT CLASS="LITERAL" >\df</TT > output. </P ></BLOCKQUOTE ></DIV ></DD ><DT ><TT CLASS="LITERAL" >\dF[+] [ <A HREF="app-psql.html#APP-PSQL-PATTERNS" ><TT CLASS="REPLACEABLE" ><I >pattern</I ></TT ></A > ]</TT ></DT ><DD ><P > Lists text search configurations. If <TT CLASS="REPLACEABLE" ><I >pattern</I ></TT > is specified, only configurations whose names match the pattern are shown. If the form <TT CLASS="LITERAL" >\dF+</TT > is used, a full description of each configuration is shown, including the underlying text search parser and the dictionary list for each parser token type. </P ></DD ><DT ><TT CLASS="LITERAL" >\dFd[+] [ <A HREF="app-psql.html#APP-PSQL-PATTERNS" ><TT CLASS="REPLACEABLE" ><I >pattern</I ></TT ></A > ]</TT ></DT ><DD ><P > Lists text search dictionaries. If <TT CLASS="REPLACEABLE" ><I >pattern</I ></TT > is specified, only dictionaries whose names match the pattern are shown. If the form <TT CLASS="LITERAL" >\dFd+</TT > is used, additional information is shown about each selected dictionary, including the underlying text search template and the option values. </P ></DD ><DT ><TT CLASS="LITERAL" >\dFp[+] [ <A HREF="app-psql.html#APP-PSQL-PATTERNS" ><TT CLASS="REPLACEABLE" ><I >pattern</I ></TT ></A > ]</TT ></DT ><DD ><P > Lists text search parsers. If <TT CLASS="REPLACEABLE" ><I >pattern</I ></TT > is specified, only parsers whose names match the pattern are shown. If the form <TT CLASS="LITERAL" >\dFp+</TT > is used, a full description of each parser is shown, including the underlying functions and the list of recognized token types. </P ></DD ><DT ><TT CLASS="LITERAL" >\dFt[+] [ <A HREF="app-psql.html#APP-PSQL-PATTERNS" ><TT CLASS="REPLACEABLE" ><I >pattern</I ></TT ></A > ]</TT ></DT ><DD ><P > Lists text search templates. If <TT CLASS="REPLACEABLE" ><I >pattern</I ></TT > is specified, only templates whose names match the pattern are shown. If the form <TT CLASS="LITERAL" >\dFt+</TT > is used, additional information is shown about each template, including the underlying function names. </P ></DD ><DT ><TT CLASS="LITERAL" >\dg[+] [ <A HREF="app-psql.html#APP-PSQL-PATTERNS" ><TT CLASS="REPLACEABLE" ><I >pattern</I ></TT ></A > ]</TT ></DT ><DD ><P > Lists database roles. (Since the concepts of <SPAN CLASS="QUOTE" >"users"</SPAN > and <SPAN CLASS="QUOTE" >"groups"</SPAN > have been unified into <SPAN CLASS="QUOTE" >"roles"</SPAN >, this command is now equivalent to <TT CLASS="LITERAL" >\du</TT >.) If <TT CLASS="REPLACEABLE" ><I >pattern</I ></TT > is specified, only those roles whose names match the pattern are listed. If the form <TT CLASS="LITERAL" >\dg+</TT > is used, additional information is shown about each role; currently this adds the comment for each role. </P ></DD ><DT ><TT CLASS="LITERAL" >\dl</TT ></DT ><DD ><P > This is an alias for <TT CLASS="COMMAND" >\lo_list</TT >, which shows a list of large objects. </P ></DD ><DT ><TT CLASS="LITERAL" >\dL[S+] [ <A HREF="app-psql.html#APP-PSQL-PATTERNS" ><TT CLASS="REPLACEABLE" ><I >pattern</I ></TT ></A > ]</TT ></DT ><DD ><P > Lists procedural languages. If <TT CLASS="REPLACEABLE" ><I >pattern</I ></TT > is specified, only languages whose names match the pattern are listed. By default, only user-created languages are shown; supply the <TT CLASS="LITERAL" >S</TT > modifier to include system objects. If <TT CLASS="LITERAL" >+</TT > is appended to the command name, each language is listed with its call handler, validator, access privileges, and whether it is a system object. </P ></DD ><DT ><TT CLASS="LITERAL" >\dn[S+] [ <A HREF="app-psql.html#APP-PSQL-PATTERNS" ><TT CLASS="REPLACEABLE" ><I >pattern</I ></TT ></A > ]</TT ></DT ><DD ><P > Lists schemas (namespaces). If <TT CLASS="REPLACEABLE" ><I >pattern</I ></TT > is specified, only schemas whose names match the pattern are listed. By default, only user-created objects are shown; supply a pattern or the <TT CLASS="LITERAL" >S</TT > modifier to include system objects. If <TT CLASS="LITERAL" >+</TT > is appended to the command name, each object is listed with its associated permissions and description, if any. </P ></DD ><DT ><TT CLASS="LITERAL" >\do[S] [ <A HREF="app-psql.html#APP-PSQL-PATTERNS" ><TT CLASS="REPLACEABLE" ><I >pattern</I ></TT ></A > ]</TT ></DT ><DD ><P > Lists operators with their operand and return types. If <TT CLASS="REPLACEABLE" ><I >pattern</I ></TT > is specified, only operators whose names match the pattern are listed. By default, only user-created objects are shown; supply a pattern or the <TT CLASS="LITERAL" >S</TT > modifier to include system objects. </P ></DD ><DT ><TT CLASS="LITERAL" >\dO[S+] [ <A HREF="app-psql.html#APP-PSQL-PATTERNS" ><TT CLASS="REPLACEABLE" ><I >pattern</I ></TT ></A > ]</TT ></DT ><DD ><P > Lists collations. If <TT CLASS="REPLACEABLE" ><I >pattern</I ></TT > is specified, only collations whose names match the pattern are listed. By default, only user-created objects are shown; supply a pattern or the <TT CLASS="LITERAL" >S</TT > modifier to include system objects. If <TT CLASS="LITERAL" >+</TT > is appended to the command name, each collation is listed with its associated description, if any. Note that only collations usable with the current database's encoding are shown, so the results may vary in different databases of the same installation. </P ></DD ><DT ><TT CLASS="LITERAL" >\dp [ <A HREF="app-psql.html#APP-PSQL-PATTERNS" ><TT CLASS="REPLACEABLE" ><I >pattern</I ></TT ></A > ]</TT ></DT ><DD ><P > Lists tables, views and sequences with their associated access privileges. If <TT CLASS="REPLACEABLE" ><I >pattern</I ></TT > is specified, only tables, views and sequences whose names match the pattern are listed. </P ><P > The <A HREF="sql-grant.html" >GRANT</A > and <A HREF="sql-revoke.html" >REVOKE</A > commands are used to set access privileges. The meaning of the privilege display is explained under <A HREF="sql-grant.html" >GRANT</A >. </P ></DD ><DT ><TT CLASS="LITERAL" >\drds [ <A HREF="app-psql.html#APP-PSQL-PATTERNS" ><TT CLASS="REPLACEABLE" ><I >role-pattern</I ></TT ></A > [ <A HREF="app-psql.html#APP-PSQL-PATTERNS" ><TT CLASS="REPLACEABLE" ><I >database-pattern</I ></TT ></A > ] ]</TT ></DT ><DD ><P > Lists defined configuration settings. These settings can be role-specific, database-specific, or both. <TT CLASS="REPLACEABLE" ><I >role-pattern</I ></TT > and <TT CLASS="REPLACEABLE" ><I >database-pattern</I ></TT > are used to select specific roles and databases to list, respectively. If omitted, or if <TT CLASS="LITERAL" >*</TT > is specified, all settings are listed, including those not role-specific or database-specific, respectively. </P ><P > The <A HREF="sql-alterrole.html" >ALTER ROLE</A > and <A HREF="sql-alterdatabase.html" >ALTER DATABASE</A > commands are used to define per-role and per-database configuration settings. </P ></DD ><DT ><TT CLASS="LITERAL" >\dT[S+] [ <A HREF="app-psql.html#APP-PSQL-PATTERNS" ><TT CLASS="REPLACEABLE" ><I >pattern</I ></TT ></A > ]</TT ></DT ><DD ><P > Lists data types. If <TT CLASS="REPLACEABLE" ><I >pattern</I ></TT > is specified, only types whose names match the pattern are listed. If <TT CLASS="LITERAL" >+</TT > is appended to the command name, each type is listed with its internal name and size, its allowed values if it is an <TT CLASS="TYPE" >enum</TT > type, and its associated permissions. By default, only user-created objects are shown; supply a pattern or the <TT CLASS="LITERAL" >S</TT > modifier to include system objects. </P ></DD ><DT ><TT CLASS="LITERAL" >\du[+] [ <A HREF="app-psql.html#APP-PSQL-PATTERNS" ><TT CLASS="REPLACEABLE" ><I >pattern</I ></TT ></A > ]</TT ></DT ><DD ><P > Lists database roles. (Since the concepts of <SPAN CLASS="QUOTE" >"users"</SPAN > and <SPAN CLASS="QUOTE" >"groups"</SPAN > have been unified into <SPAN CLASS="QUOTE" >"roles"</SPAN >, this command is now equivalent to <TT CLASS="LITERAL" >\dg</TT >.) If <TT CLASS="REPLACEABLE" ><I >pattern</I ></TT > is specified, only those roles whose names match the pattern are listed. If the form <TT CLASS="LITERAL" >\du+</TT > is used, additional information is shown about each role; currently this adds the comment for each role. </P ></DD ><DT ><TT CLASS="LITERAL" >\dx[+] [ <A HREF="app-psql.html#APP-PSQL-PATTERNS" ><TT CLASS="REPLACEABLE" ><I >pattern</I ></TT ></A > ]</TT ></DT ><DD ><P > Lists installed extensions. If <TT CLASS="REPLACEABLE" ><I >pattern</I ></TT > is specified, only those extensions whose names match the pattern are listed. If the form <TT CLASS="LITERAL" >\dx+</TT > is used, all the objects belonging to each matching extension are listed. </P ></DD ><DT ><TT CLASS="LITERAL" >\e</TT > or <TT CLASS="LITERAL" >\edit</TT > <TT CLASS="LITERAL" > [<SPAN CLASS="OPTIONAL" > <TT CLASS="REPLACEABLE" ><I >filename</I ></TT > </SPAN >] [<SPAN CLASS="OPTIONAL" > <TT CLASS="REPLACEABLE" ><I >line_number</I ></TT > </SPAN >] </TT ></DT ><DD ><P > If <TT CLASS="REPLACEABLE" ><I >filename</I ></TT > is specified, the file is edited; after the editor exits, its content is copied back to the query buffer. If no <TT CLASS="REPLACEABLE" ><I >filename</I ></TT > is given, the current query buffer is copied to a temporary file which is then edited in the same fashion. </P ><P > The new query buffer is then re-parsed according to the normal rules of <SPAN CLASS="APPLICATION" >psql</SPAN >, where the whole buffer is treated as a single line. (Thus you cannot make scripts this way. Use <TT CLASS="COMMAND" >\i</TT > for that.) This means that if the query ends with (or contains) a semicolon, it is immediately executed. Otherwise it will merely wait in the query buffer; type semicolon or <TT CLASS="LITERAL" >\g</TT > to send it, or <TT CLASS="LITERAL" >\r</TT > to cancel. </P ><P > If a line number is specified, <SPAN CLASS="APPLICATION" >psql</SPAN > will position the cursor on the specified line of the file or query buffer. Note that if a single all-digits argument is given, <SPAN CLASS="APPLICATION" >psql</SPAN > assumes it is a line number, not a file name. </P ><DIV CLASS="TIP" ><BLOCKQUOTE CLASS="TIP" ><P ><B >Tip: </B > See under <A HREF="app-psql.html#APP-PSQL-ENVIRONMENT" ><I >Environment</I ></A > for how to configure and customize your editor. </P ></BLOCKQUOTE ></DIV ></DD ><DT ><TT CLASS="LITERAL" >\echo <TT CLASS="REPLACEABLE" ><I >text</I ></TT > [ ... ]</TT ></DT ><DD ><P > Prints the arguments to the standard output, separated by one space and followed by a newline. This can be useful to intersperse information in the output of scripts. For example: </P><PRE CLASS="PROGRAMLISTING" >=> <KBD CLASS="USERINPUT" >\echo `date`</KBD > Tue Oct 26 21:40:57 CEST 1999</PRE ><P> If the first argument is an unquoted <TT CLASS="LITERAL" >-n</TT > the trailing newline is not written. </P ><DIV CLASS="TIP" ><BLOCKQUOTE CLASS="TIP" ><P ><B >Tip: </B > If you use the <TT CLASS="COMMAND" >\o</TT > command to redirect your query output you might wish to use <TT CLASS="COMMAND" >\qecho</TT > instead of this command. </P ></BLOCKQUOTE ></DIV ></DD ><DT ><TT CLASS="LITERAL" >\ef [<SPAN CLASS="OPTIONAL" > <TT CLASS="REPLACEABLE" ><I >function_description</I ></TT > [<SPAN CLASS="OPTIONAL" > <TT CLASS="REPLACEABLE" ><I >line_number</I ></TT > </SPAN >] </SPAN >] </TT ></DT ><DD ><P > This command fetches and edits the definition of the named function, in the form of a <TT CLASS="COMMAND" >CREATE OR REPLACE FUNCTION</TT > command. Editing is done in the same way as for <TT CLASS="LITERAL" >\edit</TT >. After the editor exits, the updated command waits in the query buffer; type semicolon or <TT CLASS="LITERAL" >\g</TT > to send it, or <TT CLASS="LITERAL" >\r</TT > to cancel. </P ><P > The target function can be specified by name alone, or by name and arguments, for example <TT CLASS="LITERAL" >foo(integer, text)</TT >. The argument types must be given if there is more than one function of the same name. </P ><P > If no function is specified, a blank <TT CLASS="COMMAND" >CREATE FUNCTION</TT > template is presented for editing. </P ><P > If a line number is specified, <SPAN CLASS="APPLICATION" >psql</SPAN > will position the cursor on the specified line of the function body. (Note that the function body typically does not begin on the first line of the file.) </P ><DIV CLASS="TIP" ><BLOCKQUOTE CLASS="TIP" ><P ><B >Tip: </B > See under <A HREF="app-psql.html#APP-PSQL-ENVIRONMENT" ><I >Environment</I ></A > for how to configure and customize your editor. </P ></BLOCKQUOTE ></DIV ></DD ><DT ><TT CLASS="LITERAL" >\encoding [ <TT CLASS="REPLACEABLE" ><I >encoding</I ></TT > ]</TT ></DT ><DD ><P > Sets the client character set encoding. Without an argument, this command shows the current encoding. </P ></DD ><DT ><TT CLASS="LITERAL" >\f [ <TT CLASS="REPLACEABLE" ><I >string</I ></TT > ]</TT ></DT ><DD ><P > Sets the field separator for unaligned query output. The default is the vertical bar (<TT CLASS="LITERAL" >|</TT >). See also <TT CLASS="COMMAND" >\pset</TT > for a generic way of setting output options. </P ></DD ><DT ><TT CLASS="LITERAL" >\g [ <TT CLASS="REPLACEABLE" ><I >filename</I ></TT > ]</TT ><BR><TT CLASS="LITERAL" >\g [ |<TT CLASS="REPLACEABLE" ><I >command</I ></TT > ]</TT ></DT ><DD ><P > Sends the current query input buffer to the server, and optionally stores the query's output in <TT CLASS="REPLACEABLE" ><I >filename</I ></TT > or pipes the output to the shell command <TT CLASS="REPLACEABLE" ><I >command</I ></TT >. A bare <TT CLASS="LITERAL" >\g</TT > is virtually equivalent to a semicolon. A <TT CLASS="LITERAL" >\g</TT > with argument is a <SPAN CLASS="QUOTE" >"one-shot"</SPAN > alternative to the <TT CLASS="COMMAND" >\o</TT > command. </P ></DD ><DT ><TT CLASS="LITERAL" >\h</TT > or <TT CLASS="LITERAL" >\help</TT > <TT CLASS="LITERAL" >[ <TT CLASS="REPLACEABLE" ><I >command</I ></TT > ]</TT ></DT ><DD ><P > Gives syntax help on the specified <ACRONYM CLASS="ACRONYM" >SQL</ACRONYM > command. If <TT CLASS="REPLACEABLE" ><I >command</I ></TT > is not specified, then <SPAN CLASS="APPLICATION" >psql</SPAN > will list all the commands for which syntax help is available. If <TT CLASS="REPLACEABLE" ><I >command</I ></TT > is an asterisk (<TT CLASS="LITERAL" >*</TT >), then syntax help on all <ACRONYM CLASS="ACRONYM" >SQL</ACRONYM > commands is shown. </P ><DIV CLASS="NOTE" ><BLOCKQUOTE CLASS="NOTE" ><P ><B >Note: </B > To simplify typing, commands that consists of several words do not have to be quoted. Thus it is fine to type <KBD CLASS="USERINPUT" >\help alter table</KBD >. </P ></BLOCKQUOTE ></DIV ></DD ><DT ><TT CLASS="LITERAL" >\H</TT > or <TT CLASS="LITERAL" >\html</TT ></DT ><DD ><P > Turns on <ACRONYM CLASS="ACRONYM" >HTML</ACRONYM > query output format. If the <ACRONYM CLASS="ACRONYM" >HTML</ACRONYM > format is already on, it is switched back to the default aligned text format. This command is for compatibility and convenience, but see <TT CLASS="COMMAND" >\pset</TT > about setting other output options. </P ></DD ><DT ><TT CLASS="LITERAL" >\i</TT > or <TT CLASS="LITERAL" >\include</TT > <TT CLASS="REPLACEABLE" ><I >filename</I ></TT ></DT ><DD ><P > Reads input from the file <TT CLASS="REPLACEABLE" ><I >filename</I ></TT > and executes it as though it had been typed on the keyboard. </P ><P > If <TT CLASS="REPLACEABLE" ><I >filename</I ></TT > is <TT CLASS="LITERAL" >-</TT > (hyphen), then standard input is read until an EOF indication or <TT CLASS="COMMAND" >\q</TT > meta-command. This can be used to intersperse interactive input with input from files. Note that Readline behavior will be used only if it is active at the outermost level. </P ><DIV CLASS="NOTE" ><BLOCKQUOTE CLASS="NOTE" ><P ><B >Note: </B > If you want to see the lines on the screen as they are read you must set the variable <TT CLASS="VARNAME" >ECHO</TT > to <TT CLASS="LITERAL" >all</TT >. </P ></BLOCKQUOTE ></DIV ></DD ><DT ><TT CLASS="LITERAL" >\ir</TT > or <TT CLASS="LITERAL" >\include_relative</TT > <TT CLASS="REPLACEABLE" ><I >filename</I ></TT ></DT ><DD ><P > The <TT CLASS="LITERAL" >\ir</TT > command is similar to <TT CLASS="LITERAL" >\i</TT >, but resolves relative file names differently. When executing in interactive mode, the two commands behave identically. However, when invoked from a script, <TT CLASS="LITERAL" >\ir</TT > interprets file names relative to the directory in which the script is located, rather than the current working directory. </P ></DD ><DT ><TT CLASS="LITERAL" >\l</TT > (or <TT CLASS="LITERAL" >\list</TT >)<BR><TT CLASS="LITERAL" >\l+</TT > (or <TT CLASS="LITERAL" >\list+</TT >)</DT ><DD ><P > List the names, owners, character set encodings, and access privileges of all the databases in the server. If <TT CLASS="LITERAL" >+</TT > is appended to the command name, database sizes, default tablespaces, and descriptions are also displayed. (Size information is only available for databases that the current user can connect to.) </P ></DD ><DT ><TT CLASS="LITERAL" >\lo_export <TT CLASS="REPLACEABLE" ><I >loid</I ></TT > <TT CLASS="REPLACEABLE" ><I >filename</I ></TT ></TT ></DT ><DD ><P > Reads the large object with <ACRONYM CLASS="ACRONYM" >OID</ACRONYM > <TT CLASS="REPLACEABLE" ><I >loid</I ></TT > from the database and writes it to <TT CLASS="REPLACEABLE" ><I >filename</I ></TT >. Note that this is subtly different from the server function <CODE CLASS="FUNCTION" >lo_export</CODE >, which acts with the permissions of the user that the database server runs as and on the server's file system. </P ><DIV CLASS="TIP" ><BLOCKQUOTE CLASS="TIP" ><P ><B >Tip: </B > Use <TT CLASS="COMMAND" >\lo_list</TT > to find out the large object's <ACRONYM CLASS="ACRONYM" >OID</ACRONYM >. </P ></BLOCKQUOTE ></DIV ></DD ><DT ><TT CLASS="LITERAL" >\lo_import <TT CLASS="REPLACEABLE" ><I >filename</I ></TT > [ <TT CLASS="REPLACEABLE" ><I >comment</I ></TT > ]</TT ></DT ><DD ><P > Stores the file into a <SPAN CLASS="PRODUCTNAME" >PostgreSQL</SPAN > large object. Optionally, it associates the given comment with the object. Example: </P><PRE CLASS="PROGRAMLISTING" >foo=> <KBD CLASS="USERINPUT" >\lo_import '/home/peter/pictures/photo.xcf' 'a picture of me'</KBD > lo_import 152801</PRE ><P> The response indicates that the large object received object ID 152801, which can be used to access the newly-created large object in the future. For the sake of readability, it is recommended to always associate a human-readable comment with every object. Both OIDs and comments can be viewed with the <TT CLASS="COMMAND" >\lo_list</TT > command. </P ><P > Note that this command is subtly different from the server-side <CODE CLASS="FUNCTION" >lo_import</CODE > because it acts as the local user on the local file system, rather than the server's user and file system. </P ></DD ><DT ><TT CLASS="LITERAL" >\lo_list</TT ></DT ><DD ><P > Shows a list of all <SPAN CLASS="PRODUCTNAME" >PostgreSQL</SPAN > large objects currently stored in the database, along with any comments provided for them. </P ></DD ><DT ><TT CLASS="LITERAL" >\lo_unlink <TT CLASS="REPLACEABLE" ><I >loid</I ></TT ></TT ></DT ><DD ><P > Deletes the large object with <ACRONYM CLASS="ACRONYM" >OID</ACRONYM > <TT CLASS="REPLACEABLE" ><I >loid</I ></TT > from the database. </P ><DIV CLASS="TIP" ><BLOCKQUOTE CLASS="TIP" ><P ><B >Tip: </B > Use <TT CLASS="COMMAND" >\lo_list</TT > to find out the large object's <ACRONYM CLASS="ACRONYM" >OID</ACRONYM >. </P ></BLOCKQUOTE ></DIV ></DD ><DT ><TT CLASS="LITERAL" >\o</TT > or <TT CLASS="LITERAL" >\out [ <TT CLASS="REPLACEABLE" ><I >filename</I ></TT > ]</TT ><BR><TT CLASS="LITERAL" >\o</TT > or <TT CLASS="LITERAL" >\out [ |<TT CLASS="REPLACEABLE" ><I >command</I ></TT > ]</TT ></DT ><DD ><P > Arranges to save future query results to the file <TT CLASS="REPLACEABLE" ><I >filename</I ></TT > or pipe future results to the shell command <TT CLASS="REPLACEABLE" ><I >command</I ></TT >. If no argument is specified, the query output is reset to the standard output. </P ><P ><SPAN CLASS="QUOTE" >"Query results"</SPAN > includes all tables, command responses, and notices obtained from the database server, as well as output of various backslash commands that query the database (such as <TT CLASS="COMMAND" >\d</TT >), but not error messages. </P ><DIV CLASS="TIP" ><BLOCKQUOTE CLASS="TIP" ><P ><B >Tip: </B > To intersperse text output in between query results, use <TT CLASS="COMMAND" >\qecho</TT >. </P ></BLOCKQUOTE ></DIV ></DD ><DT ><TT CLASS="LITERAL" >\p</TT > or <TT CLASS="LITERAL" >\print</TT ></DT ><DD ><P > Print the current query buffer to the standard output. </P ></DD ><DT ><TT CLASS="LITERAL" >\password [ <TT CLASS="REPLACEABLE" ><I >username</I ></TT > ]</TT ></DT ><DD ><P > Changes the password of the specified user (by default, the current user). This command prompts for the new password, encrypts it, and sends it to the server as an <TT CLASS="COMMAND" >ALTER ROLE</TT > command. This makes sure that the new password does not appear in cleartext in the command history, the server log, or elsewhere. </P ></DD ><DT ><TT CLASS="LITERAL" >\prompt [ <TT CLASS="REPLACEABLE" ><I >text</I ></TT > ] <TT CLASS="REPLACEABLE" ><I >name</I ></TT ></TT ></DT ><DD ><P > Prompts the user to supply text, which is assigned to the variable <TT CLASS="REPLACEABLE" ><I >name</I ></TT >. An optional prompt string, <TT CLASS="REPLACEABLE" ><I >text</I ></TT >, can be specified. (For multiword prompts, surround the text with single quotes.) </P ><P > By default, <TT CLASS="LITERAL" >\prompt</TT > uses the terminal for input and output. However, if the <TT CLASS="OPTION" >-f</TT > command line switch was used, <TT CLASS="LITERAL" >\prompt</TT > uses standard input and standard output. </P ></DD ><DT ><TT CLASS="LITERAL" >\pset <TT CLASS="REPLACEABLE" ><I >option</I ></TT > [ <TT CLASS="REPLACEABLE" ><I >value</I ></TT > ]</TT ></DT ><DD ><P > This command sets options affecting the output of query result tables. <TT CLASS="REPLACEABLE" ><I >option</I ></TT > indicates which option is to be set. The semantics of <TT CLASS="REPLACEABLE" ><I >value</I ></TT > vary depending on the selected option. For some options, omitting <TT CLASS="REPLACEABLE" ><I >value</I ></TT > causes the option to be toggled or unset, as described under the particular option. If no such behavior is mentioned, then omitting <TT CLASS="REPLACEABLE" ><I >value</I ></TT > just results in the current setting being displayed. </P ><P > Adjustable printing options are: <P ></P ></P><DIV CLASS="VARIABLELIST" ><DL ><DT ><TT CLASS="LITERAL" >border</TT ></DT ><DD ><P > The <TT CLASS="REPLACEABLE" ><I >value</I ></TT > must be a number. In general, the higher the number the more borders and lines the tables will have, but this depends on the particular format. In <ACRONYM CLASS="ACRONYM" >HTML</ACRONYM > format, this will translate directly into the <TT CLASS="LITERAL" >border=...</TT > attribute; in the other formats only values 0 (no border), 1 (internal dividing lines), and 2 (table frame) make sense. </P ></DD ><DT ><TT CLASS="LITERAL" >columns</TT ></DT ><DD ><P > Sets the target width for the <TT CLASS="LITERAL" >wrapped</TT > format, and also the width limit for determining whether output is wide enough to require the pager or switch to the vertical display in expanded auto mode. Zero (the default) causes the target width to be controlled by the environment variable <TT CLASS="ENVAR" >COLUMNS</TT >, or the detected screen width if <TT CLASS="ENVAR" >COLUMNS</TT > is not set. In addition, if <TT CLASS="LITERAL" >columns</TT > is zero then the <TT CLASS="LITERAL" >wrapped</TT > format only affects screen output. If <TT CLASS="LITERAL" >columns</TT > is nonzero then file and pipe output is wrapped to that width as well. </P ></DD ><DT ><TT CLASS="LITERAL" >expanded</TT > (or <TT CLASS="LITERAL" >x</TT >)</DT ><DD ><P > If <TT CLASS="REPLACEABLE" ><I >value</I ></TT > is specified it must be either <TT CLASS="LITERAL" >on</TT > or <TT CLASS="LITERAL" >off</TT >, which will enable or disable expanded mode, or <TT CLASS="LITERAL" >auto</TT >. If <TT CLASS="REPLACEABLE" ><I >value</I ></TT > is omitted the command toggles between the on and off settings. When expanded mode is enabled, query results are displayed in two columns, with the column name on the left and the data on the right. This mode is useful if the data wouldn't fit on the screen in the normal <SPAN CLASS="QUOTE" >"horizontal"</SPAN > mode. In the auto setting, the expanded mode is used whenever the query output is wider than the screen, otherwise the regular mode is used. The auto setting is only effective in the aligned and wrapped formats. In other formats, it always behaves as if the expanded mode is off. </P ></DD ><DT ><TT CLASS="LITERAL" >fieldsep</TT ></DT ><DD ><P > Specifies the field separator to be used in unaligned output format. That way one can create, for example, tab- or comma-separated output, which other programs might prefer. To set a tab as field separator, type <TT CLASS="LITERAL" >\pset fieldsep '\t'</TT >. The default field separator is <TT CLASS="LITERAL" >'|'</TT > (a vertical bar). </P ></DD ><DT ><TT CLASS="LITERAL" >fieldsep_zero</TT ></DT ><DD ><P > Sets the field separator to use in unaligned output format to a zero byte. </P ></DD ><DT ><TT CLASS="LITERAL" >footer</TT ></DT ><DD ><P > If <TT CLASS="REPLACEABLE" ><I >value</I ></TT > is specified it must be either <TT CLASS="LITERAL" >on</TT > or <TT CLASS="LITERAL" >off</TT > which will enable or disable display of the table footer (the <TT CLASS="LITERAL" >(<TT CLASS="REPLACEABLE" ><I >n</I ></TT > rows)</TT > count). If <TT CLASS="REPLACEABLE" ><I >value</I ></TT > is omitted the command toggles footer display on or off. </P ></DD ><DT ><TT CLASS="LITERAL" >format</TT ></DT ><DD ><P > Sets the output format to one of <TT CLASS="LITERAL" >unaligned</TT >, <TT CLASS="LITERAL" >aligned</TT >, <TT CLASS="LITERAL" >wrapped</TT >, <TT CLASS="LITERAL" >html</TT >, <TT CLASS="LITERAL" >latex</TT >, or <TT CLASS="LITERAL" >troff-ms</TT >. Unique abbreviations are allowed. (That would mean one letter is enough.) </P ><P ><TT CLASS="LITERAL" >unaligned</TT > format writes all columns of a row on one line, separated by the currently active field separator. This is useful for creating output that might be intended to be read in by other programs (for example, tab-separated or comma-separated format). </P ><P ><TT CLASS="LITERAL" >aligned</TT > format is the standard, human-readable, nicely formatted text output; this is the default. </P ><P ><TT CLASS="LITERAL" >wrapped</TT > format is like <TT CLASS="LITERAL" >aligned</TT > but wraps wide data values across lines to make the output fit in the target column width. The target width is determined as described under the <TT CLASS="LITERAL" >columns</TT > option. Note that <SPAN CLASS="APPLICATION" >psql</SPAN > will not attempt to wrap column header titles; therefore, <TT CLASS="LITERAL" >wrapped</TT > format behaves the same as <TT CLASS="LITERAL" >aligned</TT > if the total width needed for column headers exceeds the target. </P ><P > The <TT CLASS="LITERAL" >html</TT >, <TT CLASS="LITERAL" >latex</TT >, and <TT CLASS="LITERAL" >troff-ms</TT > formats put out tables that are intended to be included in documents using the respective mark-up language. They are not complete documents! (This might not be so dramatic in <ACRONYM CLASS="ACRONYM" >HTML</ACRONYM >, but in <SPAN CLASS="APPLICATION" >LaTeX</SPAN > you must have a complete document wrapper.) </P ></DD ><DT ><TT CLASS="LITERAL" >linestyle</TT ></DT ><DD ><P > Sets the border line drawing style to one of <TT CLASS="LITERAL" >ascii</TT >, <TT CLASS="LITERAL" >old-ascii</TT > or <TT CLASS="LITERAL" >unicode</TT >. Unique abbreviations are allowed. (That would mean one letter is enough.) The default setting is <TT CLASS="LITERAL" >ascii</TT >. This option only affects the <TT CLASS="LITERAL" >aligned</TT > and <TT CLASS="LITERAL" >wrapped</TT > output formats. </P ><P ><TT CLASS="LITERAL" >ascii</TT > style uses plain <ACRONYM CLASS="ACRONYM" >ASCII</ACRONYM > characters. Newlines in data are shown using a <TT CLASS="LITERAL" >+</TT > symbol in the right-hand margin. When the <TT CLASS="LITERAL" >wrapped</TT > format wraps data from one line to the next without a newline character, a dot (<TT CLASS="LITERAL" >.</TT >) is shown in the right-hand margin of the first line, and again in the left-hand margin of the following line. </P ><P ><TT CLASS="LITERAL" >old-ascii</TT > style uses plain <ACRONYM CLASS="ACRONYM" >ASCII</ACRONYM > characters, using the formatting style used in <SPAN CLASS="PRODUCTNAME" >PostgreSQL</SPAN > 8.4 and earlier. Newlines in data are shown using a <TT CLASS="LITERAL" >:</TT > symbol in place of the left-hand column separator. When the data is wrapped from one line to the next without a newline character, a <TT CLASS="LITERAL" >;</TT > symbol is used in place of the left-hand column separator. </P ><P ><TT CLASS="LITERAL" >unicode</TT > style uses Unicode box-drawing characters. Newlines in data are shown using a carriage return symbol in the right-hand margin. When the data is wrapped from one line to the next without a newline character, an ellipsis symbol is shown in the right-hand margin of the first line, and again in the left-hand margin of the following line. </P ><P > When the <TT CLASS="LITERAL" >border</TT > setting is greater than zero, this option also determines the characters with which the border lines are drawn. Plain <ACRONYM CLASS="ACRONYM" >ASCII</ACRONYM > characters work everywhere, but Unicode characters look nicer on displays that recognize them. </P ></DD ><DT ><TT CLASS="LITERAL" >null</TT ></DT ><DD ><P > Sets the string to be printed in place of a null value. The default is to print nothing, which can easily be mistaken for an empty string. For example, one might prefer <TT CLASS="LITERAL" >\pset null '(null)'</TT >. </P ></DD ><DT ><TT CLASS="LITERAL" >numericlocale</TT ></DT ><DD ><P > If <TT CLASS="REPLACEABLE" ><I >value</I ></TT > is specified it must be either <TT CLASS="LITERAL" >on</TT > or <TT CLASS="LITERAL" >off</TT > which will enable or disable display of a locale-specific character to separate groups of digits to the left of the decimal marker. If <TT CLASS="REPLACEABLE" ><I >value</I ></TT > is omitted the command toggles between regular and locale-specific numeric output. </P ></DD ><DT ><TT CLASS="LITERAL" >pager</TT ></DT ><DD ><P > Controls use of a pager program for query and <SPAN CLASS="APPLICATION" >psql</SPAN > help output. If the environment variable <TT CLASS="ENVAR" >PAGER</TT > is set, the output is piped to the specified program. Otherwise a platform-dependent default (such as <TT CLASS="FILENAME" >more</TT >) is used. </P ><P > When the <TT CLASS="LITERAL" >pager</TT > option is <TT CLASS="LITERAL" >off</TT >, the pager program is not used. When the <TT CLASS="LITERAL" >pager</TT > option is <TT CLASS="LITERAL" >on</TT >, the pager is used when appropriate, i.e., when the output is to a terminal and will not fit on the screen. The <TT CLASS="LITERAL" >pager</TT > option can also be set to <TT CLASS="LITERAL" >always</TT >, which causes the pager to be used for all terminal output regardless of whether it fits on the screen. <TT CLASS="LITERAL" >\pset pager</TT > without a <TT CLASS="REPLACEABLE" ><I >value</I ></TT > toggles pager use on and off. </P ></DD ><DT ><TT CLASS="LITERAL" >recordsep</TT ></DT ><DD ><P > Specifies the record (line) separator to use in unaligned output format. The default is a newline character. </P ></DD ><DT ><TT CLASS="LITERAL" >recordsep_zero</TT ></DT ><DD ><P > Sets the record separator to use in unaligned output format to a zero byte. </P ></DD ><DT ><TT CLASS="LITERAL" >tableattr</TT > (or <TT CLASS="LITERAL" >T</TT >)</DT ><DD ><P > Specifies attributes to be placed inside the <ACRONYM CLASS="ACRONYM" >HTML</ACRONYM > <CODE CLASS="SGMLTAG" >table</CODE > tag in <TT CLASS="LITERAL" >html</TT > output format. This could for example be <TT CLASS="LITERAL" >cellpadding</TT > or <TT CLASS="LITERAL" >bgcolor</TT >. Note that you probably don't want to specify <TT CLASS="LITERAL" >border</TT > here, as that is already taken care of by <TT CLASS="LITERAL" >\pset border</TT >. If no <TT CLASS="REPLACEABLE" ><I >value</I ></TT > is given, the table attributes are unset. </P ></DD ><DT ><TT CLASS="LITERAL" >title</TT ></DT ><DD ><P > Sets the table title for any subsequently printed tables. This can be used to give your output descriptive tags. If no <TT CLASS="REPLACEABLE" ><I >value</I ></TT > is given, the title is unset. </P ></DD ><DT ><TT CLASS="LITERAL" >tuples_only</TT > (or <TT CLASS="LITERAL" >t</TT >)</DT ><DD ><P > If <TT CLASS="REPLACEABLE" ><I >value</I ></TT > is specified it must be either <TT CLASS="LITERAL" >on</TT > or <TT CLASS="LITERAL" >off</TT > which will enable or disable tuples-only mode. If <TT CLASS="REPLACEABLE" ><I >value</I ></TT > is omitted the command toggles between regular and tuples-only output. Regular output includes extra information such as column headers, titles, and various footers. In tuples-only mode, only actual table data is shown. </P ></DD ></DL ></DIV ><P> </P ><P > Illustrations of how these different formats look can be seen in the <A HREF="app-psql.html#APP-PSQL-EXAMPLES" ><I >Examples</I ></A > section. </P ><DIV CLASS="TIP" ><BLOCKQUOTE CLASS="TIP" ><P ><B >Tip: </B > There are various shortcut commands for <TT CLASS="COMMAND" >\pset</TT >. See <TT CLASS="COMMAND" >\a</TT >, <TT CLASS="COMMAND" >\C</TT >, <TT CLASS="COMMAND" >\H</TT >, <TT CLASS="COMMAND" >\t</TT >, <TT CLASS="COMMAND" >\T</TT >, and <TT CLASS="COMMAND" >\x</TT >. </P ></BLOCKQUOTE ></DIV ><DIV CLASS="NOTE" ><BLOCKQUOTE CLASS="NOTE" ><P ><B >Note: </B > It is an error to call <TT CLASS="COMMAND" >\pset</TT > without any arguments. In the future this case might show the current status of all printing options. </P ></BLOCKQUOTE ></DIV ></DD ><DT ><TT CLASS="LITERAL" >\q</TT > or <TT CLASS="LITERAL" >\quit</TT ></DT ><DD ><P > Quits the <SPAN CLASS="APPLICATION" >psql</SPAN > program. In a script file, only execution of that script is terminated. </P ></DD ><DT ><TT CLASS="LITERAL" >\qecho <TT CLASS="REPLACEABLE" ><I >text</I ></TT > [ ... ] </TT ></DT ><DD ><P > This command is identical to <TT CLASS="COMMAND" >\echo</TT > except that the output will be written to the query output channel, as set by <TT CLASS="COMMAND" >\o</TT >. </P ></DD ><DT ><TT CLASS="LITERAL" >\r</TT > or <TT CLASS="LITERAL" >\reset</TT ></DT ><DD ><P > Resets (clears) the query buffer. </P ></DD ><DT ><TT CLASS="LITERAL" >\s [ <TT CLASS="REPLACEABLE" ><I >filename</I ></TT > ]</TT ></DT ><DD ><P > Print <SPAN CLASS="APPLICATION" >psql</SPAN >'s command line history to <TT CLASS="REPLACEABLE" ><I >filename</I ></TT >. If <TT CLASS="REPLACEABLE" ><I >filename</I ></TT > is omitted, the history is written to the standard output (using the pager if appropriate). This command is not available if <SPAN CLASS="APPLICATION" >psql</SPAN > was built without <SPAN CLASS="APPLICATION" >Readline</SPAN > support. </P ></DD ><DT ><TT CLASS="LITERAL" >\set [ <TT CLASS="REPLACEABLE" ><I >name</I ></TT > [ <TT CLASS="REPLACEABLE" ><I >value</I ></TT > [ ... ] ] ]</TT ></DT ><DD ><P > Sets the <SPAN CLASS="APPLICATION" >psql</SPAN > variable <TT CLASS="REPLACEABLE" ><I >name</I ></TT > to <TT CLASS="REPLACEABLE" ><I >value</I ></TT >, or if more than one value is given, to the concatenation of all of them. If only one argument is given, the variable is set with an empty value. To unset a variable, use the <TT CLASS="COMMAND" >\unset</TT > command. </P ><P ><TT CLASS="COMMAND" >\set</TT > without any arguments displays the names and values of all currently-set <SPAN CLASS="APPLICATION" >psql</SPAN > variables. </P ><P > Valid variable names can contain letters, digits, and underscores. See the section <A HREF="app-psql.html#APP-PSQL-VARIABLES" ><I >Variables</I ></A > below for details. Variable names are case-sensitive. </P ><P > Although you are welcome to set any variable to anything you want, <SPAN CLASS="APPLICATION" >psql</SPAN > treats several variables as special. They are documented in the section about variables. </P ><DIV CLASS="NOTE" ><BLOCKQUOTE CLASS="NOTE" ><P ><B >Note: </B > This command is unrelated to the <ACRONYM CLASS="ACRONYM" >SQL</ACRONYM > command <A HREF="sql-set.html" >SET</A >. </P ></BLOCKQUOTE ></DIV ></DD ><DT ><TT CLASS="LITERAL" >\setenv <TT CLASS="REPLACEABLE" ><I >name</I ></TT > [ <TT CLASS="REPLACEABLE" ><I >value</I ></TT > ]</TT ></DT ><DD ><P > Sets the environment variable <TT CLASS="REPLACEABLE" ><I >name</I ></TT > to <TT CLASS="REPLACEABLE" ><I >value</I ></TT >, or if the <TT CLASS="REPLACEABLE" ><I >value</I ></TT > is not supplied, unsets the environment variable. Example: </P><PRE CLASS="PROGRAMLISTING" >testdb=> <KBD CLASS="USERINPUT" >\setenv PAGER less</KBD > testdb=> <KBD CLASS="USERINPUT" >\setenv LESS -imx4F</KBD ></PRE ><P></P ></DD ><DT ><TT CLASS="LITERAL" >\sf[+] <TT CLASS="REPLACEABLE" ><I >function_description</I ></TT > </TT ></DT ><DD ><P > This command fetches and shows the definition of the named function, in the form of a <TT CLASS="COMMAND" >CREATE OR REPLACE FUNCTION</TT > command. The definition is printed to the current query output channel, as set by <TT CLASS="COMMAND" >\o</TT >. </P ><P > The target function can be specified by name alone, or by name and arguments, for example <TT CLASS="LITERAL" >foo(integer, text)</TT >. The argument types must be given if there is more than one function of the same name. </P ><P > If <TT CLASS="LITERAL" >+</TT > is appended to the command name, then the output lines are numbered, with the first line of the function body being line 1. </P ></DD ><DT ><TT CLASS="LITERAL" >\t</TT ></DT ><DD ><P > Toggles the display of output column name headings and row count footer. This command is equivalent to <TT CLASS="LITERAL" >\pset tuples_only</TT > and is provided for convenience. </P ></DD ><DT ><TT CLASS="LITERAL" >\T <TT CLASS="REPLACEABLE" ><I >table_options</I ></TT ></TT ></DT ><DD ><P > Specifies attributes to be placed within the <CODE CLASS="SGMLTAG" >table</CODE > tag in <ACRONYM CLASS="ACRONYM" >HTML</ACRONYM > output format. This command is equivalent to <TT CLASS="LITERAL" >\pset tableattr <TT CLASS="REPLACEABLE" ><I >table_options</I ></TT ></TT >. </P ></DD ><DT ><TT CLASS="LITERAL" >\timing [ <TT CLASS="REPLACEABLE" ><I >on</I ></TT > | <TT CLASS="REPLACEABLE" ><I >off</I ></TT > ]</TT ></DT ><DD ><P > Without parameter, toggles a display of how long each SQL statement takes, in milliseconds. With parameter, sets same. </P ></DD ><DT ><TT CLASS="LITERAL" >\unset <TT CLASS="REPLACEABLE" ><I >name</I ></TT ></TT ></DT ><DD ><P > Unsets (deletes) the <SPAN CLASS="APPLICATION" >psql</SPAN > variable <TT CLASS="REPLACEABLE" ><I >name</I ></TT >. </P ></DD ><DT ><TT CLASS="LITERAL" >\w</TT > or <TT CLASS="LITERAL" >\write</TT > <TT CLASS="REPLACEABLE" ><I >filename</I ></TT ><BR><TT CLASS="LITERAL" >\w</TT > or <TT CLASS="LITERAL" >\write</TT > <TT CLASS="LITERAL" >|</TT ><TT CLASS="REPLACEABLE" ><I >command</I ></TT ></DT ><DD ><P > Outputs the current query buffer to the file <TT CLASS="REPLACEABLE" ><I >filename</I ></TT > or pipes it to the shell command <TT CLASS="REPLACEABLE" ><I >command</I ></TT >. </P ></DD ><DT ><TT CLASS="LITERAL" >\x [ <TT CLASS="REPLACEABLE" ><I >on</I ></TT > | <TT CLASS="REPLACEABLE" ><I >off</I ></TT > | <TT CLASS="REPLACEABLE" ><I >auto</I ></TT > ]</TT ></DT ><DD ><P > Sets or toggles expanded table formatting mode. As such it is equivalent to <TT CLASS="LITERAL" >\pset expanded</TT >. </P ></DD ><DT ><TT CLASS="LITERAL" >\z [ <A HREF="app-psql.html#APP-PSQL-PATTERNS" ><TT CLASS="REPLACEABLE" ><I >pattern</I ></TT ></A > ]</TT ></DT ><DD ><P > Lists tables, views and sequences with their associated access privileges. If a <TT CLASS="REPLACEABLE" ><I >pattern</I ></TT > is specified, only tables, views and sequences whose names match the pattern are listed. </P ><P > This is an alias for <TT CLASS="COMMAND" >\dp</TT > (<SPAN CLASS="QUOTE" >"display privileges"</SPAN >). </P ></DD ><DT ><TT CLASS="LITERAL" >\! [ <TT CLASS="REPLACEABLE" ><I >command</I ></TT > ]</TT ></DT ><DD ><P > Escapes to a separate shell or executes the shell command <TT CLASS="REPLACEABLE" ><I >command</I ></TT >. The arguments are not further interpreted; the shell will see them as-is. </P ></DD ><DT ><TT CLASS="LITERAL" >\?</TT ></DT ><DD ><P > Shows help information about the backslash commands. </P ></DD ></DL ></DIV ><P> </P ><DIV CLASS="REFSECT3" ><A NAME="APP-PSQL-PATTERNS" ></A ><H4 >Patterns</H4 ><P > The various <TT CLASS="LITERAL" >\d</TT > commands accept a <TT CLASS="REPLACEABLE" ><I >pattern</I ></TT > parameter to specify the object name(s) to be displayed. In the simplest case, a pattern is just the exact name of the object. The characters within a pattern are normally folded to lower case, just as in SQL names; for example, <TT CLASS="LITERAL" >\dt FOO</TT > will display the table named <TT CLASS="LITERAL" >foo</TT >. As in SQL names, placing double quotes around a pattern stops folding to lower case. Should you need to include an actual double quote character in a pattern, write it as a pair of double quotes within a double-quote sequence; again this is in accord with the rules for SQL quoted identifiers. For example, <TT CLASS="LITERAL" >\dt "FOO""BAR"</TT > will display the table named <TT CLASS="LITERAL" >FOO"BAR</TT > (not <TT CLASS="LITERAL" >foo"bar</TT >). Unlike the normal rules for SQL names, you can put double quotes around just part of a pattern, for instance <TT CLASS="LITERAL" >\dt FOO"FOO"BAR</TT > will display the table named <TT CLASS="LITERAL" >fooFOObar</TT >. </P ><P > Whenever the <TT CLASS="REPLACEABLE" ><I >pattern</I ></TT > parameter is omitted completely, the <TT CLASS="LITERAL" >\d</TT > commands display all objects that are visible in the current schema search path — this is equivalent to using <TT CLASS="LITERAL" >*</TT > as the pattern. (An object is said to be <I CLASS="FIRSTTERM" >visible</I > if its containing schema is in the search path and no object of the same kind and name appears earlier in the search path. This is equivalent to the statement that the object can be referenced by name without explicit schema qualification.) To see all objects in the database regardless of visibility, use <TT CLASS="LITERAL" >*.*</TT > as the pattern. </P ><P > Within a pattern, <TT CLASS="LITERAL" >*</TT > matches any sequence of characters (including no characters) and <TT CLASS="LITERAL" >?</TT > matches any single character. (This notation is comparable to Unix shell file name patterns.) For example, <TT CLASS="LITERAL" >\dt int*</TT > displays tables whose names begin with <TT CLASS="LITERAL" >int</TT >. But within double quotes, <TT CLASS="LITERAL" >*</TT > and <TT CLASS="LITERAL" >?</TT > lose these special meanings and are just matched literally. </P ><P > A pattern that contains a dot (<TT CLASS="LITERAL" >.</TT >) is interpreted as a schema name pattern followed by an object name pattern. For example, <TT CLASS="LITERAL" >\dt foo*.*bar*</TT > displays all tables whose table name includes <TT CLASS="LITERAL" >bar</TT > that are in schemas whose schema name starts with <TT CLASS="LITERAL" >foo</TT >. When no dot appears, then the pattern matches only objects that are visible in the current schema search path. Again, a dot within double quotes loses its special meaning and is matched literally. </P ><P > Advanced users can use regular-expression notations such as character classes, for example <TT CLASS="LITERAL" >[0-9]</TT > to match any digit. All regular expression special characters work as specified in <A HREF="functions-matching.html#FUNCTIONS-POSIX-REGEXP" >Section 9.7.3</A >, except for <TT CLASS="LITERAL" >.</TT > which is taken as a separator as mentioned above, <TT CLASS="LITERAL" >*</TT > which is translated to the regular-expression notation <TT CLASS="LITERAL" >.*</TT >, <TT CLASS="LITERAL" >?</TT > which is translated to <TT CLASS="LITERAL" >.</TT >, and <TT CLASS="LITERAL" >$</TT > which is matched literally. You can emulate these pattern characters at need by writing <TT CLASS="LITERAL" >?</TT > for <TT CLASS="LITERAL" >.</TT >, <TT CLASS="LITERAL" >(<TT CLASS="REPLACEABLE" ><I >R</I ></TT >+|)</TT > for <TT CLASS="LITERAL" ><TT CLASS="REPLACEABLE" ><I >R</I ></TT >*</TT >, or <TT CLASS="LITERAL" >(<TT CLASS="REPLACEABLE" ><I >R</I ></TT >|)</TT > for <TT CLASS="LITERAL" ><TT CLASS="REPLACEABLE" ><I >R</I ></TT >?</TT >. <TT CLASS="LITERAL" >$</TT > is not needed as a regular-expression character since the pattern must match the whole name, unlike the usual interpretation of regular expressions (in other words, <TT CLASS="LITERAL" >$</TT > is automatically appended to your pattern). Write <TT CLASS="LITERAL" >*</TT > at the beginning and/or end if you don't wish the pattern to be anchored. Note that within double quotes, all regular expression special characters lose their special meanings and are matched literally. Also, the regular expression special characters are matched literally in operator name patterns (i.e., the argument of <TT CLASS="LITERAL" >\do</TT >). </P ></DIV ></DIV ><DIV CLASS="REFSECT2" ><A NAME="AEN85494" ></A ><H3 >Advanced Features</H3 ><DIV CLASS="REFSECT3" ><A NAME="APP-PSQL-VARIABLES" ></A ><H4 >Variables</H4 ><P > <SPAN CLASS="APPLICATION" >psql</SPAN > provides variable substitution features similar to common Unix command shells. Variables are simply name/value pairs, where the value can be any string of any length. The name must consist of letters (including non-Latin letters), digits, and underscores. </P ><P > To set a variable, use the <SPAN CLASS="APPLICATION" >psql</SPAN > meta-command <TT CLASS="COMMAND" >\set</TT >. For example, </P><PRE CLASS="PROGRAMLISTING" >testdb=> <KBD CLASS="USERINPUT" >\set foo bar</KBD ></PRE ><P> sets the variable <TT CLASS="LITERAL" >foo</TT > to the value <TT CLASS="LITERAL" >bar</TT >. To retrieve the content of the variable, precede the name with a colon, for example: </P><PRE CLASS="PROGRAMLISTING" >testdb=> <KBD CLASS="USERINPUT" >\echo :foo</KBD > bar</PRE ><P> This works in both regular SQL commands and meta-commands; there is more detail in <A HREF="app-psql.html#APP-PSQL-INTERPOLATION" ><I ><I >SQL</I > Interpolation</I ></A >, below. </P ><P > If you call <TT CLASS="COMMAND" >\set</TT > without a second argument, the variable is set, with an empty string as value. To unset (i.e., delete) a variable, use the command <TT CLASS="COMMAND" >\unset</TT >. To show the values of all variables, call <TT CLASS="COMMAND" >\set</TT > without any argument. </P ><DIV CLASS="NOTE" ><BLOCKQUOTE CLASS="NOTE" ><P ><B >Note: </B > The arguments of <TT CLASS="COMMAND" >\set</TT > are subject to the same substitution rules as with other commands. Thus you can construct interesting references such as <TT CLASS="LITERAL" >\set :foo 'something'</TT > and get <SPAN CLASS="QUOTE" >"soft links"</SPAN > or <SPAN CLASS="QUOTE" >"variable variables"</SPAN > of <SPAN CLASS="PRODUCTNAME" >Perl</SPAN > or <SPAN CLASS="PRODUCTNAME" ><ACRONYM CLASS="ACRONYM" >PHP</ACRONYM ></SPAN > fame, respectively. Unfortunately (or fortunately?), there is no way to do anything useful with these constructs. On the other hand, <TT CLASS="LITERAL" >\set bar :foo</TT > is a perfectly valid way to copy a variable. </P ></BLOCKQUOTE ></DIV ><P > A number of these variables are treated specially by <SPAN CLASS="APPLICATION" >psql</SPAN >. They represent certain option settings that can be changed at run time by altering the value of the variable, or in some cases represent changeable state of <SPAN CLASS="APPLICATION" >psql</SPAN >. Although you can use these variables for other purposes, this is not recommended, as the program behavior might grow really strange really quickly. By convention, all specially treated variables' names consist of all upper-case ASCII letters (and possibly digits and underscores). To ensure maximum compatibility in the future, avoid using such variable names for your own purposes. A list of all specially treated variables follows. </P ><P ></P ><DIV CLASS="VARIABLELIST" ><DL ><DT ><TT CLASS="VARNAME" >AUTOCOMMIT</TT ></DT ><DD ><P > When <TT CLASS="LITERAL" >on</TT > (the default), each SQL command is automatically committed upon successful completion. To postpone commit in this mode, you must enter a <TT CLASS="COMMAND" >BEGIN</TT > or <TT CLASS="COMMAND" >START TRANSACTION</TT > SQL command. When <TT CLASS="LITERAL" >off</TT > or unset, SQL commands are not committed until you explicitly issue <TT CLASS="COMMAND" >COMMIT</TT > or <TT CLASS="COMMAND" >END</TT >. The autocommit-off mode works by issuing an implicit <TT CLASS="COMMAND" >BEGIN</TT > for you, just before any command that is not already in a transaction block and is not itself a <TT CLASS="COMMAND" >BEGIN</TT > or other transaction-control command, nor a command that cannot be executed inside a transaction block (such as <TT CLASS="COMMAND" >VACUUM</TT >). </P ><DIV CLASS="NOTE" ><BLOCKQUOTE CLASS="NOTE" ><P ><B >Note: </B > In autocommit-off mode, you must explicitly abandon any failed transaction by entering <TT CLASS="COMMAND" >ABORT</TT > or <TT CLASS="COMMAND" >ROLLBACK</TT >. Also keep in mind that if you exit the session without committing, your work will be lost. </P ></BLOCKQUOTE ></DIV ><DIV CLASS="NOTE" ><BLOCKQUOTE CLASS="NOTE" ><P ><B >Note: </B > The autocommit-on mode is <SPAN CLASS="PRODUCTNAME" >PostgreSQL</SPAN >'s traditional behavior, but autocommit-off is closer to the SQL spec. If you prefer autocommit-off, you might wish to set it in the system-wide <TT CLASS="FILENAME" >psqlrc</TT > file or your <TT CLASS="FILENAME" >~/.psqlrc</TT > file. </P ></BLOCKQUOTE ></DIV ></DD ><DT ><TT CLASS="VARNAME" >COMP_KEYWORD_CASE</TT ></DT ><DD ><P > Determines which letter case to use when completing an SQL key word. If set to <TT CLASS="LITERAL" >lower</TT > or <TT CLASS="LITERAL" >upper</TT >, the completed word will be in lower or upper case, respectively. If set to <TT CLASS="LITERAL" >preserve-lower</TT > or <TT CLASS="LITERAL" >preserve-upper</TT > (the default), the completed word will be in the case of the word already entered, but words being completed without anything entered will be in lower or upper case, respectively. </P ></DD ><DT ><TT CLASS="VARNAME" >DBNAME</TT ></DT ><DD ><P > The name of the database you are currently connected to. This is set every time you connect to a database (including program start-up), but can be unset. </P ></DD ><DT ><TT CLASS="VARNAME" >ECHO</TT ></DT ><DD ><P > If set to <TT CLASS="LITERAL" >all</TT >, all nonempty input lines are printed to standard output as they are read. (This does not apply to lines read interactively.) To select this behavior on program start-up, use the switch <TT CLASS="OPTION" >-a</TT >. If set to <TT CLASS="LITERAL" >queries</TT >, <SPAN CLASS="APPLICATION" >psql</SPAN > prints each query to standard output as it is sent to the server. The switch for this is <TT CLASS="OPTION" >-e</TT >. </P ></DD ><DT ><TT CLASS="VARNAME" >ECHO_HIDDEN</TT ></DT ><DD ><P > When this variable is set to <TT CLASS="LITERAL" >on</TT > and a backslash command queries the database, the query is first shown. This feature helps you to study <SPAN CLASS="PRODUCTNAME" >PostgreSQL</SPAN > internals and provide similar functionality in your own programs. (To select this behavior on program start-up, use the switch <TT CLASS="OPTION" >-E</TT >.) If you set the variable to the value <TT CLASS="LITERAL" >noexec</TT >, the queries are just shown but are not actually sent to the server and executed. </P ></DD ><DT ><TT CLASS="VARNAME" >ENCODING</TT ></DT ><DD ><P > The current client character set encoding. </P ></DD ><DT ><TT CLASS="VARNAME" >FETCH_COUNT</TT ></DT ><DD ><P > If this variable is set to an integer value > 0, the results of <TT CLASS="COMMAND" >SELECT</TT > queries are fetched and displayed in groups of that many rows, rather than the default behavior of collecting the entire result set before display. Therefore only a limited amount of memory is used, regardless of the size of the result set. Settings of 100 to 1000 are commonly used when enabling this feature. Keep in mind that when using this feature, a query might fail after having already displayed some rows. </P ><DIV CLASS="TIP" ><BLOCKQUOTE CLASS="TIP" ><P ><B >Tip: </B > Although you can use any output format with this feature, the default <TT CLASS="LITERAL" >aligned</TT > format tends to look bad because each group of <TT CLASS="VARNAME" >FETCH_COUNT</TT > rows will be formatted separately, leading to varying column widths across the row groups. The other output formats work better. </P ></BLOCKQUOTE ></DIV ></DD ><DT ><TT CLASS="VARNAME" >HISTCONTROL</TT ></DT ><DD ><P > If this variable is set to <TT CLASS="LITERAL" >ignorespace</TT >, lines which begin with a space are not entered into the history list. If set to a value of <TT CLASS="LITERAL" >ignoredups</TT >, lines matching the previous history line are not entered. A value of <TT CLASS="LITERAL" >ignoreboth</TT > combines the two options. If unset, or if set to any other value than those above, all lines read in interactive mode are saved on the history list. </P ><DIV CLASS="NOTE" ><BLOCKQUOTE CLASS="NOTE" ><P ><B >Note: </B > This feature was shamelessly plagiarized from <SPAN CLASS="APPLICATION" >Bash</SPAN >. </P ></BLOCKQUOTE ></DIV ></DD ><DT ><TT CLASS="VARNAME" >HISTFILE</TT ></DT ><DD ><P > The file name that will be used to store the history list. The default value is <TT CLASS="FILENAME" >~/.psql_history</TT >. For example, putting: </P><PRE CLASS="PROGRAMLISTING" >\set HISTFILE ~/.psql_history- :DBNAME</PRE ><P> in <TT CLASS="FILENAME" >~/.psqlrc</TT > will cause <SPAN CLASS="APPLICATION" >psql</SPAN > to maintain a separate history for each database. </P ><DIV CLASS="NOTE" ><BLOCKQUOTE CLASS="NOTE" ><P ><B >Note: </B > This feature was shamelessly plagiarized from <SPAN CLASS="APPLICATION" >Bash</SPAN >. </P ></BLOCKQUOTE ></DIV ></DD ><DT ><TT CLASS="VARNAME" >HISTSIZE</TT ></DT ><DD ><P > The number of commands to store in the command history. The default value is 500. </P ><DIV CLASS="NOTE" ><BLOCKQUOTE CLASS="NOTE" ><P ><B >Note: </B > This feature was shamelessly plagiarized from <SPAN CLASS="APPLICATION" >Bash</SPAN >. </P ></BLOCKQUOTE ></DIV ></DD ><DT ><TT CLASS="VARNAME" >HOST</TT ></DT ><DD ><P > The database server host you are currently connected to. This is set every time you connect to a database (including program start-up), but can be unset. </P ></DD ><DT ><TT CLASS="VARNAME" >IGNOREEOF</TT ></DT ><DD ><P > If unset, sending an <ACRONYM CLASS="ACRONYM" >EOF</ACRONYM > character (usually <B CLASS="KEYCAP" >Control</B >+<B CLASS="KEYCAP" >D</B >) to an interactive session of <SPAN CLASS="APPLICATION" >psql</SPAN > will terminate the application. If set to a numeric value, that many <ACRONYM CLASS="ACRONYM" >EOF</ACRONYM > characters are ignored before the application terminates. If the variable is set but has no numeric value, the default is 10. </P ><DIV CLASS="NOTE" ><BLOCKQUOTE CLASS="NOTE" ><P ><B >Note: </B > This feature was shamelessly plagiarized from <SPAN CLASS="APPLICATION" >Bash</SPAN >. </P ></BLOCKQUOTE ></DIV ></DD ><DT ><TT CLASS="VARNAME" >LASTOID</TT ></DT ><DD ><P > The value of the last affected OID, as returned from an <TT CLASS="COMMAND" >INSERT</TT > or <TT CLASS="COMMAND" >\lo_import</TT > command. This variable is only guaranteed to be valid until after the result of the next <ACRONYM CLASS="ACRONYM" >SQL</ACRONYM > command has been displayed. </P ></DD ><DT ><TT CLASS="VARNAME" >ON_ERROR_ROLLBACK</TT ></DT ><DD ><P > When set to <TT CLASS="LITERAL" >on</TT >, if a statement in a transaction block generates an error, the error is ignored and the transaction continues. When set to <TT CLASS="LITERAL" >interactive</TT >, such errors are only ignored in interactive sessions, and not when reading script files. When unset or set to <TT CLASS="LITERAL" >off</TT >, a statement in a transaction block that generates an error aborts the entire transaction. The error rollback mode works by issuing an implicit <TT CLASS="COMMAND" >SAVEPOINT</TT > for you, just before each command that is in a transaction block, and then rolling back to the savepoint if the command fails. </P ></DD ><DT ><TT CLASS="VARNAME" >ON_ERROR_STOP</TT ></DT ><DD ><P > By default, command processing continues after an error. When this variable is set to <TT CLASS="LITERAL" >on</TT >, processing will instead stop immediately. In interactive mode, <SPAN CLASS="APPLICATION" >psql</SPAN > will return to the command prompt; otherwise, <SPAN CLASS="APPLICATION" >psql</SPAN > will exit, returning error code 3 to distinguish this case from fatal error conditions, which are reported using error code 1. In either case, any currently running scripts (the top-level script, if any, and any other scripts which it may have in invoked) will be terminated immediately. If the top-level command string contained multiple SQL commands, processing will stop with the current command. </P ></DD ><DT ><TT CLASS="VARNAME" >PORT</TT ></DT ><DD ><P > The database server port to which you are currently connected. This is set every time you connect to a database (including program start-up), but can be unset. </P ></DD ><DT ><TT CLASS="VARNAME" >PROMPT1</TT ><BR><TT CLASS="VARNAME" >PROMPT2</TT ><BR><TT CLASS="VARNAME" >PROMPT3</TT ></DT ><DD ><P > These specify what the prompts <SPAN CLASS="APPLICATION" >psql</SPAN > issues should look like. See <A HREF="app-psql.html#APP-PSQL-PROMPTING" ><I >Prompting</I ></A > below. </P ></DD ><DT ><TT CLASS="VARNAME" >QUIET</TT ></DT ><DD ><P > Setting this variable to <TT CLASS="LITERAL" >on</TT > is equivalent to the command line option <TT CLASS="OPTION" >-q</TT >. It is probably not too useful in interactive mode. </P ></DD ><DT ><TT CLASS="VARNAME" >SINGLELINE</TT ></DT ><DD ><P > Setting this variable to <TT CLASS="LITERAL" >on</TT > is equivalent to the command line option <TT CLASS="OPTION" >-S</TT >. </P ></DD ><DT ><TT CLASS="VARNAME" >SINGLESTEP</TT ></DT ><DD ><P > Setting this variable to <TT CLASS="LITERAL" >on</TT > is equivalent to the command line option <TT CLASS="OPTION" >-s</TT >. </P ></DD ><DT ><TT CLASS="VARNAME" >USER</TT ></DT ><DD ><P > The database user you are currently connected as. This is set every time you connect to a database (including program start-up), but can be unset. </P ></DD ><DT ><TT CLASS="VARNAME" >VERBOSITY</TT ></DT ><DD ><P > This variable can be set to the values <TT CLASS="LITERAL" >default</TT >, <TT CLASS="LITERAL" >verbose</TT >, or <TT CLASS="LITERAL" >terse</TT > to control the verbosity of error reports. </P ></DD ></DL ></DIV ></DIV ><DIV CLASS="REFSECT3" ><A NAME="APP-PSQL-INTERPOLATION" ></A ><H4 ><ACRONYM CLASS="ACRONYM" >SQL</ACRONYM > Interpolation</H4 ><P > A key feature of <SPAN CLASS="APPLICATION" >psql</SPAN > variables is that you can substitute (<SPAN CLASS="QUOTE" >"interpolate"</SPAN >) them into regular <ACRONYM CLASS="ACRONYM" >SQL</ACRONYM > statements, as well as the arguments of meta-commands. Furthermore, <SPAN CLASS="APPLICATION" >psql</SPAN > provides facilities for ensuring that variable values used as SQL literals and identifiers are properly quoted. The syntax for interpolating a value without any quoting is to prepend the variable name with a colon (<TT CLASS="LITERAL" >:</TT >). For example, </P><PRE CLASS="PROGRAMLISTING" >testdb=> <KBD CLASS="USERINPUT" >\set foo 'my_table'</KBD > testdb=> <KBD CLASS="USERINPUT" >SELECT * FROM :foo;</KBD ></PRE ><P> would query the table <TT CLASS="LITERAL" >my_table</TT >. Note that this may be unsafe: the value of the variable is copied literally, so it can contain unbalanced quotes, or even backslash commands. You must make sure that it makes sense where you put it. </P ><P > When a value is to be used as an SQL literal or identifier, it is safest to arrange for it to be quoted. To quote the value of a variable as an SQL literal, write a colon followed by the variable name in single quotes. To quote the value as an SQL identifier, write a colon followed by the variable name in double quotes. These constructs deal correctly with quotes and other special characters embedded within the variable value. The previous example would be more safely written this way: </P><PRE CLASS="PROGRAMLISTING" >testdb=> <KBD CLASS="USERINPUT" >\set foo 'my_table'</KBD > testdb=> <KBD CLASS="USERINPUT" >SELECT * FROM :"foo";</KBD ></PRE ><P> </P ><P > Variable interpolation will not be performed within quoted <ACRONYM CLASS="ACRONYM" >SQL</ACRONYM > literals and identifiers. Therefore, a construction such as <TT CLASS="LITERAL" >':foo'</TT > doesn't work to produce a quoted literal from a variable's value (and it would be unsafe if it did work, since it wouldn't correctly handle quotes embedded in the value). </P ><P > One example use of this mechanism is to copy the contents of a file into a table column. First load the file into a variable and then interpolate the variable's value as a quoted string: </P><PRE CLASS="PROGRAMLISTING" >testdb=> <KBD CLASS="USERINPUT" >\set content `cat my_file.txt`</KBD > testdb=> <KBD CLASS="USERINPUT" >INSERT INTO my_table VALUES (:'content');</KBD ></PRE ><P> (Note that this still won't work if <TT CLASS="FILENAME" >my_file.txt</TT > contains NUL bytes. <SPAN CLASS="APPLICATION" >psql</SPAN > does not support embedded NUL bytes in variable values.) </P ><P > Since colons can legally appear in SQL commands, an apparent attempt at interpolation (that is, <TT CLASS="LITERAL" >:name</TT >, <TT CLASS="LITERAL" >:'name'</TT >, or <TT CLASS="LITERAL" >:"name"</TT >) is not replaced unless the named variable is currently set. In any case, you can escape a colon with a backslash to protect it from substitution. </P ><P > The colon syntax for variables is standard <ACRONYM CLASS="ACRONYM" >SQL</ACRONYM > for embedded query languages, such as <SPAN CLASS="APPLICATION" >ECPG</SPAN >. The colon syntaxes for array slices and type casts are <SPAN CLASS="PRODUCTNAME" >PostgreSQL</SPAN > extensions, which can sometimes conflict with the standard usage. The colon-quote syntax for escaping a variable's value as an SQL literal or identifier is a <SPAN CLASS="APPLICATION" >psql</SPAN > extension. </P ></DIV ><DIV CLASS="REFSECT3" ><A NAME="APP-PSQL-PROMPTING" ></A ><H4 >Prompting</H4 ><P > The prompts <SPAN CLASS="APPLICATION" >psql</SPAN > issues can be customized to your preference. The three variables <TT CLASS="VARNAME" >PROMPT1</TT >, <TT CLASS="VARNAME" >PROMPT2</TT >, and <TT CLASS="VARNAME" >PROMPT3</TT > contain strings and special escape sequences that describe the appearance of the prompt. Prompt 1 is the normal prompt that is issued when <SPAN CLASS="APPLICATION" >psql</SPAN > requests a new command. Prompt 2 is issued when more input is expected during command entry, for example because the command was not terminated with a semicolon or a quote was not closed. Prompt 3 is issued when you are running an <ACRONYM CLASS="ACRONYM" >SQL</ACRONYM > <TT CLASS="COMMAND" >COPY FROM STDIN</TT > command and you need to type in a row value on the terminal. </P ><P > The value of the selected prompt variable is printed literally, except where a percent sign (<TT CLASS="LITERAL" >%</TT >) is encountered. Depending on the next character, certain other text is substituted instead. Defined substitutions are: <P ></P ></P><DIV CLASS="VARIABLELIST" ><DL ><DT ><TT CLASS="LITERAL" >%M</TT ></DT ><DD ><P > The full host name (with domain name) of the database server, or <TT CLASS="LITERAL" >[local]</TT > if the connection is over a Unix domain socket, or <TT CLASS="LITERAL" >[local:<TT CLASS="REPLACEABLE" ><I >/dir/name</I ></TT >]</TT >, if the Unix domain socket is not at the compiled in default location. </P ></DD ><DT ><TT CLASS="LITERAL" >%m</TT ></DT ><DD ><P > The host name of the database server, truncated at the first dot, or <TT CLASS="LITERAL" >[local]</TT > if the connection is over a Unix domain socket. </P ></DD ><DT ><TT CLASS="LITERAL" >%></TT ></DT ><DD ><P >The port number at which the database server is listening.</P ></DD ><DT ><TT CLASS="LITERAL" >%n</TT ></DT ><DD ><P > The database session user name. (The expansion of this value might change during a database session as the result of the command <TT CLASS="COMMAND" >SET SESSION AUTHORIZATION</TT >.) </P ></DD ><DT ><TT CLASS="LITERAL" >%/</TT ></DT ><DD ><P >The name of the current database.</P ></DD ><DT ><TT CLASS="LITERAL" >%~</TT ></DT ><DD ><P >Like <TT CLASS="LITERAL" >%/</TT >, but the output is <TT CLASS="LITERAL" >~</TT > (tilde) if the database is your default database.</P ></DD ><DT ><TT CLASS="LITERAL" >%#</TT ></DT ><DD ><P > If the session user is a database superuser, then a <TT CLASS="LITERAL" >#</TT >, otherwise a <TT CLASS="LITERAL" >></TT >. (The expansion of this value might change during a database session as the result of the command <TT CLASS="COMMAND" >SET SESSION AUTHORIZATION</TT >.) </P ></DD ><DT ><TT CLASS="LITERAL" >%R</TT ></DT ><DD ><P > In prompt 1 normally <TT CLASS="LITERAL" >=</TT >, but <TT CLASS="LITERAL" >^</TT > if in single-line mode, or <TT CLASS="LITERAL" >!</TT > if the session is disconnected from the database (which can happen if <TT CLASS="COMMAND" >\connect</TT > fails). In prompt 2 <TT CLASS="LITERAL" >%R</TT > is replaced by a character that depends on why <SPAN CLASS="APPLICATION" >psql</SPAN > expects more input: <TT CLASS="LITERAL" >-</TT > if the command simply wasn't terminated yet, but <TT CLASS="LITERAL" >*</TT > if there is an unfinished <TT CLASS="LITERAL" >/* ... */</TT > comment, a single quote if there is an unfinished quoted string, a double quote if there is an unfinished quoted identifier, a dollar sign if there is an unfinished dollar-quoted string, or <TT CLASS="LITERAL" >(</TT > if there is an unmatched left parenthesis. In prompt 3 <TT CLASS="LITERAL" >%R</TT > doesn't produce anything. </P ></DD ><DT ><TT CLASS="LITERAL" >%x</TT ></DT ><DD ><P > Transaction status: an empty string when not in a transaction block, or <TT CLASS="LITERAL" >*</TT > when in a transaction block, or <TT CLASS="LITERAL" >!</TT > when in a failed transaction block, or <TT CLASS="LITERAL" >?</TT > when the transaction state is indeterminate (for example, because there is no connection). </P ></DD ><DT ><TT CLASS="LITERAL" >%</TT ><TT CLASS="REPLACEABLE" ><I >digits</I ></TT ></DT ><DD ><P > The character with the indicated octal code is substituted. </P ></DD ><DT ><TT CLASS="LITERAL" >%:</TT ><TT CLASS="REPLACEABLE" ><I >name</I ></TT ><TT CLASS="LITERAL" >:</TT ></DT ><DD ><P > The value of the <SPAN CLASS="APPLICATION" >psql</SPAN > variable <TT CLASS="REPLACEABLE" ><I >name</I ></TT >. See the section <A HREF="app-psql.html#APP-PSQL-VARIABLES" ><I >Variables</I ></A > for details. </P ></DD ><DT ><TT CLASS="LITERAL" >%`</TT ><TT CLASS="REPLACEABLE" ><I >command</I ></TT ><TT CLASS="LITERAL" >`</TT ></DT ><DD ><P > The output of <TT CLASS="REPLACEABLE" ><I >command</I ></TT >, similar to ordinary <SPAN CLASS="QUOTE" >"back-tick"</SPAN > substitution. </P ></DD ><DT ><TT CLASS="LITERAL" >%[</TT > ... <TT CLASS="LITERAL" >%]</TT ></DT ><DD ><P > Prompts can contain terminal control characters which, for example, change the color, background, or style of the prompt text, or change the title of the terminal window. In order for the line editing features of <SPAN CLASS="APPLICATION" >Readline</SPAN > to work properly, these non-printing control characters must be designated as invisible by surrounding them with <TT CLASS="LITERAL" >%[</TT > and <TT CLASS="LITERAL" >%]</TT >. Multiple pairs of these can occur within the prompt. For example: </P><PRE CLASS="PROGRAMLISTING" >testdb=> \set PROMPT1 '%[%033[1;33;40m%]%n@%/%R%[%033[0m%]%# '</PRE ><P> results in a boldfaced (<TT CLASS="LITERAL" >1;</TT >) yellow-on-black (<TT CLASS="LITERAL" >33;40</TT >) prompt on VT100-compatible, color-capable terminals. </P ></DD ></DL ></DIV ><P> To insert a percent sign into your prompt, write <TT CLASS="LITERAL" >%%</TT >. The default prompts are <TT CLASS="LITERAL" >'%/%R%# '</TT > for prompts 1 and 2, and <TT CLASS="LITERAL" >'>> '</TT > for prompt 3. </P ><DIV CLASS="NOTE" ><BLOCKQUOTE CLASS="NOTE" ><P ><B >Note: </B > This feature was shamelessly plagiarized from <SPAN CLASS="APPLICATION" >tcsh</SPAN >. </P ></BLOCKQUOTE ></DIV ></DIV ><DIV CLASS="REFSECT3" ><A NAME="AEN85890" ></A ><H4 >Command-Line Editing</H4 ><P > <SPAN CLASS="APPLICATION" >psql</SPAN > supports the <SPAN CLASS="APPLICATION" >Readline</SPAN > library for convenient line editing and retrieval. The command history is automatically saved when <SPAN CLASS="APPLICATION" >psql</SPAN > exits and is reloaded when <SPAN CLASS="APPLICATION" >psql</SPAN > starts up. Tab-completion is also supported, although the completion logic makes no claim to be an <ACRONYM CLASS="ACRONYM" >SQL</ACRONYM > parser. If for some reason you do not like the tab completion, you can turn it off by putting this in a file named <TT CLASS="FILENAME" >.inputrc</TT > in your home directory: </P><PRE CLASS="PROGRAMLISTING" >$if psql set disable-completion on $endif</PRE ><P> (This is not a <SPAN CLASS="APPLICATION" >psql</SPAN > but a <SPAN CLASS="APPLICATION" >Readline</SPAN > feature. Read its documentation for further details.) </P ></DIV ></DIV ></DIV ><DIV CLASS="REFSECT1" ><A NAME="APP-PSQL-ENVIRONMENT" ></A ><H2 >Environment</H2 ><P ></P ><DIV CLASS="VARIABLELIST" ><DL ><DT ><TT CLASS="ENVAR" >COLUMNS</TT ></DT ><DD ><P > If <TT CLASS="LITERAL" >\pset columns</TT > is zero, controls the width for the <TT CLASS="LITERAL" >wrapped</TT > format and width for determining if wide output requires the pager or should be switched to the vertical format in expanded auto mode. </P ></DD ><DT ><TT CLASS="ENVAR" >PAGER</TT ></DT ><DD ><P > If the query results do not fit on the screen, they are piped through this command. Typical values are <TT CLASS="LITERAL" >more</TT > or <TT CLASS="LITERAL" >less</TT >. The default is platform-dependent. Use of the pager can be disabled by setting <TT CLASS="ENVAR" >PAGER</TT > to empty, or by using pager-related options of the <TT CLASS="COMMAND" >\pset</TT > command. </P ></DD ><DT ><TT CLASS="ENVAR" >PGDATABASE</TT ><BR><TT CLASS="ENVAR" >PGHOST</TT ><BR><TT CLASS="ENVAR" >PGPORT</TT ><BR><TT CLASS="ENVAR" >PGUSER</TT ></DT ><DD ><P > Default connection parameters (see <A HREF="libpq-envars.html" >Section 31.14</A >). </P ></DD ><DT ><TT CLASS="ENVAR" >PSQL_EDITOR</TT ><BR><TT CLASS="ENVAR" >EDITOR</TT ><BR><TT CLASS="ENVAR" >VISUAL</TT ></DT ><DD ><P > Editor used by the <TT CLASS="COMMAND" >\e</TT > and <TT CLASS="COMMAND" >\ef</TT > commands. The variables are examined in the order listed; the first that is set is used. </P ><P > The built-in default editors are <TT CLASS="FILENAME" >vi</TT > on Unix systems and <TT CLASS="FILENAME" >notepad.exe</TT > on Windows systems. </P ></DD ><DT ><TT CLASS="ENVAR" >PSQL_EDITOR_LINENUMBER_ARG</TT ></DT ><DD ><P > When <TT CLASS="COMMAND" >\e</TT > or <TT CLASS="COMMAND" >\ef</TT > is used with a line number argument, this variable specifies the command-line argument used to pass the starting line number to the user's editor. For editors such as <SPAN CLASS="PRODUCTNAME" >Emacs</SPAN > or <SPAN CLASS="PRODUCTNAME" >vi</SPAN >, this is a plus sign. Include a trailing space in the value of the variable if there needs to be space between the option name and the line number. Examples: </P><PRE CLASS="PROGRAMLISTING" >PSQL_EDITOR_LINENUMBER_ARG='+' PSQL_EDITOR_LINENUMBER_ARG='--line '</PRE ><P> </P ><P > The default is <TT CLASS="LITERAL" >+</TT > on Unix systems (corresponding to the default editor <TT CLASS="FILENAME" >vi</TT >, and useful for many other common editors); but there is no default on Windows systems. </P ></DD ><DT ><TT CLASS="ENVAR" >PSQL_HISTORY</TT ></DT ><DD ><P > Alternative location for the command history file. Tilde (<TT CLASS="LITERAL" >~</TT >) expansion is performed. </P ></DD ><DT ><TT CLASS="ENVAR" >PSQLRC</TT ></DT ><DD ><P > Alternative location of the user's <TT CLASS="FILENAME" >.psqlrc</TT > file. Tilde (<TT CLASS="LITERAL" >~</TT >) expansion is performed. </P ></DD ><DT ><TT CLASS="ENVAR" >SHELL</TT ></DT ><DD ><P > Command executed by the <TT CLASS="COMMAND" >\!</TT > command. </P ></DD ><DT ><TT CLASS="ENVAR" >TMPDIR</TT ></DT ><DD ><P > Directory for storing temporary files. The default is <TT CLASS="FILENAME" >/tmp</TT >. </P ></DD ></DL ></DIV ><P > This utility, like most other <SPAN CLASS="PRODUCTNAME" >PostgreSQL</SPAN > utilities, also uses the environment variables supported by <SPAN CLASS="APPLICATION" >libpq</SPAN > (see <A HREF="libpq-envars.html" >Section 31.14</A >). </P ></DIV ><DIV CLASS="REFSECT1" ><A NAME="AEN85989" ></A ><H2 >Files</H2 ><P ></P ><DIV CLASS="VARIABLELIST" ><DL ><DT ><TT CLASS="FILENAME" >psqlrc</TT > and <TT CLASS="FILENAME" >~/.psqlrc</TT ></DT ><DD ><P > Unless it is passed an <TT CLASS="OPTION" >-X</TT > or <TT CLASS="OPTION" >-c</TT > option, <SPAN CLASS="APPLICATION" >psql</SPAN > attempts to read and execute commands from the system-wide startup file (<TT CLASS="FILENAME" >psqlrc</TT >) and then the user's personal startup file (<TT CLASS="FILENAME" >~/.psqlrc</TT >), after connecting to the database but before accepting normal commands. These files can be used to set up the client and/or the server to taste, typically with <TT CLASS="COMMAND" >\set</TT > and <TT CLASS="COMMAND" >SET</TT > commands. </P ><P > The system-wide startup file is named <TT CLASS="FILENAME" >psqlrc</TT > and is sought in the installation's <SPAN CLASS="QUOTE" >"system configuration"</SPAN > directory, which is most reliably identified by running <TT CLASS="LITERAL" >pg_config --sysconfdir</TT >. By default this directory will be <TT CLASS="FILENAME" >../etc/</TT > relative to the directory containing the <SPAN CLASS="PRODUCTNAME" >PostgreSQL</SPAN > executables. The name of this directory can be set explicitly via the <TT CLASS="ENVAR" >PGSYSCONFDIR</TT > environment variable. </P ><P > The user's personal startup file is named <TT CLASS="FILENAME" >.psqlrc</TT > and is sought in the invoking user's home directory. On Windows, which lacks such a concept, the personal startup file is named <TT CLASS="FILENAME" >%APPDATA%\postgresql\psqlrc.conf</TT >. The location of the user's startup file can be set explicitly via the <TT CLASS="ENVAR" >PSQLRC</TT > environment variable. </P ><P > Both the system-wide startup file and the user's personal startup file can be made <SPAN CLASS="APPLICATION" >psql</SPAN >-version-specific by appending a dash and the <SPAN CLASS="PRODUCTNAME" >PostgreSQL</SPAN > major or minor release number to the file name, for example <TT CLASS="FILENAME" >~/.psqlrc-9.2</TT > or <TT CLASS="FILENAME" >~/.psqlrc-9.2.5</TT >. The most specific version-matching file will be read in preference to a non-version-specific file. </P ></DD ><DT ><TT CLASS="FILENAME" >.psql_history</TT ></DT ><DD ><P > The command-line history is stored in the file <TT CLASS="FILENAME" >~/.psql_history</TT >, or <TT CLASS="FILENAME" >%APPDATA%\postgresql\psql_history</TT > on Windows. </P ><P > The location of the history file can be set explicitly via the <TT CLASS="ENVAR" >PSQL_HISTORY</TT > environment variable. </P ></DD ></DL ></DIV ></DIV ><DIV CLASS="REFSECT1" ><A NAME="AEN86030" ></A ><H2 >Notes</H2 ><P ></P ><UL ><LI ><P > In an earlier life <SPAN CLASS="APPLICATION" >psql</SPAN > allowed the first argument of a single-letter backslash command to start directly after the command, without intervening whitespace. As of <SPAN CLASS="PRODUCTNAME" >PostgreSQL</SPAN > 8.4 this is no longer allowed. </P ></LI ><LI ><P ><SPAN CLASS="APPLICATION" >psql</SPAN > is only guaranteed to work smoothly with servers of the same version. That does not mean other combinations will fail outright, but subtle and not-so-subtle problems might come up. Backslash commands are particularly likely to fail if the server is of a newer version than <SPAN CLASS="APPLICATION" >psql</SPAN > itself. However, backslash commands of the <TT CLASS="LITERAL" >\d</TT > family should work with servers of versions back to 7.4, though not necessarily with servers newer than <SPAN CLASS="APPLICATION" >psql</SPAN > itself. </P ></LI ></UL ></DIV ><DIV CLASS="REFSECT1" ><A NAME="AEN86043" ></A ><H2 >Notes for Windows Users</H2 ><P > <SPAN CLASS="APPLICATION" >psql</SPAN > is built as a <SPAN CLASS="QUOTE" >"console application"</SPAN >. Since the Windows console windows use a different encoding than the rest of the system, you must take special care when using 8-bit characters within <SPAN CLASS="APPLICATION" >psql</SPAN >. If <SPAN CLASS="APPLICATION" >psql</SPAN > detects a problematic console code page, it will warn you at startup. To change the console code page, two things are necessary: <P ></P ></P><UL ><LI ><P > Set the code page by entering <KBD CLASS="USERINPUT" >cmd.exe /c chcp 1252</KBD >. (1252 is a code page that is appropriate for German; replace it with your value.) If you are using Cygwin, you can put this command in <TT CLASS="FILENAME" >/etc/profile</TT >. </P ></LI ><LI ><P > Set the console font to <TT CLASS="LITERAL" >Lucida Console</TT >, because the raster font does not work with the ANSI code page. </P ></LI ></UL ><P></P ></DIV ><DIV CLASS="REFSECT1" ><A NAME="APP-PSQL-EXAMPLES" ></A ><H2 >Examples</H2 ><P > The first example shows how to spread a command over several lines of input. Notice the changing prompt: </P><PRE CLASS="PROGRAMLISTING" >testdb=> <KBD CLASS="USERINPUT" >CREATE TABLE my_table (</KBD > testdb(> <KBD CLASS="USERINPUT" > first integer not null default 0,</KBD > testdb(> <KBD CLASS="USERINPUT" > second text)</KBD > testdb-> <KBD CLASS="USERINPUT" >;</KBD > CREATE TABLE</PRE ><P> Now look at the table definition again: </P><PRE CLASS="PROGRAMLISTING" >testdb=> <KBD CLASS="USERINPUT" >\d my_table</KBD > Table "my_table" Attribute | Type | Modifier -----------+---------+-------------------- first | integer | not null default 0 second | text | </PRE ><P> Now we change the prompt to something more interesting: </P><PRE CLASS="PROGRAMLISTING" >testdb=> <KBD CLASS="USERINPUT" >\set PROMPT1 '%n@%m %~%R%# '</KBD > peter@localhost testdb=></PRE ><P> Let's assume you have filled the table with data and want to take a look at it: </P><PRE CLASS="PROGRAMLISTING" >peter@localhost testdb=> SELECT * FROM my_table; first | second -------+-------- 1 | one 2 | two 3 | three 4 | four (4 rows) </PRE ><P> You can display tables in different ways by using the <TT CLASS="COMMAND" >\pset</TT > command: </P><PRE CLASS="PROGRAMLISTING" >peter@localhost testdb=> <KBD CLASS="USERINPUT" >\pset border 2</KBD > Border style is 2. peter@localhost testdb=> <KBD CLASS="USERINPUT" >SELECT * FROM my_table;</KBD > +-------+--------+ | first | second | +-------+--------+ | 1 | one | | 2 | two | | 3 | three | | 4 | four | +-------+--------+ (4 rows) peter@localhost testdb=> <KBD CLASS="USERINPUT" >\pset border 0</KBD > Border style is 0. peter@localhost testdb=> <KBD CLASS="USERINPUT" >SELECT * FROM my_table;</KBD > first second ----- ------ 1 one 2 two 3 three 4 four (4 rows) peter@localhost testdb=> <KBD CLASS="USERINPUT" >\pset border 1</KBD > Border style is 1. peter@localhost testdb=> <KBD CLASS="USERINPUT" >\pset format unaligned</KBD > Output format is unaligned. peter@localhost testdb=> <KBD CLASS="USERINPUT" >\pset fieldsep ","</KBD > Field separator is ",". peter@localhost testdb=> <KBD CLASS="USERINPUT" >\pset tuples_only</KBD > Showing only tuples. peter@localhost testdb=> <KBD CLASS="USERINPUT" >SELECT second, first FROM my_table;</KBD > one,1 two,2 three,3 four,4</PRE ><P> Alternatively, use the short commands: </P><PRE CLASS="PROGRAMLISTING" >peter@localhost testdb=> <KBD CLASS="USERINPUT" >\a \t \x</KBD > Output format is aligned. Tuples only is off. Expanded display is on. peter@localhost testdb=> <KBD CLASS="USERINPUT" >SELECT * FROM my_table;</KBD > -[ RECORD 1 ]- first | 1 second | one -[ RECORD 2 ]- first | 2 second | two -[ RECORD 3 ]- first | 3 second | three -[ RECORD 4 ]- first | 4 second | four</PRE ><P></P ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="app-pgrestore.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="app-reindexdb.html" ACCESSKEY="N" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >pg_restore</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="reference-client.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><SPAN CLASS="APPLICATION" >reindexdb</SPAN ></TD ></TR ></TABLE ></DIV ></BODY ></HTML >
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
LEGALNOTICE.html
2681 bytes
0644
acronyms.html
16284 bytes
0644
admin.html
12564 bytes
0644
adminpack.html
7889 bytes
0644
app-clusterdb.html
10602 bytes
0644
app-createdb.html
12856 bytes
0644
app-createlang.html
9907 bytes
0644
app-createuser.html
15640 bytes
0644
app-dropdb.html
9642 bytes
0644
app-droplang.html
9638 bytes
0644
app-dropuser.html
9596 bytes
0644
app-ecpg.html
8718 bytes
0644
app-initdb.html
15405 bytes
0644
app-pg-ctl.html
22459 bytes
0644
app-pg-dumpall.html
20706 bytes
0644
app-pgbasebackup.html
19833 bytes
0644
app-pgconfig.html
11093 bytes
0644
app-pgcontroldata.html
3979 bytes
0644
app-pgdump.html
43964 bytes
0644
app-pgreceivexlog.html
11057 bytes
0644
app-pgresetxlog.html
11566 bytes
0644
app-pgrestore.html
30269 bytes
0644
app-postgres.html
31828 bytes
0644
app-postmaster.html
3005 bytes
0644
app-psql.html
138871 bytes
0644
app-reindexdb.html
11281 bytes
0644
app-vacuumdb.html
12616 bytes
0644
appendixes.html
26329 bytes
0644
applevel-consistency.html
10315 bytes
0644
archive-recovery-settings.html
7338 bytes
0644
arrays.html
28079 bytes
0644
auth-delay.html
3780 bytes
0644
auth-methods.html
36202 bytes
0644
auth-pg-hba-conf.html
29759 bytes
0644
auth-username-maps.html
8597 bytes
0644
auto-explain.html
9887 bytes
0644
backup-dump.html
15927 bytes
0644
backup-file.html
7996 bytes
0644
backup.html
4485 bytes
0644
biblio.html
11549 bytes
0644
bki-commands.html
9646 bytes
0644
bki-example.html
3049 bytes
0644
bki-format.html
3463 bytes
0644
bki-structure.html
4320 bytes
0644
bki.html
4330 bytes
0644
bookindex.html
243165 bytes
0644
btree-gin.html
4600 bytes
0644
btree-gist.html
6884 bytes
0644
bug-reporting.html
18646 bytes
0644
catalog-pg-aggregate.html
5502 bytes
0644
catalog-pg-am.html
10547 bytes
0644
catalog-pg-amop.html
7593 bytes
0644
catalog-pg-amproc.html
4885 bytes
0644
catalog-pg-attrdef.html
4364 bytes
0644
catalog-pg-attribute.html
10287 bytes
0644
catalog-pg-auth-members.html
4255 bytes
0644
catalog-pg-authid.html
6815 bytes
0644
catalog-pg-cast.html
6955 bytes
0644
catalog-pg-class.html
12661 bytes
0644
catalog-pg-collation.html
5897 bytes
0644
catalog-pg-constraint.html
11579 bytes
0644
catalog-pg-conversion.html
4430 bytes
0644
catalog-pg-database.html
7027 bytes
0644
catalog-pg-db-role-setting.html
4068 bytes
0644
catalog-pg-default-acl.html
5267 bytes
0644
catalog-pg-depend.html
8635 bytes
0644
catalog-pg-description.html
4478 bytes
0644
catalog-pg-enum.html
4716 bytes
0644
catalog-pg-extension.html
5282 bytes
0644
catalog-pg-foreign-data-wrapper.html
4945 bytes
0644
catalog-pg-foreign-server.html
4688 bytes
0644
catalog-pg-foreign-table.html
4036 bytes
0644
catalog-pg-index.html
8868 bytes
0644
catalog-pg-inherits.html
3888 bytes
0644
catalog-pg-language.html
5952 bytes
0644
catalog-pg-largeobject-metadata.html
3630 bytes
0644
catalog-pg-largeobject.html
5154 bytes
0644
catalog-pg-namespace.html
3751 bytes
0644
catalog-pg-opclass.html
5863 bytes
0644
catalog-pg-operator.html
6645 bytes
0644
catalog-pg-opfamily.html
4811 bytes
0644
catalog-pg-pltemplate.html
5364 bytes
0644
catalog-pg-proc.html
13403 bytes
0644
catalog-pg-range.html
5182 bytes
0644
catalog-pg-rewrite.html
5391 bytes
0644
catalog-pg-seclabel.html
4515 bytes
0644
catalog-pg-shdepend.html
7043 bytes
0644
catalog-pg-shdescription.html
4247 bytes
0644
catalog-pg-shseclabel.html
4404 bytes
0644
catalog-pg-statistic.html
9538 bytes
0644
catalog-pg-tablespace.html
4158 bytes
0644
catalog-pg-trigger.html
8287 bytes
0644
catalog-pg-ts-config-map.html
4193 bytes
0644
catalog-pg-ts-config.html
4481 bytes
0644
catalog-pg-ts-dict.html
4716 bytes
0644
catalog-pg-ts-parser.html
5082 bytes
0644
catalog-pg-ts-template.html
4258 bytes
0644
catalog-pg-type.html
19905 bytes
0644
catalog-pg-user-mapping.html
3847 bytes
0644
catalogs-overview.html
10431 bytes
0644
catalogs.html
10387 bytes
0644
charset.html
4162 bytes
0644
chkpass.html
4391 bytes
0644
citext.html
11148 bytes
0644
client-authentication-problems.html
4224 bytes
0644
client-authentication.html
5914 bytes
0644
client-interfaces.html
13717 bytes
0644
collation.html
14222 bytes
0644
config-setting.html
11146 bytes
0644
connect-estab.html
4315 bytes
0644
continuous-archiving.html
49830 bytes
0644
contrib-dblink-build-sql-delete.html
5451 bytes
0644
contrib-dblink-build-sql-insert.html
6052 bytes
0644
contrib-dblink-build-sql-update.html
6281 bytes
0644
contrib-dblink-cancel-query.html
3820 bytes
0644
contrib-dblink-close.html
4650 bytes
0644
contrib-dblink-connect-u.html
4482 bytes
0644
contrib-dblink-connect.html
7325 bytes
0644
contrib-dblink-disconnect.html
3718 bytes
0644
contrib-dblink-error-message.html
3508 bytes
0644
contrib-dblink-exec.html
5466 bytes
0644
contrib-dblink-fetch.html
5979 bytes
0644
contrib-dblink-function.html
8630 bytes
0644
contrib-dblink-get-connections.html
3206 bytes
0644
contrib-dblink-get-notify.html
4168 bytes
0644
contrib-dblink-get-pkey.html
4498 bytes
0644
contrib-dblink-get-result.html
6959 bytes
0644
contrib-dblink-is-busy.html
3490 bytes
0644
contrib-dblink-open.html
5464 bytes
0644
contrib-dblink-send-query.html
4170 bytes
0644
contrib-prog-client.html
3434 bytes
0644
contrib-prog-server.html
3837 bytes
0644
contrib-prog.html
3320 bytes
0644
contrib-spi.html
11236 bytes
0644
contrib.html
8904 bytes
0644
creating-cluster.html
12465 bytes
0644
cube.html
15941 bytes
0644
database-roles.html
6092 bytes
0644
datatype-binary.html
12893 bytes
0644
datatype-bit.html
5096 bytes
0644
datatype-boolean.html
5267 bytes
0644
datatype-character.html
11893 bytes
0644
datatype-datetime.html
50763 bytes
0644
datatype-enum.html
6433 bytes
0644
datatype-geometric.html
12503 bytes
0644
datatype-json.html
3439 bytes
0644
datatype-money.html
5482 bytes
0644
datatype-net-types.html
10423 bytes
0644
datatype-numeric.html
22353 bytes
0644
datatype-oid.html
9686 bytes
0644
datatype-pseudo.html
7285 bytes
0644
datatype-textsearch.html
10033 bytes
0644
datatype-uuid.html
4560 bytes
0644
datatype-xml.html
11334 bytes
0644
datatype.html
16609 bytes
0644
datetime-appendix.html
3525 bytes
0644
datetime-config-files.html
8980 bytes
0644
datetime-input-rules.html
6763 bytes
0644
datetime-keywords.html
5096 bytes
0644
datetime-units-history.html
7634 bytes
0644
dblink.html
5322 bytes
0644
ddl-alter.html
10498 bytes
0644
ddl-basics.html
7816 bytes
0644
ddl-constraints.html
22790 bytes
0644
ddl-default.html
4540 bytes
0644
ddl-depend.html
6498 bytes
0644
ddl-foreign-data.html
4485 bytes
0644
ddl-inherit.html
15308 bytes
0644
ddl-others.html
3080 bytes
0644
ddl-partitioning.html
27763 bytes
0644
ddl-priv.html
6066 bytes
0644
ddl-schemas.html
18046 bytes
0644
ddl-system-columns.html
8049 bytes
0644
ddl.html
6382 bytes
0644
dict-int.html
4793 bytes
0644
dict-xsyn.html
6481 bytes
0644
different-replication-solutions.html
14793 bytes
0644
disk-full.html
3517 bytes
0644
disk-usage.html
5661 bytes
0644
diskusage.html
2668 bytes
0644
dml-delete.html
3565 bytes
0644
dml-insert.html
5801 bytes
0644
dml-returning.html
5104 bytes
0644
dml-update.html
5556 bytes
0644
dml.html
2944 bytes
0644
docguide-authoring.html
6757 bytes
0644
docguide-build.html
15280 bytes
0644
docguide-docbook.html
3853 bytes
0644
docguide-style.html
7429 bytes
0644
docguide-toolsets.html
20683 bytes
0644
docguide.html
3624 bytes
0644
dummy-seclabel.html
4358 bytes
0644
dynamic-trace.html
27234 bytes
0644
earthdistance.html
8806 bytes
0644
ecpg-commands.html
9527 bytes
0644
ecpg-concept.html
4979 bytes
0644
ecpg-connect.html
10826 bytes
0644
ecpg-cpp.html
9624 bytes
0644
ecpg-descriptors.html
34909 bytes
0644
ecpg-develop.html
7964 bytes
0644
ecpg-dynamic.html
6515 bytes
0644
ecpg-errors.html
25737 bytes
0644
ecpg-informix-compat.html
52760 bytes
0644
ecpg-library.html
5798 bytes
0644
ecpg-lo.html
5527 bytes
0644
ecpg-pgtypes.html
54457 bytes
0644
ecpg-preproc.html
8985 bytes
0644
ecpg-process.html
5386 bytes
0644
ecpg-sql-allocate-descriptor.html
3983 bytes
0644
ecpg-sql-commands.html
4698 bytes
0644
ecpg-sql-connect.html
9375 bytes
0644
ecpg-sql-deallocate-descriptor.html
3773 bytes
0644
ecpg-sql-declare.html
5397 bytes
0644
ecpg-sql-describe.html
4595 bytes
0644
ecpg-sql-disconnect.html
4733 bytes
0644
ecpg-sql-execute-immediate.html
3877 bytes
0644
ecpg-sql-get-descriptor.html
7709 bytes
0644
ecpg-sql-open.html
4642 bytes
0644
ecpg-sql-prepare.html
4177 bytes
0644
ecpg-sql-set-autocommit.html
3333 bytes
0644
ecpg-sql-set-connection.html
3929 bytes
0644
ecpg-sql-set-descriptor.html
5505 bytes
0644
ecpg-sql-type.html
5026 bytes
0644
ecpg-sql-var.html
3539 bytes
0644
ecpg-sql-whenever.html
4686 bytes
0644
ecpg-variables.html
40283 bytes
0644
ecpg.html
10344 bytes
0644
encryption-options.html
7495 bytes
0644
errcodes-appendix.html
36965 bytes
0644
error-message-reporting.html
14124 bytes
0644
error-style-guide.html
16769 bytes
0644
event-log-registration.html
4188 bytes
0644
executor.html
6612 bytes
0644
explicit-joins.html
11019 bytes
0644
explicit-locking.html
25073 bytes
0644
extend-extensions.html
32430 bytes
0644
extend-how.html
4552 bytes
0644
extend-pgxs.html
11761 bytes
0644
extend-type-system.html
10111 bytes
0644
extend.html
9982 bytes
0644
external-admin-tools.html
2722 bytes
0644
external-extensions.html
3263 bytes
0644
external-interfaces.html
5513 bytes
0644
external-pl.html
4670 bytes
0644
external-projects.html
3004 bytes
0644
fdw-callbacks.html
12905 bytes
0644
fdw-functions.html
4496 bytes
0644
fdw-helpers.html
5988 bytes
0644
fdw-planning.html
9845 bytes
0644
fdwhandler.html
3990 bytes
0644
features-sql-standard.html
39105 bytes
0644
features.html
7566 bytes
0644
file-fdw.html
7709 bytes
0644
functions-admin.html
50395 bytes
0644
functions-aggregate.html
21814 bytes
0644
functions-array.html
13521 bytes
0644
functions-binarystring.html
12588 bytes
0644
functions-bitstring.html
6786 bytes
0644
functions-comparison.html
10638 bytes
0644
functions-comparisons.html
13531 bytes
0644
functions-conditional.html
11007 bytes
0644
functions-datetime.html
48303 bytes
0644
functions-enum.html
5491 bytes
0644
functions-formatting.html
35401 bytes
0644
functions-geometry.html
20347 bytes
0644
functions-info.html
58658 bytes
0644
functions-json.html
3814 bytes
0644
functions-logical.html
4665 bytes
0644
functions-matching.html
75728 bytes
0644
functions-math.html
20401 bytes
0644
functions-net.html
13502 bytes
0644
functions-range.html
10857 bytes
0644
functions-sequence.html
12925 bytes
0644
functions-srf.html
8840 bytes
0644
functions-string.html
59052 bytes
0644
functions-subquery.html
16381 bytes
0644
functions-textsearch.html
20488 bytes
0644
functions-trigger.html
4548 bytes
0644
functions-window.html
12085 bytes
0644
functions-xml.html
32169 bytes
0644
functions.html
9939 bytes
0644
fuzzystrmatch.html
8061 bytes
0644
geqo-biblio.html
3459 bytes
0644
geqo-intro.html
4415 bytes
0644
geqo-intro2.html
5627 bytes
0644
geqo-pg-intro.html
8785 bytes
0644
geqo.html
3616 bytes
0644
gin-examples.html
3322 bytes
0644
gin-extensibility.html
14402 bytes
0644
gin-implementation.html
6564 bytes
0644
gin-intro.html
4662 bytes
0644
gin-limit.html
2817 bytes
0644
gin-tips.html
5713 bytes
0644
gin.html
2929 bytes
0644
gist-examples.html
3752 bytes
0644
gist-extensibility.html
24354 bytes
0644
gist-implementation.html
4101 bytes
0644
gist-intro.html
3616 bytes
0644
gist.html
2679 bytes
0644
git.html
4564 bytes
0644
high-availability.html
7698 bytes
0644
history.html
11918 bytes
0644
hot-standby.html
36045 bytes
0644
hstore.html
22629 bytes
0644
index-catalog.html
7996 bytes
0644
index-cost-estimation.html
9991 bytes
0644
index-functions.html
19114 bytes
0644
index-locking.html
8049 bytes
0644
index-scanning.html
10707 bytes
0644
index-unique-checks.html
9192 bytes
0644
index.html
8071 bytes
0644
indexam.html
5247 bytes
0644
indexes-bitmap-scans.html
6580 bytes
0644
indexes-collations.html
3640 bytes
0644
indexes-examine.html
7161 bytes
0644
indexes-expressional.html
4813 bytes
0644
indexes-intro.html
6313 bytes
0644
indexes-multicolumn.html
6298 bytes
0644
indexes-opclass.html
7336 bytes
0644
indexes-ordering.html
6480 bytes
0644
indexes-partial.html
11812 bytes
0644
indexes-types.html
10233 bytes
0644
indexes-unique.html
4002 bytes
0644
indexes.html
3619 bytes
0644
information-schema.html
11177 bytes
0644
infoschema-administrable-role-authorizations.html
3751 bytes
0644
infoschema-applicable-roles.html
3970 bytes
0644
infoschema-attributes.html
12807 bytes
0644
infoschema-character-sets.html
7050 bytes
0644
infoschema-check-constraint-routine-usage.html
4349 bytes
0644
infoschema-check-constraints.html
3876 bytes
0644
infoschema-collation-character-set-applicab.html
4425 bytes
0644
infoschema-collations.html
3885 bytes
0644
infoschema-column-domain-usage.html
4322 bytes
0644
infoschema-column-options.html
4109 bytes
0644
infoschema-column-privileges.html
5029 bytes
0644
infoschema-column-udt-usage.html
4583 bytes
0644
infoschema-columns.html
17625 bytes
0644
infoschema-constraint-column-usage.html
4873 bytes
0644
infoschema-constraint-table-usage.html
4774 bytes
0644
infoschema-data-type-privileges.html
5089 bytes
0644
infoschema-datatypes.html
4229 bytes
0644
infoschema-domain-constraints.html
4664 bytes
0644
infoschema-domain-udt-usage.html
4171 bytes
0644
infoschema-domains.html
11367 bytes
0644
infoschema-element-types.html
11374 bytes
0644
infoschema-enabled-roles.html
3780 bytes
0644
infoschema-foreign-data-wrapper-options.html
3910 bytes
0644
infoschema-foreign-data-wrappers.html
4227 bytes
0644
infoschema-foreign-server-options.html
3853 bytes
0644
infoschema-foreign-servers.html
4571 bytes
0644
infoschema-foreign-table-options.html
3974 bytes
0644
infoschema-foreign-tables.html
4072 bytes
0644
infoschema-information-schema-catalog-name.html
3357 bytes
0644
infoschema-key-column-usage.html
5185 bytes
0644
infoschema-parameters.html
10799 bytes
0644
infoschema-referential-constraints.html
5664 bytes
0644
infoschema-role-column-grants.html
5017 bytes
0644
infoschema-role-routine-grants.html
5360 bytes
0644
infoschema-role-table-grants.html
5427 bytes
0644
infoschema-role-udt-grants.html
4781 bytes
0644
infoschema-role-usage-grants.html
5010 bytes
0644
infoschema-routine-privileges.html
5032 bytes
0644
infoschema-routines.html
23052 bytes
0644
infoschema-schema.html
3180 bytes
0644
infoschema-schemata.html
4248 bytes
0644
infoschema-sequences.html
6111 bytes
0644
infoschema-sql-features.html
4708 bytes
0644
infoschema-sql-implementation-info.html
4503 bytes
0644
infoschema-sql-languages.html
5094 bytes
0644
infoschema-sql-packages.html
4178 bytes
0644
infoschema-sql-parts.html
4080 bytes
0644
infoschema-sql-sizing-profiles.html
4177 bytes
0644
infoschema-sql-sizing.html
4101 bytes
0644
infoschema-table-constraints.html
4914 bytes
0644
infoschema-table-privileges.html
5097 bytes
0644
infoschema-tables.html
5957 bytes
0644
infoschema-triggered-update-columns.html
4554 bytes
0644
infoschema-triggers.html
9447 bytes
0644
infoschema-udt-privileges.html
4509 bytes
0644
infoschema-usage-privileges.html
5512 bytes
0644
infoschema-user-defined-types.html
9753 bytes
0644
infoschema-user-mapping-options.html
4449 bytes
0644
infoschema-user-mappings.html
3833 bytes
0644
infoschema-view-column-usage.html
4728 bytes
0644
infoschema-view-routine-usage.html
4368 bytes
0644
infoschema-view-table-usage.html
4389 bytes
0644
infoschema-views.html
5529 bytes
0644
install-getsource.html
3574 bytes
0644
install-post.html
8076 bytes
0644
install-procedure.html
46527 bytes
0644
install-requirements.html
14481 bytes
0644
install-short.html
2870 bytes
0644
install-windows-full.html
19274 bytes
0644
install-windows-libpq.html
6283 bytes
0644
install-windows.html
6620 bytes
0644
installation-platform-notes.html
39380 bytes
0644
installation.html
4160 bytes
0644
intagg.html
6254 bytes
0644
intarray.html
13757 bytes
0644
internals.html
15638 bytes
0644
intro-whatis.html
4011 bytes
0644
isn.html
13356 bytes
0644
kernel-resources.html
37822 bytes
0644
largeobjects.html
4675 bytes
0644
libpq-async.html
21020 bytes
0644
libpq-build.html
6369 bytes
0644
libpq-cancel.html
6777 bytes
0644
libpq-connect.html
51248 bytes
0644
libpq-control.html
6280 bytes
0644
libpq-copy.html
22442 bytes
0644
libpq-envars.html
9820 bytes
0644
libpq-events.html
23093 bytes
0644
libpq-example.html
16024 bytes
0644
libpq-exec.html
64877 bytes
0644
libpq-fastpath.html
6124 bytes
0644
libpq-ldap.html
5506 bytes
0644
libpq-misc.html
13815 bytes
0644
libpq-notice-processing.html
6284 bytes
0644
libpq-notify.html
6715 bytes
0644
libpq-pgpass.html
4861 bytes
0644
libpq-pgservice.html
3905 bytes
0644
libpq-single-row-mode.html
6353 bytes
0644
libpq-ssl.html
19972 bytes
0644
libpq-status.html
17695 bytes
0644
libpq-threading.html
5544 bytes
0644
libpq.html
7918 bytes
0644
lo-examplesect.html
8696 bytes
0644
lo-funcs.html
4640 bytes
0644
lo-implementation.html
3353 bytes
0644
lo-interfaces.html
15155 bytes
0644
lo-intro.html
3206 bytes
0644
lo.html
6627 bytes
0644
locale.html
13691 bytes
0644
locking-indexes.html
4350 bytes
0644
log-shipping-alternative.html
11057 bytes
0644
logfile-maintenance.html
7143 bytes
0644
ltree.html
27295 bytes
0644
maintenance.html
5538 bytes
0644
manage-ag-config.html
3746 bytes
0644
manage-ag-createdb.html
6310 bytes
0644
manage-ag-dropdb.html
3605 bytes
0644
manage-ag-overview.html
5144 bytes
0644
manage-ag-tablespaces.html
9250 bytes
0644
manage-ag-templatedbs.html
8162 bytes
0644
managing-databases.html
3273 bytes
0644
monitoring-locks.html
3673 bytes
0644
monitoring-ps.html
6782 bytes
0644
monitoring-stats.html
58063 bytes
0644
monitoring.html
4458 bytes
0644
multibyte.html
31965 bytes
0644
mvcc-caveats.html
4077 bytes
0644
mvcc-intro.html
4552 bytes
0644
mvcc.html
4302 bytes
0644
nls-programmer.html
10078 bytes
0644
nls-translator.html
14522 bytes
0644
nls.html
3134 bytes
0644
non-durability.html
4484 bytes
0644
notation.html
4415 bytes
0644
oid2name.html
11962 bytes
0644
overview.html
4093 bytes
0644
pageinspect.html
8117 bytes
0644
parser-stage.html
8117 bytes
0644
passwordcheck.html
4788 bytes
0644
performance-tips.html
4501 bytes
0644
perm-functions.html
3338 bytes
0644
pgarchivecleanup.html
8999 bytes
0644
pgbench.html
30833 bytes
0644
pgbuffercache.html
7715 bytes
0644
pgcrypto.html
38804 bytes
0644
pgfreespacemap.html
5230 bytes
0644
pgrowlocks.html
6078 bytes
0644
pgstandby.html
15204 bytes
0644
pgstatstatements.html
16068 bytes
0644
pgstattuple.html
9449 bytes
0644
pgtestfsync.html
5254 bytes
0644
pgtesttiming.html
12476 bytes
0644
pgtrgm.html
12333 bytes
0644
pgupgrade.html
24737 bytes
0644
planner-optimizer.html
9396 bytes
0644
planner-stats-details.html
3276 bytes
0644
planner-stats-security.html
5556 bytes
0644
planner-stats.html
9058 bytes
0644
plhandler.html
13748 bytes
0644
plperl-builtins.html
18276 bytes
0644
plperl-data.html
2878 bytes
0644
plperl-funcs.html
13369 bytes
0644
plperl-global.html
5067 bytes
0644
plperl-triggers.html
6446 bytes
0644
plperl-trusted.html
6712 bytes
0644
plperl-under-the-hood.html
8991 bytes
0644
plperl.html
4930 bytes
0644
plpgsql-control-structures.html
46183 bytes
0644
plpgsql-cursors.html
25586 bytes
0644
plpgsql-declarations.html
21746 bytes
0644
plpgsql-development-tips.html
9511 bytes
0644
plpgsql-errors-and-messages.html
10094 bytes
0644
plpgsql-expressions.html
4662 bytes
0644
plpgsql-implementation.html
18043 bytes
0644
plpgsql-overview.html
9032 bytes
0644
plpgsql-porting.html
27094 bytes
0644
plpgsql-statements.html
32221 bytes
0644
plpgsql-structure.html
8329 bytes
0644
plpgsql-trigger.html
22322 bytes
0644
plpgsql.html
6965 bytes
0644
plpython-data.html
14648 bytes
0644
plpython-database.html
15413 bytes
0644
plpython-do.html
2771 bytes
0644
plpython-envar.html
3885 bytes
0644
plpython-funcs.html
5478 bytes
0644
plpython-python23.html
7207 bytes
0644
plpython-sharing.html
3032 bytes
0644
plpython-subtransaction.html
7888 bytes
0644
plpython-trigger.html
5069 bytes
0644
plpython-util.html
5104 bytes
0644
plpython.html
6067 bytes
0644
pltcl-data.html
2906 bytes
0644
pltcl-dbaccess.html
13902 bytes
0644
pltcl-functions.html
6177 bytes
0644
pltcl-global.html
5066 bytes
0644
pltcl-overview.html
5288 bytes
0644
pltcl-procnames.html
3222 bytes
0644
pltcl-trigger.html
9452 bytes
0644
pltcl-unknown.html
5075 bytes
0644
pltcl.html
3400 bytes
0644
populate.html
17114 bytes
0644
postgres-user.html
3314 bytes
0644
preface.html
5070 bytes
0644
preventing-server-spoofing.html
4604 bytes
0644
protocol-changes.html
6650 bytes
0644
protocol-error-fields.html
6131 bytes
0644
protocol-flow.html
46202 bytes
0644
protocol-message-formats.html
40844 bytes
0644
protocol-message-types.html
4933 bytes
0644
protocol-overview.html
9670 bytes
0644
protocol-replication.html
14666 bytes
0644
protocol.html
5652 bytes
0644
queries-limit.html
5335 bytes
0644
queries-order.html
7369 bytes
0644
queries-overview.html
5068 bytes
0644
queries-select-lists.html
9308 bytes
0644
queries-table-expressions.html
39874 bytes
0644
queries-union.html
5114 bytes
0644
queries-values.html
4930 bytes
0644
queries-with.html
20880 bytes
0644
queries.html
4418 bytes
0644
query-path.html
5470 bytes
0644
querytree.html
11136 bytes
0644
rangetypes.html
22735 bytes
0644
recovery-config.html
3550 bytes
0644
recovery-target-settings.html
7762 bytes
0644
reference-client.html
6102 bytes
0644
reference-server.html
3964 bytes
0644
reference.html
23162 bytes
0644
regress-coverage.html
3325 bytes
0644
regress-evaluation.html
12487 bytes
0644
regress-run.html
13710 bytes
0644
regress-variant.html
7177 bytes
0644
regress.html
4277 bytes
0644
release-0-01.html
2555 bytes
0644
release-0-02.html
4292 bytes
0644
release-0-03.html
7798 bytes
0644
release-1-0.html
4229 bytes
0644
release-1-01.html
9346 bytes
0644
release-1-02.html
6489 bytes
0644
release-1-09.html
2525 bytes
0644
release-6-0.html
7920 bytes
0644
release-6-1-1.html
3719 bytes
0644
release-6-1.html
9025 bytes
0644
release-6-2-1.html
4405 bytes
0644
release-6-2.html
8883 bytes
0644
release-6-3-1.html
4444 bytes
0644
release-6-3-2.html
4157 bytes
0644
release-6-3.html
16311 bytes
0644
release-6-4-1.html
4061 bytes
0644
release-6-4-2.html
2908 bytes
0644
release-6-4.html
14732 bytes
0644
release-6-5-1.html
3842 bytes
0644
release-6-5-2.html
4102 bytes
0644
release-6-5-3.html
3053 bytes
0644
release-6-5.html
17387 bytes
0644
release-7-0-1.html
3920 bytes
0644
release-7-0-2.html
2887 bytes
0644
release-7-0-3.html
4656 bytes
0644
release-7-0.html
23104 bytes
0644
release-7-1-1.html
3262 bytes
0644
release-7-1-2.html
2975 bytes
0644
release-7-1-3.html
3139 bytes
0644
release-7-1.html
13017 bytes
0644
release-7-2-1.html
4011 bytes
0644
release-7-2-2.html
3793 bytes
0644
release-7-2-3.html
3364 bytes
0644
release-7-2-4.html
3587 bytes
0644
release-7-2-5.html
3746 bytes
0644
release-7-2-6.html
3624 bytes
0644
release-7-2-7.html
3726 bytes
0644
release-7-2-8.html
3948 bytes
0644
release-7-2.html
27098 bytes
0644
release-7-3-1.html
4168 bytes
0644
release-7-3-10.html
7493 bytes
0644
release-7-3-11.html
4111 bytes
0644
release-7-3-12.html
3527 bytes
0644
release-7-3-13.html
4618 bytes
0644
release-7-3-14.html
3931 bytes
0644
release-7-3-15.html
6315 bytes
0644
release-7-3-16.html
3424 bytes
0644
release-7-3-17.html
3550 bytes
0644
release-7-3-18.html
3647 bytes
0644
release-7-3-19.html
3686 bytes
0644
release-7-3-2.html
5205 bytes
0644
release-7-3-20.html
3524 bytes
0644
release-7-3-21.html
6216 bytes
0644
release-7-3-3.html
10290 bytes
0644
release-7-3-4.html
3502 bytes
0644
release-7-3-5.html
4493 bytes
0644
release-7-3-6.html
4428 bytes
0644
release-7-3-7.html
3352 bytes
0644
release-7-3-8.html
3571 bytes
0644
release-7-3-9.html
4079 bytes
0644
release-7-3.html
33053 bytes
0644
release-7-4-1.html
7116 bytes
0644
release-7-4-10.html
3806 bytes
0644
release-7-4-11.html
4857 bytes
0644
release-7-4-12.html
4221 bytes
0644
release-7-4-13.html
6961 bytes
0644
release-7-4-14.html
3673 bytes
0644
release-7-4-15.html
4270 bytes
0644
release-7-4-16.html
3972 bytes
0644
release-7-4-17.html
4013 bytes
0644
release-7-4-18.html
3927 bytes
0644
release-7-4-19.html
7242 bytes
0644
release-7-4-2.html
8260 bytes
0644
release-7-4-20.html
6605 bytes
0644
release-7-4-21.html
3922 bytes
0644
release-7-4-22.html
4071 bytes
0644
release-7-4-23.html
4423 bytes
0644
release-7-4-24.html
4289 bytes
0644
release-7-4-25.html
4506 bytes
0644
release-7-4-26.html
5455 bytes
0644
release-7-4-27.html
5164 bytes
0644
release-7-4-28.html
5629 bytes
0644
release-7-4-29.html
6960 bytes
0644
release-7-4-3.html
4615 bytes
0644
release-7-4-30.html
6211 bytes
0644
release-7-4-4.html
4085 bytes
0644
release-7-4-5.html
3194 bytes
0644
release-7-4-6.html
4731 bytes
0644
release-7-4-7.html
4274 bytes
0644
release-7-4-8.html
10156 bytes
0644
release-7-4-9.html
5118 bytes
0644
release-7-4.html
57378 bytes
0644
release-8-0-1.html
4744 bytes
0644
release-8-0-10.html
4751 bytes
0644
release-8-0-11.html
3969 bytes
0644
release-8-0-12.html
3134 bytes
0644
release-8-0-13.html
4118 bytes
0644
release-8-0-14.html
4518 bytes
0644
release-8-0-15.html
9101 bytes
0644
release-8-0-16.html
8946 bytes
0644
release-8-0-17.html
3920 bytes
0644
release-8-0-18.html
5579 bytes
0644
release-8-0-19.html
4976 bytes
0644
release-8-0-2.html
9566 bytes
0644
release-8-0-20.html
4312 bytes
0644
release-8-0-21.html
4504 bytes
0644
release-8-0-22.html
6440 bytes
0644
release-8-0-23.html
6023 bytes
0644
release-8-0-24.html
7002 bytes
0644
release-8-0-25.html
7427 bytes
0644
release-8-0-26.html
8026 bytes
0644
release-8-0-3.html
7425 bytes
0644
release-8-0-4.html
6680 bytes
0644
release-8-0-5.html
4816 bytes
0644
release-8-0-6.html
5694 bytes
0644
release-8-0-7.html
5909 bytes
0644
release-8-0-8.html
7225 bytes
0644
release-8-0-9.html
4306 bytes
0644
release-8-0.html
66818 bytes
0644
release-8-1-1.html
5459 bytes
0644
release-8-1-10.html
4781 bytes
0644
release-8-1-11.html
9946 bytes
0644
release-8-1-12.html
9341 bytes
0644
release-8-1-13.html
4292 bytes
0644
release-8-1-14.html
6901 bytes
0644
release-8-1-15.html
6274 bytes
0644
release-8-1-16.html
5278 bytes
0644
release-8-1-17.html
6035 bytes
0644
release-8-1-18.html
6442 bytes
0644
release-8-1-19.html
6612 bytes
0644
release-8-1-2.html
6335 bytes
0644
release-8-1-20.html
7298 bytes
0644
release-8-1-21.html
7213 bytes
0644
release-8-1-22.html
8324 bytes
0644
release-8-1-23.html
7933 bytes
0644
release-8-1-3.html
7026 bytes
0644
release-8-1-4.html
8873 bytes
0644
release-8-1-5.html
5479 bytes
0644
release-8-1-6.html
5337 bytes
0644
release-8-1-7.html
4558 bytes
0644
release-8-1-8.html
3116 bytes
0644
release-8-1-9.html
4388 bytes
0644
release-8-1.html
62113 bytes
0644
release-8-2-1.html
5065 bytes
0644
release-8-2-10.html
8180 bytes
0644
release-8-2-11.html
7147 bytes
0644
release-8-2-12.html
6748 bytes
0644
release-8-2-13.html
7348 bytes
0644
release-8-2-14.html
7876 bytes
0644
release-8-2-15.html
8155 bytes
0644
release-8-2-16.html
9293 bytes
0644
release-8-2-17.html
8214 bytes
0644
release-8-2-18.html
10277 bytes
0644
release-8-2-19.html
8589 bytes
0644
release-8-2-2.html
5802 bytes
0644
release-8-2-20.html
6244 bytes
0644
release-8-2-21.html
5593 bytes
0644
release-8-2-22.html
9617 bytes
0644
release-8-2-23.html
9559 bytes
0644
release-8-2-3.html
3095 bytes
0644
release-8-2-4.html
5428 bytes
0644
release-8-2-5.html
5995 bytes
0644
release-8-2-6.html
10551 bytes
0644
release-8-2-7.html
9311 bytes
0644
release-8-2-8.html
7521 bytes
0644
release-8-2-9.html
4281 bytes
0644
release-8-2.html
69398 bytes
0644
release-8-3-1.html
10585 bytes
0644
release-8-3-10.html
10725 bytes
0644
release-8-3-11.html
8963 bytes
0644
release-8-3-12.html
12119 bytes
0644
release-8-3-13.html
9506 bytes
0644
release-8-3-14.html
6242 bytes
0644
release-8-3-15.html
6381 bytes
0644
release-8-3-16.html
11015 bytes
0644
release-8-3-17.html
10590 bytes
0644
release-8-3-18.html
11265 bytes
0644
release-8-3-19.html
8466 bytes
0644
release-8-3-2.html
12203 bytes
0644
release-8-3-20.html
9251 bytes
0644
release-8-3-21.html
5034 bytes
0644
release-8-3-22.html
10585 bytes
0644
release-8-3-23.html
6284 bytes
0644
release-8-3-3.html
4275 bytes
0644
release-8-3-4.html
11273 bytes
0644
release-8-3-5.html
8689 bytes
0644
release-8-3-6.html
9197 bytes
0644
release-8-3-7.html
9729 bytes
0644
release-8-3-8.html
9260 bytes
0644
release-8-3-9.html
10206 bytes
0644
release-8-3.html
69773 bytes
0644
release-8-4-1.html
9563 bytes
0644
release-8-4-10.html
11932 bytes
0644
release-8-4-11.html
13787 bytes
0644
release-8-4-12.html
9987 bytes
0644
release-8-4-13.html
9714 bytes
0644
release-8-4-14.html
5117 bytes
0644
release-8-4-15.html
10626 bytes
0644
release-8-4-16.html
7329 bytes
0644
release-8-4-17.html
9572 bytes
0644
release-8-4-18.html
7048 bytes
0644
release-8-4-19.html
7780 bytes
0644
release-8-4-2.html
15697 bytes
0644
release-8-4-20.html
16258 bytes
0644
release-8-4-21.html
5450 bytes
0644
release-8-4-22.html
11306 bytes
0644
release-8-4-3.html
13928 bytes
0644
release-8-4-4.html
10736 bytes
0644
release-8-4-5.html
15933 bytes
0644
release-8-4-6.html
10430 bytes
0644
release-8-4-7.html
6220 bytes
0644
release-8-4-8.html
8850 bytes
0644
release-8-4-9.html
14528 bytes
0644
release-8-4.html
87976 bytes
0644
release-9-0-1.html
5946 bytes
0644
release-9-0-10.html
5693 bytes
0644
release-9-0-11.html
12666 bytes
0644
release-9-0-12.html
8824 bytes
0644
release-9-0-13.html
11671 bytes
0644
release-9-0-14.html
8759 bytes
0644
release-9-0-15.html
9147 bytes
0644
release-9-0-16.html
17408 bytes
0644
release-9-0-17.html
6335 bytes
0644
release-9-0-18.html
11879 bytes
0644
release-9-0-19.html
26610 bytes
0644
release-9-0-2.html
13636 bytes
0644
release-9-0-20.html
15836 bytes
0644
release-9-0-21.html
5166 bytes
0644
release-9-0-22.html
4321 bytes
0644
release-9-0-23.html
16158 bytes
0644
release-9-0-3.html
7256 bytes
0644
release-9-0-4.html
11345 bytes
0644
release-9-0-5.html
17915 bytes
0644
release-9-0-6.html
13426 bytes
0644
release-9-0-7.html
18091 bytes
0644
release-9-0-8.html
10993 bytes
0644
release-9-0-9.html
11743 bytes
0644
release-9-0.html
96127 bytes
0644
release-9-1-1.html
3670 bytes
0644
release-9-1-10.html
10352 bytes
0644
release-9-1-11.html
9584 bytes
0644
release-9-1-12.html
18554 bytes
0644
release-9-1-13.html
6685 bytes
0644
release-9-1-14.html
13036 bytes
0644
release-9-1-15.html
28969 bytes
0644
release-9-1-16.html
19119 bytes
0644
release-9-1-17.html
4947 bytes
0644
release-9-1-18.html
4102 bytes
0644
release-9-1-19.html
17617 bytes
0644
release-9-1-2.html
21571 bytes
0644
release-9-1-20.html
17541 bytes
0644
release-9-1-21.html
7601 bytes
0644
release-9-1-22.html
7258 bytes
0644
release-9-1-23.html
12653 bytes
0644
release-9-1-24.html
8731 bytes
0644
release-9-1-3.html
21153 bytes
0644
release-9-1-4.html
16018 bytes
0644
release-9-1-5.html
14042 bytes
0644
release-9-1-6.html
9521 bytes
0644
release-9-1-7.html
14941 bytes
0644
release-9-1-8.html
10154 bytes
0644
release-9-1-9.html
12679 bytes
0644
release-9-1.html
78963 bytes
0644
release-9-2-1.html
7111 bytes
0644
release-9-2-10.html
32368 bytes
0644
release-9-2-11.html
20298 bytes
0644
release-9-2-12.html
5130 bytes
0644
release-9-2-13.html
4102 bytes
0644
release-9-2-14.html
18386 bytes
0644
release-9-2-15.html
18605 bytes
0644
release-9-2-16.html
7598 bytes
0644
release-9-2-17.html
8195 bytes
0644
release-9-2-18.html
12718 bytes
0644
release-9-2-19.html
10514 bytes
0644
release-9-2-2.html
23001 bytes
0644
release-9-2-20.html
13332 bytes
0644
release-9-2-21.html
14198 bytes
0644
release-9-2-22.html
15865 bytes
0644
release-9-2-23.html
8126 bytes
0644
release-9-2-24.html
7877 bytes
0644
release-9-2-3.html
13373 bytes
0644
release-9-2-4.html
14800 bytes
0644
release-9-2-5.html
12005 bytes
0644
release-9-2-6.html
11684 bytes
0644
release-9-2-7.html
20022 bytes
0644
release-9-2-8.html
7375 bytes
0644
release-9-2-9.html
15615 bytes
0644
release-9-2.html
79519 bytes
0644
release.html
22882 bytes
0644
resources.html
4226 bytes
0644
role-attributes.html
7855 bytes
0644
role-membership.html
8390 bytes
0644
role-removal.html
5303 bytes
0644
routine-reindex.html
3628 bytes
0644
routine-vacuuming.html
38023 bytes
0644
row-estimation-examples.html
20767 bytes
0644
rowtypes.html
23412 bytes
0644
rule-system.html
4117 bytes
0644
rules-privileges.html
11663 bytes
0644
rules-status.html
4512 bytes
0644
rules-triggers.html
9476 bytes
0644
rules-update.html
32615 bytes
0644
rules-views.html
26888 bytes
0644
rules.html
4948 bytes
0644
runtime-config-autovacuum.html
10974 bytes
0644
runtime-config-client.html
32815 bytes
0644
runtime-config-compatible.html
14827 bytes
0644
runtime-config-connection.html
23478 bytes
0644
runtime-config-custom.html
3548 bytes
0644
runtime-config-developer.html
14070 bytes
0644
runtime-config-error-handling.html
3570 bytes
0644
runtime-config-file-locations.html
6977 bytes
0644
runtime-config-locks.html
7634 bytes
0644
runtime-config-logging.html
45446 bytes
0644
runtime-config-preset.html
8710 bytes
0644
runtime-config-query.html
24950 bytes
0644
runtime-config-replication.html
18294 bytes
0644
runtime-config-resource.html
27901 bytes
0644
runtime-config-short.html
6683 bytes
0644
runtime-config-statistics.html
8616 bytes
0644
runtime-config-wal.html
27093 bytes
0644
runtime-config.html
8249 bytes
0644
runtime.html
5241 bytes
0644
seg.html
15470 bytes
0644
sepgsql.html
30829 bytes
0644
server-programming.html
9618 bytes
0644
server-shutdown.html
6469 bytes
0644
server-start.html
14217 bytes
0644
source-format.html
5133 bytes
0644
source.html
4071 bytes
0644
sourcerepo.html
3411 bytes
0644
spgist-examples.html
2703 bytes
0644
spgist-extensibility.html
31282 bytes
0644
spgist-implementation.html
8098 bytes
0644
spgist-intro.html
4323 bytes
0644
spgist.html
2966 bytes
0644
spi-examples.html
6217 bytes
0644
spi-interface-support.html
3770 bytes
0644
spi-interface.html
5998 bytes
0644
spi-memory.html
7089 bytes
0644
spi-realloc.html
3627 bytes
0644
spi-spi-connect.html
4052 bytes
0644
spi-spi-copytuple.html
3453 bytes
0644
spi-spi-cursor-close.html
3336 bytes
0644
spi-spi-cursor-fetch.html
4110 bytes
0644
spi-spi-cursor-find.html
3464 bytes
0644
spi-spi-cursor-move.html
3890 bytes
0644
spi-spi-cursor-open-with-args.html
6178 bytes
0644
spi-spi-cursor-open-with-paramlist.html
5035 bytes
0644
spi-spi-cursor-open.html
5732 bytes
0644
spi-spi-exec.html
3591 bytes
0644
spi-spi-execp.html
4866 bytes
0644
spi-spi-execute-plan-with-paramlist.html
4893 bytes
0644
spi-spi-execute-plan.html
5901 bytes
0644
spi-spi-execute-with-args.html
6221 bytes
0644
spi-spi-execute.html
12598 bytes
0644
spi-spi-finish.html
3655 bytes
0644
spi-spi-fname.html
3767 bytes
0644
spi-spi-fnumber.html
3936 bytes
0644
spi-spi-freeplan.html
3505 bytes
0644
spi-spi-freetuple.html
3277 bytes
0644
spi-spi-freetupletable.html
3628 bytes
0644
spi-spi-getargcount.html
3698 bytes
0644
spi-spi-getargtypeid.html
4141 bytes
0644
spi-spi-getbinval.html
4287 bytes
0644
spi-spi-getnspname.html
3467 bytes
0644
spi-spi-getrelname.html
3351 bytes
0644
spi-spi-gettype.html
3714 bytes
0644
spi-spi-gettypeid.html
3718 bytes
0644
spi-spi-getvalue.html
4166 bytes
0644
spi-spi-is-cursor-plan.html
4560 bytes
0644
spi-spi-keepplan.html
3884 bytes
0644
spi-spi-modifytuple.html
5631 bytes
0644
spi-spi-palloc.html
3157 bytes
0644
spi-spi-pfree.html
3275 bytes
0644
spi-spi-pop.html
2743 bytes
0644
spi-spi-prepare-cursor.html
5055 bytes
0644
spi-spi-prepare-params.html
4412 bytes
0644
spi-spi-prepare.html
7661 bytes
0644
spi-spi-push.html
3737 bytes
0644
spi-spi-returntuple.html
4097 bytes
0644
spi-spi-saveplan.html
4576 bytes
0644
spi-spi-scroll-cursor-fetch.html
4809 bytes
0644
spi-spi-scroll-cursor-move.html
4899 bytes
0644
spi-visibility.html
4152 bytes
0644
spi.html
10843 bytes
0644
sql-abort.html
4177 bytes
0644
sql-alteraggregate.html
6111 bytes
0644
sql-altercollation.html
5084 bytes
0644
sql-alterconversion.html
5170 bytes
0644
sql-alterdatabase.html
8778 bytes
0644
sql-alterdefaultprivileges.html
9407 bytes
0644
sql-alterdomain.html
11113 bytes
0644
sql-alterextension.html
11745 bytes
0644
sql-alterforeigndatawrapper.html
7378 bytes
0644
sql-alterforeigntable.html
12707 bytes
0644
sql-alterfunction.html
12845 bytes
0644
sql-altergroup.html
5239 bytes
0644
sql-alterindex.html
7655 bytes
0644
sql-alterlanguage.html
4022 bytes
0644
sql-alterlargeobject.html
3730 bytes
0644
sql-alteropclass.html
5114 bytes
0644
sql-alteroperator.html
5435 bytes
0644
sql-alteropfamily.html
13564 bytes
0644
sql-alterrole.html
13028 bytes
0644
sql-alterschema.html
4314 bytes
0644
sql-altersequence.html
13031 bytes
0644
sql-alterserver.html
5928 bytes
0644
sql-altertable.html
43543 bytes
0644
sql-altertablespace.html
5866 bytes
0644
sql-altertrigger.html
4647 bytes
0644
sql-altertsconfig.html
8126 bytes
0644
sql-altertsdictionary.html
6539 bytes
0644
sql-altertsparser.html
4257 bytes
0644
sql-altertstemplate.html
4223 bytes
0644
sql-altertype.html
11193 bytes
0644
sql-alteruser.html
4720 bytes
0644
sql-alterusermapping.html
5714 bytes
0644
sql-alterview.html
6969 bytes
0644
sql-analyze.html
10674 bytes
0644
sql-begin.html
6695 bytes
0644
sql-checkpoint.html
3758 bytes
0644
sql-close.html
4984 bytes
0644
sql-cluster.html
9404 bytes
0644
sql-commands.html
18810 bytes
0644
sql-comment.html
13799 bytes
0644
sql-commit-prepared.html
4516 bytes
0644
sql-commit.html
3992 bytes
0644
sql-copy.html
37443 bytes
0644
sql-createaggregate.html
13829 bytes
0644
sql-createcast.html
19632 bytes
0644
sql-createcollation.html
6739 bytes
0644
sql-createconversion.html
6538 bytes
0644
sql-createdatabase.html
12133 bytes
0644
sql-createdomain.html
8544 bytes
0644
sql-createextension.html
9083 bytes
0644
sql-createforeigndatawrapper.html
8059 bytes
0644
sql-createforeigntable.html
7718 bytes
0644
sql-createfunction.html
31076 bytes
0644
sql-creategroup.html
4012 bytes
0644
sql-createindex.html
25934 bytes
0644
sql-createlanguage.html
14888 bytes
0644
sql-createopclass.html
12676 bytes
0644
sql-createoperator.html
10688 bytes
0644
sql-createopfamily.html
5626 bytes
0644
sql-createrole.html
19325 bytes
0644
sql-createrule.html
12656 bytes
0644
sql-createschema.html
8319 bytes
0644
sql-createsequence.html
13862 bytes
0644
sql-createserver.html
6251 bytes
0644
sql-createtable.html
59172 bytes
0644
sql-createtableas.html
12772 bytes
0644
sql-createtablespace.html
6104 bytes
0644
sql-createtrigger.html
23175 bytes
0644
sql-createtsconfig.html
5352 bytes
0644
sql-createtsdictionary.html
5533 bytes
0644
sql-createtsparser.html
5947 bytes
0644
sql-createtstemplate.html
5437 bytes
0644
sql-createtype.html
39460 bytes
0644
sql-createuser.html
4524 bytes
0644
sql-createusermapping.html
5503 bytes
0644
sql-createview.html
10556 bytes
0644
sql-deallocate.html
3785 bytes
0644
sql-declare.html
15400 bytes
0644
sql-delete.html
11777 bytes
0644
sql-discard.html
4309 bytes
0644
sql-do.html
5204 bytes
0644
sql-drop-owned.html
5058 bytes
0644
sql-dropaggregate.html
4561 bytes
0644
sql-dropcast.html
4344 bytes
0644
sql-dropcollation.html
4409 bytes
0644
sql-dropconversion.html
4437 bytes
0644
sql-dropdatabase.html
4344 bytes
0644
sql-dropdomain.html
4257 bytes
0644
sql-dropextension.html
4785 bytes
0644
sql-dropforeigndatawrapper.html
4526 bytes
0644
sql-dropforeigntable.html
4560 bytes
0644
sql-dropfunction.html
5838 bytes
0644
sql-dropgroup.html
3047 bytes
0644
sql-dropindex.html
5182 bytes
0644
sql-droplanguage.html
4841 bytes
0644
sql-dropopclass.html
5678 bytes
0644
sql-dropoperator.html
5222 bytes
0644
sql-dropopfamily.html
5279 bytes
0644
sql-droprole.html
5158 bytes
0644
sql-droprule.html
4151 bytes
0644
sql-dropschema.html
4529 bytes
0644
sql-dropsequence.html
4367 bytes
0644
sql-dropserver.html
4265 bytes
0644
sql-droptable.html
5028 bytes
0644
sql-droptablespace.html
4585 bytes
0644
sql-droptrigger.html
4711 bytes
0644
sql-droptsconfig.html
4772 bytes
0644
sql-droptsdictionary.html
4689 bytes
0644
sql-droptsparser.html
4595 bytes
0644
sql-droptstemplate.html
4567 bytes
0644
sql-droptype.html
4463 bytes
0644
sql-dropuser.html
3181 bytes
0644
sql-dropusermapping.html
4679 bytes
0644
sql-dropview.html
4262 bytes
0644
sql-end.html
4157 bytes
0644
sql-execute.html
5073 bytes
0644
sql-explain.html
17094 bytes
0644
sql-expressions.html
47801 bytes
0644
sql-fetch.html
14251 bytes
0644
sql-grant.html
29245 bytes
0644
sql-insert.html
12860 bytes
0644
sql-keywords-appendix.html
106534 bytes
0644
sql-listen.html
5903 bytes
0644
sql-load.html
4207 bytes
0644
sql-lock.html
11869 bytes
0644
sql-move.html
4984 bytes
0644
sql-notify.html
10948 bytes
0644
sql-prepare-transaction.html
8640 bytes
0644
sql-prepare.html
9181 bytes
0644
sql-reassign-owned.html
5344 bytes
0644
sql-reindex.html
11103 bytes
0644
sql-release-savepoint.html
5005 bytes
0644
sql-reset.html
4993 bytes
0644
sql-revoke.html
14879 bytes
0644
sql-rollback-prepared.html
4627 bytes
0644
sql-rollback-to.html
6401 bytes
0644
sql-rollback.html
3996 bytes
0644
sql-savepoint.html
5605 bytes
0644
sql-security-label.html
8879 bytes
0644
sql-select.html
79544 bytes
0644
sql-selectinto.html
7634 bytes
0644
sql-set-constraints.html
7068 bytes
0644
sql-set-role.html
6915 bytes
0644
sql-set-session-authorization.html
6062 bytes
0644
sql-set-transaction.html
12696 bytes
0644
sql-set.html
12057 bytes
0644
sql-show.html
6851 bytes
0644
sql-start-transaction.html
4983 bytes
0644
sql-syntax-calling-funcs.html
8080 bytes
0644
sql-syntax-lexical.html
43370 bytes
0644
sql-syntax.html
5430 bytes
0644
sql-truncate.html
9364 bytes
0644
sql-unlisten.html
4923 bytes
0644
sql-update.html
15669 bytes
0644
sql-vacuum.html
10669 bytes
0644
sql-values.html
10640 bytes
0644
sql.html
13569 bytes
0644
ssh-tunnels.html
6263 bytes
0644
ssl-tcp.html
13477 bytes
0644
sslinfo.html
7594 bytes
0644
standby-settings.html
5427 bytes
0644
storage-file-layout.html
12936 bytes
0644
storage-fsm.html
3821 bytes
0644
storage-init.html
2760 bytes
0644
storage-page-layout.html
13891 bytes
0644
storage-toast.html
11478 bytes
0644
storage-vm.html
3540 bytes
0644
storage.html
2952 bytes
0644
stylesheet.css
1538 bytes
0644
supported-platforms.html
5042 bytes
0644
tablefunc.html
32193 bytes
0644
tcn.html
4974 bytes
0644
test-parser.html
4530 bytes
0644
textsearch-configuration.html
6257 bytes
0644
textsearch-controls.html
26966 bytes
0644
textsearch-debugging.html
17227 bytes
0644
textsearch-dictionaries.html
31261 bytes
0644
textsearch-features.html
21310 bytes
0644
textsearch-indexes.html
7387 bytes
0644
textsearch-intro.html
18453 bytes
0644
textsearch-limitations.html
3859 bytes
0644
textsearch-migration.html
5034 bytes
0644
textsearch-parsers.html
9210 bytes
0644
textsearch-psql.html
9345 bytes
0644
textsearch-tables.html
9750 bytes
0644
textsearch.html
5878 bytes
0644
transaction-iso.html
27240 bytes
0644
trigger-datachanges.html
5072 bytes
0644
trigger-definition.html
15507 bytes
0644
trigger-example.html
7749 bytes
0644
trigger-interface.html
10719 bytes
0644
triggers.html
3798 bytes
0644
tsearch2.html
9950 bytes
0644
tutorial-accessdb.html
7040 bytes
0644
tutorial-advanced-intro.html
3341 bytes
0644
tutorial-advanced.html
2856 bytes
0644
tutorial-agg.html
7594 bytes
0644
tutorial-arch.html
4852 bytes
0644
tutorial-concepts.html
3839 bytes
0644
tutorial-conclusion.html
2849 bytes
0644
tutorial-createdb.html
9200 bytes
0644
tutorial-delete.html
3517 bytes
0644
tutorial-fk.html
4422 bytes
0644
tutorial-inheritance.html
6137 bytes
0644
tutorial-install.html
4522 bytes
0644
tutorial-join.html
9685 bytes
0644
tutorial-populate.html
4839 bytes
0644
tutorial-select.html
8033 bytes
0644
tutorial-sql-intro.html
4904 bytes
0644
tutorial-sql.html
3060 bytes
0644
tutorial-start.html
2629 bytes
0644
tutorial-table.html
5704 bytes
0644
tutorial-transactions.html
9948 bytes
0644
tutorial-update.html
3159 bytes
0644
tutorial-views.html
3375 bytes
0644
tutorial-window.html
12481 bytes
0644
tutorial.html
5209 bytes
0644
typeconv-func.html
12170 bytes
0644
typeconv-oper.html
14907 bytes
0644
typeconv-overview.html
8301 bytes
0644
typeconv-query.html
5450 bytes
0644
typeconv-union-case.html
6612 bytes
0644
typeconv.html
3721 bytes
0644
unaccent.html
6742 bytes
0644
unsupported-features-sql-standard.html
35115 bytes
0644
upgrading.html
12795 bytes
0644
user-manag.html
3983 bytes
0644
using-explain.html
41824 bytes
0644
uuid-ossp.html
7228 bytes
0644
vacuumlo.html
7548 bytes
0644
view-pg-available-extension-versions.html
4642 bytes
0644
view-pg-available-extensions.html
3944 bytes
0644
view-pg-cursors.html
5669 bytes
0644
view-pg-group.html
3897 bytes
0644
view-pg-indexes.html
4155 bytes
0644
view-pg-locks.html
14444 bytes
0644
view-pg-prepared-statements.html
5060 bytes
0644
view-pg-prepared-xacts.html
4912 bytes
0644
view-pg-roles.html
6073 bytes
0644
view-pg-rules.html
3999 bytes
0644
view-pg-seclabels.html
5123 bytes
0644
view-pg-settings.html
10600 bytes
0644
view-pg-shadow.html
5381 bytes
0644
view-pg-stats.html
8887 bytes
0644
view-pg-tables.html
4836 bytes
0644
view-pg-timezone-abbrevs.html
3860 bytes
0644
view-pg-timezone-names.html
4177 bytes
0644
view-pg-user-mappings.html
5165 bytes
0644
view-pg-user.html
4517 bytes
0644
view-pg-views.html
3853 bytes
0644
views-overview.html
6542 bytes
0644
wal-async-commit.html
9016 bytes
0644
wal-configuration.html
14960 bytes
0644
wal-internals.html
6151 bytes
0644
wal-intro.html
5534 bytes
0644
wal-reliability.html
11479 bytes
0644
wal.html
2928 bytes
0644
warm-standby-failover.html
6102 bytes
0644
warm-standby.html
34646 bytes
0644
xaggr.html
9902 bytes
0644
xfunc-c.html
78520 bytes
0644
xfunc-internal.html
4004 bytes
0644
xfunc-overload.html
5911 bytes
0644
xfunc-pl.html
2991 bytes
0644
xfunc-sql.html
38027 bytes
0644
xfunc-volatility.html
9839 bytes
0644
xfunc.html
4518 bytes
0644
xindex.html
44593 bytes
0644
xml2.html
16900 bytes
0644
xoper-optimization.html
23144 bytes
0644
xoper.html
4835 bytes
0644
xplang-install.html
11127 bytes
0644
xplang.html
4235 bytes
0644
xtypes.html
12114 bytes
0644
N4ST4R_ID | Naxtarrr