<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML ><HEAD ><TITLE >pgtcl Command Reference</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE="Pgtcl Reference Manual" HREF="index.html"><LINK REL="PREVIOUS" TITLE="Linking libpgtcl Into an Application" HREF="pgtcl-load-static.html"><LINK REL="NEXT" TITLE="pg_connect" HREF="pg-connect.html"><LINK REL="STYLESHEET" TYPE="text/css" HREF="stylesheet.css"><META NAME="creation" CONTENT="2004-11-09T00:53:06"></HEAD ><BODY CLASS="CHAPTER" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >Pgtcl Reference Manual: The PostgreSQL Tcl Interface</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="pgtcl-load-static.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="pg-connect.html" ACCESSKEY="N" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="CHAPTER" ><H1 ><A NAME="PGTCL-REF" ></A >Chapter 4. <SPAN CLASS="APPLICATION" >pgtcl</SPAN > Command Reference</H1 ><BLOCKQUOTE CLASS="ABSTRACT" ><DIV CLASS="ABSTRACT" ><P ></P ><A NAME="AEN587" ></A ><P >This chapter contains the reference information for all the <SPAN CLASS="APPLICATION" >pgtcl</SPAN > commands. The commands are grouped into functional categories. (An alphabetical listing of commands can be found in <A HREF="pgtcl-overview.html#PGTCL-COMMANDS-TABLE" >Table 1-1</A >.) </P ><P ></P ></DIV ></BLOCKQUOTE ><DIV CLASS="SECT1" ><H1 CLASS="SECT1" ><A NAME="PGTCL-REF-CONNECTION" >4.1. Database Connection Control Commands</A ></H1 ><DIV CLASS="TOC" ><DL ><DT ><B >Table of Contents</B ></DT ><DT ><A HREF="pg-connect.html" >pg_connect</A > -- open a connection to the server</DT ><DT ><A HREF="pg-disconnect.html" >pg_disconnect</A > -- close a connection to the server</DT ><DT ><A HREF="pg-conndefaults.html" >pg_conndefaults</A > -- get connection options and their defaults</DT ></DL ></DIV ><BLOCKQUOTE CLASS="ABSTRACT" ><DIV CLASS="ABSTRACT" ><P ></P ><A NAME="AEN593" ></A ><P >The commands in this section are used to connect to and disconnect from the database. </P ><P ></P ></DIV ></BLOCKQUOTE ></DIV ></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="pgtcl-load-static.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="pg-connect.html" ACCESSKEY="N" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >Linking <TT CLASS="FILENAME" >libpgtcl</TT > Into an Application</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" > </TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >pg_connect</TD ></TR ></TABLE ></DIV ></BODY ></HTML >