Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > 05cd670d8a02b2b4a0ffb1756f2e8308 > files > 12241

php-manual-zh-5.2.4-1mdv2008.1.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>PostgreSQL 数据库函数</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="PHP 手册"
HREF="index.html"><LINK
REL="UP"
TITLE="函数参考"
HREF="funcref.html"><LINK
REL="PREVIOUS"
TITLE="sql_regcase"
HREF="function.sql-regcase.html"><LINK
REL="NEXT"
TITLE="pg_affected_rows"
HREF="function.pg-affected-rows.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=UTF-8"></HEAD
><BODY
CLASS="reference"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>PHP 手册</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="function.sql-regcase.html"
ACCESSKEY="P"
>上一页</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.pg-affected-rows.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="reference"
><A
NAME="ref.pgsql"
></A
><DIV
CLASS="TITLEPAGE"
><H1
CLASS="title"
>CXXVII. PostgreSQL 数据库函数</H1
><DIV
CLASS="PARTINTRO"
><A
NAME="AEN184129"
></A
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="pgsql.intro"
>简介</A
></H1
><P
>&#13;    PostgreSQL 是一个开放源码的免费数据库系统。Postgres
    最初由加州大学伯克利分校计算机科学系开发,倡导了很多关系对象的观念,这些观念现在已经用在一些商业数据库系统中。它提供了
    SQL92/SQL99 语言支持,事务处理,引用集成,存储过程以及类型扩展。PostgreSQL 则是
    Postgres 的一个开放源代码的后代。
   </P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="pgsql.requirements"
>需求</A
></H1
><P
>&#13;    要使用 PostgreSQL 支持,需要 PostgreSQL 6.5 或更新版本,PostgreSQL 8.0
    或更新版本来使用所有的 PostgreSQL 模块。PostgreSQL
    支持多种字符编码包括多字节字符编码。关于 PostgreSQL
    的当前版本以及更多信息见 <A
HREF="http://www.postgresql.org/"
TARGET="_top"
>http://www.postgresql.org/</A
>
    以及 <A
HREF="http://www.postgresql.org/docs/current/interactive/"
TARGET="_top"
>PostgreSQL 文档</A
>。
   </P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="pgsql.installation"
>安装</A
></H1
><P
>&#13;  为添加 PostgreSQL 支持,在编译 PHP 时需要加上
  <CODE
CLASS="option"
>--with-pgsql[=DIR]</CODE
>
  选项。如果可以用共享模块方式,PostgreSQL 模块可以在
  <TT
CLASS="filename"
>php.ini</TT
> 用 <A
HREF="ini.core.html#ini.extension"
>extension</A
>
  指令或者 <A
HREF="function.dl.html"
><B
CLASS="function"
>dl()</B
></A
> 函数加载。
 </P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="pgsql.configuration"
>运行时配置</A
></H1
><P
>这些函数的行为受 <TT
CLASS="filename"
>php.ini</TT
> 的影响。</P
><P
>&#13; <DIV
CLASS="table"
><A
NAME="AEN184150"
></A
><P
><B
>表 1. PostgreSQL 配置选项</B
></P
><TABLE
BORDER="1"
CLASS="CALSTABLE"
><COL><COL><COL><COL><THEAD
><TR
><TH
>名称</TH
><TH
>默认值</TH
><TH
>可变范围</TH
><TH
>更新日志</TH
></TR
></THEAD
><TBODY
><TR
><TD
>pgsql.allow_persistent</TD
><TD
>"1"</TD
><TD
>PHP_INI_SYSTEM</TD
><TD
>&nbsp;</TD
></TR
><TR
><TD
>pgsql.max_persistent</TD
><TD
>"-1"</TD
><TD
>PHP_INI_SYSTEM</TD
><TD
>&nbsp;</TD
></TR
><TR
><TD
>pgsql.max_links</TD
><TD
>"-1"</TD
><TD
>PHP_INI_SYSTEM</TD
><TD
>&nbsp;</TD
></TR
><TR
><TD
>pgsql.auto_reset_persistent</TD
><TD
>"0"</TD
><TD
>PHP_INI_SYSTEM</TD
><TD
>从 PHP 4.2.0 起开始存在</TD
></TR
><TR
><TD
>pgsql.ignore_notice</TD
><TD
>"0"</TD
><TD
>PHP_INI_ALL</TD
><TD
>从 PHP 4.3.0 起开始存在</TD
></TR
><TR
><TD
>pgsql.log_notice</TD
><TD
>"0"</TD
><TD
>PHP_INI_ALL</TD
><TD
>从 PHP 4.3.0 起开始存在</TD
></TR
></TBODY
></TABLE
></DIV
>
  有关 PHP_INI_* 常量进一步的细节与定义参见<A
HREF="ini.html"
>附录 H</A
>。
  </P
><P
>以下是配置选项的简要解释。</P
><P
>&#13;  <P
></P
><DIV
CLASS="variablelist"
><DL
><DT
><A
NAME="ini.pgsql.allow-persistent"
></A
><CODE
CLASS="parameter"
>pgsql.allow_persistent</CODE
>
     <A
HREF="language.types.boolean.html"
><B
CLASS="type"
>boolean</B
></A
></DT
><DD
><P
>&#13;      是否允许持久的 Postgres 连接。
     </P
></DD
><DT
><A
NAME="ini.pgsql.max-persistent"
></A
><CODE
CLASS="parameter"
>pgsql.max_persistent</CODE
>
     <A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
></DT
><DD
><P
>&#13;      每个进程所能有的持久 Postgres 连接数目。
     </P
></DD
><DT
><A
NAME="ini.pgsql.max-links"
></A
><CODE
CLASS="parameter"
>pgsql.max_links</CODE
>
     <A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
></DT
><DD
><P
>&#13;      每个进程所能有的 Postgres 连接数目,包括持久连接。
     </P
></DD
><DT
><A
NAME="ini.pgsql.auto-reset-persistent"
></A
><CODE
CLASS="parameter"
>pgsql.auto_reset_persistent</CODE
>
     <A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
></DT
><DD
><P
>&#13;      检测用在 <A
HREF="function.pg-pconnect.html"
><B
CLASS="function"
>pg_pconnect()</B
></A
> 上的中断了的持久连接。需要一些损耗。
     </P
></DD
><DT
><A
NAME="ini.pgsql.ignore-notice"
></A
><CODE
CLASS="parameter"
>pgsql.ignore_notice</CODE
>
     <A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
></DT
><DD
><P
>&#13;      是否忽略 PostgreSQL 后端的通告。
     </P
></DD
><DT
><A
NAME="ini.pgsql.log-notice"
></A
><CODE
CLASS="parameter"
>pgsql.log_notice</CODE
>
     <A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
></DT
><DD
><P
>&#13;      是否记录 PostgreSQL 后端的通告消息。要记录通告消息日志,PHP
      指令 <A
HREF="ref.pgsql.html#ini.pgsql.ignore-notice"
>pgsql.ignore_notice</A
> 必须为 off。
     </P
></DD
></DL
></DIV
>
 </P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="pgsql.resources"
>资源类型</A
></H1
><P
>&#13;    PostgreSQL 模块使用了两种资源类型。第一种是数据库连接的标识符,第二种是保存查询结果的资源。
   </P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="pgsql.constants"
>预定义常量</A
></H1
><P
>以下常量由本扩展模块定义,因此只有在本扩展模块被编译到
PHP 中,或者在运行时被动态加载后才有效。</P
><P
></P
><DIV
CLASS="variablelist"
><DL
><DT
><TT
CLASS="constant"
><B
>PGSQL_ASSOC</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;      Passed to <A
HREF="function.pg-fetch-array.html"
><B
CLASS="function"
>pg_fetch_array()</B
></A
>. Return an associative array of field
      names and values.
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>PGSQL_NUM</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;      Passed to <A
HREF="function.pg-fetch-array.html"
><B
CLASS="function"
>pg_fetch_array()</B
></A
>. Return a numerically indexed array of field
      numbers and values.
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>PGSQL_BOTH</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;      Passed to <A
HREF="function.pg-fetch-array.html"
><B
CLASS="function"
>pg_fetch_array()</B
></A
>. Return an array of field values
      that is both numerically indexed (by field number) and associated (by field name).
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>PGSQL_CONNECT_FORCE_NEW</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;      Passed to <A
HREF="function.pg-connect.html"
><B
CLASS="function"
>pg_connect()</B
></A
> to force the creation of a new connection,
      rather then re-using an existing identical connection.
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>PGSQL_CONNECTION_BAD</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;      Returned by <A
HREF="function.pg-connection-status.html"
><B
CLASS="function"
>pg_connection_status()</B
></A
> indicating that the database
      connection is in an invalid state.
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>PGSQL_CONNECTION_OK</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;      Returned by <A
HREF="function.pg-connection-status.html"
><B
CLASS="function"
>pg_connection_status()</B
></A
> indicating that the database
      connection is in a valid state.
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>PGSQL_SEEK_SET</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Passed to <A
HREF="function.pg-lo-seek.html"
><B
CLASS="function"
>pg_lo_seek()</B
></A
>. Seek operation is to begin
     from the start of the object.
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>PGSQL_SEEK_CUR</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Passed to <A
HREF="function.pg-lo-seek.html"
><B
CLASS="function"
>pg_lo_seek()</B
></A
>. Seek operation is to begin
     from the current position.
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>PGSQL_SEEK_END</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Passed to <A
HREF="function.pg-lo-seek.html"
><B
CLASS="function"
>pg_lo_seek()</B
></A
>. Seek operation is to begin
     from the end of the object.
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>PGSQL_EMPTY_QUERY</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Returned by <A
HREF="function.pg-result-status.html"
><B
CLASS="function"
>pg_result_status()</B
></A
>. The string sent to the server
     was empty.
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>PGSQL_COMMAND_OK</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Returned by <A
HREF="function.pg-result-status.html"
><B
CLASS="function"
>pg_result_status()</B
></A
>. Successful completion of a
     command returning no data.
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>PGSQL_TUPLES_OK</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Returned by <A
HREF="function.pg-result-status.html"
><B
CLASS="function"
>pg_result_status()</B
></A
>. Successful completion of a command
     returning data (such as a <TT
CLASS="literal"
>SELECT</TT
> or <TT
CLASS="literal"
>SHOW</TT
>).
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>PGSQL_COPY_OUT</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Returned by <A
HREF="function.pg-result-status.html"
><B
CLASS="function"
>pg_result_status()</B
></A
>. Copy Out (from server) data
     transfer started.
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>PGSQL_COPY_IN</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Returned by <A
HREF="function.pg-result-status.html"
><B
CLASS="function"
>pg_result_status()</B
></A
>. Copy In (to server) data
     transfer started.
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>PGSQL_BAD_RESPONSE</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Returned by <A
HREF="function.pg-result-status.html"
><B
CLASS="function"
>pg_result_status()</B
></A
>. The server's response
     was not understood.
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>PGSQL_NONFATAL_ERROR</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Returned by <A
HREF="function.pg-result-status.html"
><B
CLASS="function"
>pg_result_status()</B
></A
>. A nonfatal error
     (a notice or warning) occurred.
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>PGSQL_FATAL_ERROR</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Returned by <A
HREF="function.pg-result-status.html"
><B
CLASS="function"
>pg_result_status()</B
></A
>. A fatal error
     occurred.
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>PGSQL_TRANSACTION_IDLE</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Returned by <A
HREF="function.pg-transaction-status.html"
><B
CLASS="function"
>pg_transaction_status()</B
></A
>. Connection is
     currently idle, not in a transaction.
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>PGSQL_TRANSACTION_ACTIVE</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Returned by <A
HREF="function.pg-transaction-status.html"
><B
CLASS="function"
>pg_transaction_status()</B
></A
>. A command
     is in progress on the connection.  A query has been sent via the connection
     and not yet completed.
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>PGSQL_TRANSACTION_INTRANS</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Returned by <A
HREF="function.pg-transaction-status.html"
><B
CLASS="function"
>pg_transaction_status()</B
></A
>. The connection
     is idle, in a transaction block.
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>PGSQL_TRANSACTION_INERROR</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Returned by <A
HREF="function.pg-transaction-status.html"
><B
CLASS="function"
>pg_transaction_status()</B
></A
>. The connection
     is idle, in a failed transaction block.
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>PGSQL_TRANSACTION_UNKNOWN</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Returned by <A
HREF="function.pg-transaction-status.html"
><B
CLASS="function"
>pg_transaction_status()</B
></A
>. The connection
     is bad.
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>PGSQL_DIAG_SEVERITY</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Passed to <A
HREF="function.pg-result-error-field.html"
><B
CLASS="function"
>pg_result_error_field()</B
></A
>.
     The severity; the field contents are <TT
CLASS="literal"
>ERROR</TT
>,
     <TT
CLASS="literal"
>FATAL</TT
>, or <TT
CLASS="literal"
>PANIC</TT
> (in an error message), or
     <TT
CLASS="literal"
>WARNING</TT
>, <TT
CLASS="literal"
>NOTICE</TT
>, <TT
CLASS="literal"
>DEBUG</TT
>,
     <TT
CLASS="literal"
>INFO</TT
>, or <TT
CLASS="literal"
>LOG</TT
> (in a notice message), or a localized
     translation of one of these. Always present.
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>PGSQL_DIAG_SQLSTATE</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Passed to <A
HREF="function.pg-result-error-field.html"
><B
CLASS="function"
>pg_result_error_field()</B
></A
>.
     The SQLSTATE code for the error. The SQLSTATE code identifies the type of error
     that has occurred; it can be used by front-end applications to perform specific
     operations (such as error handling) in response to a particular database error.
     This field is not localizable, and is always present.
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>PGSQL_DIAG_MESSAGE_PRIMARY</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Passed to <A
HREF="function.pg-result-error-field.html"
><B
CLASS="function"
>pg_result_error_field()</B
></A
>.
     The primary human-readable error message (typically one line). Always present.
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>PGSQL_DIAG_MESSAGE_DETAIL</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Passed to <A
HREF="function.pg-result-error-field.html"
><B
CLASS="function"
>pg_result_error_field()</B
></A
>.
     Detail: an optional secondary error message carrying more detail about the problem. May run to multiple lines.
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>PGSQL_DIAG_MESSAGE_HINT</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Passed to <A
HREF="function.pg-result-error-field.html"
><B
CLASS="function"
>pg_result_error_field()</B
></A
>.
     Hint: an optional suggestion what to do about the problem. This is intended to differ from detail in that it
     offers advice (potentially inappropriate) rather than hard facts. May run to multiple lines.
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>PGSQL_DIAG_STATEMENT_POSITION</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Passed to <A
HREF="function.pg-result-error-field.html"
><B
CLASS="function"
>pg_result_error_field()</B
></A
>.
     A string containing a decimal integer indicating an error cursor position as an index into the original
     statement string. The first character has index 1, and positions are measured in characters not bytes.
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>PGSQL_DIAG_INTERNAL_POSITION</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Passed to <A
HREF="function.pg-result-error-field.html"
><B
CLASS="function"
>pg_result_error_field()</B
></A
>.
     This is defined the same as the <TT
CLASS="constant"
><B
>PG_DIAG_STATEMENT_POSITION</B
></TT
> field, but
     it is used when the cursor position refers to an internally generated
     command rather than the one submitted by the client. The
     <TT
CLASS="constant"
><B
>PG_DIAG_INTERNAL_QUERY</B
></TT
> field will always appear when this
     field appears.
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>PGSQL_DIAG_INTERNAL_QUERY</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Passed to <A
HREF="function.pg-result-error-field.html"
><B
CLASS="function"
>pg_result_error_field()</B
></A
>.
     The text of a failed internally-generated command. This could be, for example, a
     SQL query issued by a PL/pgSQL function.
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>PGSQL_DIAG_CONTEXT</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Passed to <A
HREF="function.pg-result-error-field.html"
><B
CLASS="function"
>pg_result_error_field()</B
></A
>.
     An indication of the context in which the error occurred. Presently
     this includes a call stack traceback of active procedural language
     functions and internally-generated queries. The trace is one entry
     per line, most recent first.
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>PGSQL_DIAG_SOURCE_FILE</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Passed to <A
HREF="function.pg-result-error-field.html"
><B
CLASS="function"
>pg_result_error_field()</B
></A
>.
     The file name of the PostgreSQL source-code location where the error
     was reported.
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>PGSQL_DIAG_SOURCE_LINE</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Passed to <A
HREF="function.pg-result-error-field.html"
><B
CLASS="function"
>pg_result_error_field()</B
></A
>.
     The line number of the PostgreSQL source-code location where the
     error was reported.
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>PGSQL_DIAG_SOURCE_FUNCTION</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Passed to <A
HREF="function.pg-result-error-field.html"
><B
CLASS="function"
>pg_result_error_field()</B
></A
>.
     The name of the PostgreSQL source-code function reporting the error.
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>PGSQL_ERRORS_TERSE</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Passed to <A
HREF="function.pg-set-error-verbosity.html"
><B
CLASS="function"
>pg_set_error_verbosity()</B
></A
>.
     Specified that returned messages include severity, primary text,
     and position only; this will normally fit on a single line.
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>PGSQL_ERRORS_DEFAULT</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Passed to <A
HREF="function.pg-set-error-verbosity.html"
><B
CLASS="function"
>pg_set_error_verbosity()</B
></A
>.
     The default mode produces messages that include the above
     plus any detail, hint, or context fields (these may span
     multiple lines).
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>PGSQL_ERRORS_VERBOSE</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Passed to <A
HREF="function.pg-set-error-verbosity.html"
><B
CLASS="function"
>pg_set_error_verbosity()</B
></A
>.
     The verbose mode includes all available fields.
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>PGSQL_STATUS_LONG</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Passed to <A
HREF="function.pg-result-status.html"
><B
CLASS="function"
>pg_result_status()</B
></A
>.  Indicates that
     numerical result code is desired.
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>PGSQL_STATUS_STRING</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Passed to <A
HREF="function.pg-result-status.html"
><B
CLASS="function"
>pg_result_status()</B
></A
>.  Indicates that
     textual result command tag is desired.
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>PGSQL_CONV_IGNORE_DEFAULT</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Passed to <A
HREF="function.pg-convert.html"
><B
CLASS="function"
>pg_convert()</B
></A
>.
     Ignore default values in the table during conversion.
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>PGSQL_CONV_FORCE_NULL</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Passed to <A
HREF="function.pg-convert.html"
><B
CLASS="function"
>pg_convert()</B
></A
>.
     Use SQL <TT
CLASS="literal"
>NULL</TT
> in place of an empty <A
HREF="language.types.string.html"
><B
CLASS="type"
>string</B
></A
>.
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>PGSQL_CONV_IGNORE_DEFAULT</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Passed to <A
HREF="function.pg-convert.html"
><B
CLASS="function"
>pg_convert()</B
></A
>.
     Ignore conversion of <TT
CLASS="constant"
><B
>NULL</B
></TT
> into SQL <TT
CLASS="literal"
>NOT NULL</TT
> columns.
    </P
></DD
></DL
></DIV
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="pgsql.notes"
>注释</A
></H1
><DIV
CLASS="note"
><BLOCKQUOTE
CLASS="note"
><P
><B
>注意: </B
>
     不是所有的版本都支持所有的函数,这和
     libpq(PostgreSQL C 客户端库)的版本和编译方法有关。如果 PHP
     的 PostgreSQL 扩展不见了,那是因为 libpq 的版本不支持它。
    </P
></BLOCKQUOTE
></DIV
><DIV
CLASS="note"
><BLOCKQUOTE
CLASS="note"
><P
><B
>注意: </B
>
     大多数 PostgreSQL 函数接受 <CODE
CLASS="parameter"
>connection</CODE
>
     作为第一个可选参数。如果没有提供,则使用上一个打开的连接。如果没有打开的连接,函数返回 <TT
CLASS="constant"
><B
>FALSE</B
></TT
>。
    </P
></BLOCKQUOTE
></DIV
><DIV
CLASS="note"
><BLOCKQUOTE
CLASS="note"
><P
><B
>注意: </B
>
     PostgreSQL 在创建对象和查询时自动将所有标识符(例如表/列名)转成小写字母值。要强制其使用混合或大写字母的标识符,必须将标识符用双引号(")转义。
    </P
></BLOCKQUOTE
></DIV
><DIV
CLASS="note"
><BLOCKQUOTE
CLASS="note"
><P
><B
>注意: </B
>
     PostgreSQL 没有特殊的命令来取得数据库的结构信息(例如当前数据库中的所有表)。不过在
     PostgreSQL 7.4 及以上版本有一个标准结构名叫
     <TT
CLASS="literal"
>information_schema</TT
>,它包含有系统视图以及所有必要的信息,可以很容易地查询出来。其细节见
     <A
HREF="http://www.postgresql.org/docs/current/interactive/"
TARGET="_top"
>PostgreSQL 文档</A
>。
    </P
></BLOCKQUOTE
></DIV
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="pgsql.examples"
>范例</A
></H1
><P
>&#13;    此简单例子演示了 PostgreSQL 数据库的连接,执行查询,显示结果以及断开连接。
    <TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
CLASS="EXAMPLE"
><TR
><TD
><DIV
CLASS="example"
><A
NAME="AEN184566"
></A
><P
><B
>例 1. PostgreSQL 例子</B
></P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
CELLPADDING="5"
><TR
><TD
><code><font color="#000000">
<font color="#0000BB">&lt;?php<br /></font><font color="#FF8000">// 连接,选择数据库<br /></font><font color="#0000BB">$dbconn </font><font color="#007700">= </font><font color="#0000BB">pg_connect</font><font color="#007700">(</font><font color="#DD0000">"host=localhost dbname=publishing user=www password=foo"</font><font color="#007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;or die(</font><font color="#DD0000">'Could not connect: ' </font><font color="#007700">. </font><font color="#0000BB">pg_last_error</font><font color="#007700">());<br /><br /></font><font color="#FF8000">// 执行 SQL 查询<br /></font><font color="#0000BB">$query </font><font color="#007700">= </font><font color="#DD0000">'SELECT * FROM authors'</font><font color="#007700">;<br /></font><font color="#0000BB">$result </font><font color="#007700">= </font><font color="#0000BB">pg_query</font><font color="#007700">(</font><font color="#0000BB">$query</font><font color="#007700">) or die(</font><font color="#DD0000">'Query failed: ' </font><font color="#007700">. </font><font color="#0000BB">pg_last_error</font><font color="#007700">());<br /><br /></font><font color="#FF8000">// 用 HTML 显示结果<br /></font><font color="#007700">echo </font><font color="#DD0000">"&lt;table&gt;\n"</font><font color="#007700">;<br />while (</font><font color="#0000BB">$line </font><font color="#007700">= </font><font color="#0000BB">pg_fetch_array</font><font color="#007700">(</font><font color="#0000BB">$result</font><font color="#007700">, </font><font color="#0000BB">null</font><font color="#007700">, </font><font color="#0000BB">PGSQL_ASSOC</font><font color="#007700">)) {<br />&nbsp;&nbsp;&nbsp;&nbsp;echo </font><font color="#DD0000">"\t&lt;tr&gt;\n"</font><font color="#007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;foreach (</font><font color="#0000BB">$line </font><font color="#007700">as </font><font color="#0000BB">$col_value</font><font color="#007700">) {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo </font><font color="#DD0000">"</font><font color="#007700">\t\t</font><font color="#DD0000">&lt;td&gt;$col_value&lt;/td&gt;</font><font color="#007700">\n</font><font color="#DD0000">"</font><font color="#007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;echo </font><font color="#DD0000">"\t&lt;/tr&gt;\n"</font><font color="#007700">;<br />}<br />echo </font><font color="#DD0000">"&lt;/table&gt;\n"</font><font color="#007700">;<br /><br /></font><font color="#FF8000">// 释放结果集<br /></font><font color="#0000BB">pg_free_result</font><font color="#007700">(</font><font color="#0000BB">$result</font><font color="#007700">);<br /><br /></font><font color="#FF8000">// 关闭连接<br /></font><font color="#0000BB">pg_close</font><font color="#007700">(</font><font color="#0000BB">$dbconn</font><font color="#007700">);<br /></font><font color="#0000BB">?&gt;</font>
</font>
</code></TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
>
   </P
></DIV
></DIV
><DIV
CLASS="TOC"
><DL
><DT
><B
>目录</B
></DT
><DT
><A
HREF="function.pg-affected-rows.html"
>pg_affected_rows</A
>&nbsp;--&nbsp;返回受影响的记录数目</DT
><DT
><A
HREF="function.pg-cancel-query.html"
>pg_cancel_query</A
>&nbsp;--&nbsp;
     取消异步查询
    </DT
><DT
><A
HREF="function.pg-client-encoding.html"
>pg_client_encoding</A
>&nbsp;--&nbsp;
     取得客户端编码方式
    </DT
><DT
><A
HREF="function.pg-close.html"
>pg_close</A
>&nbsp;--&nbsp;关闭一个 PostgreSQL 连接</DT
><DT
><A
HREF="function.pg-connect.html"
>pg_connect</A
>&nbsp;--&nbsp;打开一个 PostgreSQL 连接</DT
><DT
><A
HREF="function.pg-connection-busy.html"
>pg_connection_busy</A
>&nbsp;--&nbsp;
     获知连接是否为忙
    </DT
><DT
><A
HREF="function.pg-connection-reset.html"
>pg_connection_reset</A
>&nbsp;--&nbsp;
     重置连接(再次连接)
    </DT
><DT
><A
HREF="function.pg-connection-status.html"
>pg_connection_status</A
>&nbsp;--&nbsp;
     获得连接状态
    </DT
><DT
><A
HREF="function.pg-convert.html"
>pg_convert</A
>&nbsp;--&nbsp;
     将关联的数组值转换为适合 SQL 语句的格式。
    </DT
><DT
><A
HREF="function.pg-copy-from.html"
>pg_copy_from</A
>&nbsp;--&nbsp;
     根据数组将记录插入表中
    </DT
><DT
><A
HREF="function.pg-copy-to.html"
>pg_copy_to</A
>&nbsp;--&nbsp;
     将一个表拷贝到数组中
    </DT
><DT
><A
HREF="function.pg-dbname.html"
>pg_dbname</A
>&nbsp;--&nbsp;获得数据库名</DT
><DT
><A
HREF="function.pg-delete.html"
>pg_delete</A
>&nbsp;--&nbsp;
     删除记录
    </DT
><DT
><A
HREF="function.pg-end-copy.html"
>pg_end_copy</A
>&nbsp;--&nbsp;与 PostgreSQL 后端同步</DT
><DT
><A
HREF="function.pg-escape-bytea.html"
>pg_escape_bytea</A
>&nbsp;--&nbsp;
     转义 bytea 类型的二进制数据
    </DT
><DT
><A
HREF="function.pg-escape-string.html"
>pg_escape_string</A
>&nbsp;--&nbsp;
     转义 text/char 类型的字符串
    </DT
><DT
><A
HREF="function.pg-execute.html"
>pg_execute</A
>&nbsp;--&nbsp;Sends a request to execute a prepared statement with given parameters, and waits for the result.</DT
><DT
><A
HREF="function.pg-fetch-all-columns.html"
>pg_fetch_all_columns</A
>&nbsp;--&nbsp;Fetches all rows in a particular result column as an array</DT
><DT
><A
HREF="function.pg-fetch-all.html"
>pg_fetch_all</A
>&nbsp;--&nbsp;从结果中提取所有行作为一个数组</DT
><DT
><A
HREF="function.pg-fetch-array.html"
>pg_fetch_array</A
>&nbsp;--&nbsp;提取一行作为数组</DT
><DT
><A
HREF="function.pg-fetch-assoc.html"
>pg_fetch_assoc</A
>&nbsp;--&nbsp;提取一行作为关联数组</DT
><DT
><A
HREF="function.pg-fetch-object.html"
>pg_fetch_object</A
>&nbsp;--&nbsp;提取一行作为对象</DT
><DT
><A
HREF="function.pg-fetch-result.html"
>pg_fetch_result</A
>&nbsp;--&nbsp;从结果资源中返回值</DT
><DT
><A
HREF="function.pg-fetch-row.html"
>pg_fetch_row</A
>&nbsp;--&nbsp;提取一行作为枚举数组</DT
><DT
><A
HREF="function.pg-field-is-null.html"
>pg_field_is_null</A
>&nbsp;--&nbsp;测试字段是否为 <TT
CLASS="constant"
><B
>NULL</B
></TT
></DT
><DT
><A
HREF="function.pg-field-name.html"
>pg_field_name</A
>&nbsp;--&nbsp;返回字段的名字</DT
><DT
><A
HREF="function.pg-field-num.html"
>pg_field_num</A
>&nbsp;--&nbsp;返回字段的编号</DT
><DT
><A
HREF="function.pg-field-prtlen.html"
>pg_field_prtlen</A
>&nbsp;--&nbsp;返回打印出来的长度</DT
><DT
><A
HREF="function.pg-field-size.html"
>pg_field_size</A
>&nbsp;--&nbsp;
     返回指定字段占用内部存储空间的大小
    </DT
><DT
><A
HREF="function.pg-field-table.html"
>pg_field_table</A
>&nbsp;--&nbsp;Returns the name or oid of the tables field</DT
><DT
><A
HREF="function.pg-field-type-oid.html"
>pg_field_type_oid</A
>&nbsp;--&nbsp;
   Returns the type ID (OID) for the corresponding field number
  </DT
><DT
><A
HREF="function.pg-field-type.html"
>pg_field_type</A
>&nbsp;--&nbsp;
     返回相应字段的类型名称
    </DT
><DT
><A
HREF="function.pg-free-result.html"
>pg_free_result</A
>&nbsp;--&nbsp;释放查询结果占用的内存</DT
><DT
><A
HREF="function.pg-get-notify.html"
>pg_get_notify</A
>&nbsp;--&nbsp;Ping 数据库连接</DT
><DT
><A
HREF="function.pg-get-pid.html"
>pg_get_pid</A
>&nbsp;--&nbsp;Ping 数据库连接</DT
><DT
><A
HREF="function.pg-get-result.html"
>pg_get_result</A
>&nbsp;--&nbsp;
     取得异步查询结果
    </DT
><DT
><A
HREF="function.pg-host.html"
>pg_host</A
>&nbsp;--&nbsp;
     返回和某连接关联的主机名
    </DT
><DT
><A
HREF="function.pg-insert.html"
>pg_insert</A
>&nbsp;--&nbsp;
     将数组插入到表中
    </DT
><DT
><A
HREF="function.pg-last-error.html"
>pg_last_error</A
>&nbsp;--&nbsp;得到某连接的最后一条错误信息</DT
><DT
><A
HREF="function.pg-last-notice.html"
>pg_last_notice</A
>&nbsp;--&nbsp;
     返回 PostgreSQL 服务器最新一条公告信息
    </DT
><DT
><A
HREF="function.pg-last-oid.html"
>pg_last_oid</A
>&nbsp;--&nbsp;返回上一个对象的 oid</DT
><DT
><A
HREF="function.pg-lo-close.html"
>pg_lo_close</A
>&nbsp;--&nbsp;关闭一个大型对象</DT
><DT
><A
HREF="function.pg-lo-create.html"
>pg_lo_create</A
>&nbsp;--&nbsp;新建一个大型对象</DT
><DT
><A
HREF="function.pg-lo-export.html"
>pg_lo_export</A
>&nbsp;--&nbsp;将大型对象导出到文件</DT
><DT
><A
HREF="function.pg-lo-import.html"
>pg_lo_import</A
>&nbsp;--&nbsp;将文件导入为大型对象</DT
><DT
><A
HREF="function.pg-lo-open.html"
>pg_lo_open</A
>&nbsp;--&nbsp;打开一个大型对象</DT
><DT
><A
HREF="function.pg-lo-read-all.html"
>pg_lo_read_all</A
>&nbsp;--&nbsp;
     读入整个大型对象并直接发送给浏览器
    </DT
><DT
><A
HREF="function.pg-lo-read.html"
>pg_lo_read</A
>&nbsp;--&nbsp;从大型对象中读入数据</DT
><DT
><A
HREF="function.pg-lo-seek.html"
>pg_lo_seek</A
>&nbsp;--&nbsp;
     移动大型对象中的指针
    </DT
><DT
><A
HREF="function.pg-lo-tell.html"
>pg_lo_tell</A
>&nbsp;--&nbsp;
     返回大型对象的当前指针位置
    </DT
><DT
><A
HREF="function.pg-lo-unlink.html"
>pg_lo_unlink</A
>&nbsp;--&nbsp;删除一个大型对象</DT
><DT
><A
HREF="function.pg-lo-write.html"
>pg_lo_write</A
>&nbsp;--&nbsp;向大型对象写入数据</DT
><DT
><A
HREF="function.pg-meta-data.html"
>pg_meta_data</A
>&nbsp;--&nbsp;
     获得表的元数据
    </DT
><DT
><A
HREF="function.pg-num-fields.html"
>pg_num_fields</A
>&nbsp;--&nbsp;返回字段的数目</DT
><DT
><A
HREF="function.pg-num-rows.html"
>pg_num_rows</A
>&nbsp;--&nbsp;返回行的数目</DT
><DT
><A
HREF="function.pg-options.html"
>pg_options</A
>&nbsp;--&nbsp;获得和连接有关的选项</DT
><DT
><A
HREF="function.pg-parameter-status.html"
>pg_parameter_status</A
>&nbsp;--&nbsp;Looks up a current parameter setting of the server.</DT
><DT
><A
HREF="function.pg-pconnect.html"
>pg_pconnect</A
>&nbsp;--&nbsp;打开一个持久的 PostgreSQL 连接</DT
><DT
><A
HREF="function.pg-ping.html"
>pg_ping</A
>&nbsp;--&nbsp;Ping 数据库连接</DT
><DT
><A
HREF="function.pg-port.html"
>pg_port</A
>&nbsp;--&nbsp;
     返回该连接的端口号
    </DT
><DT
><A
HREF="function.pg-prepare.html"
>pg_prepare</A
>&nbsp;--&nbsp; Submits a request to create a prepared statement with the 
  given parameters, and waits for completion.</DT
><DT
><A
HREF="function.pg-put-line.html"
>pg_put_line</A
>&nbsp;--&nbsp;向 PostgreSQL 后端发送以 NULL 结尾的字符串</DT
><DT
><A
HREF="function.pg-query-params.html"
>pg_query_params</A
>&nbsp;--&nbsp;Submits a command to the server and waits for the result, with the ability to pass parameters separately from the SQL command text.</DT
><DT
><A
HREF="function.pg-query.html"
>pg_query</A
>&nbsp;--&nbsp;执行查询</DT
><DT
><A
HREF="function.pg-result-error-field.html"
>pg_result_error_field</A
>&nbsp;--&nbsp;Returns an individual field of an error report.</DT
><DT
><A
HREF="function.pg-result-error.html"
>pg_result_error</A
>&nbsp;--&nbsp;
     获得查询结果的错误信息
    </DT
><DT
><A
HREF="function.pg-result-seek.html"
>pg_result_seek</A
>&nbsp;--&nbsp;在结果资源中设定内部行偏移量</DT
><DT
><A
HREF="function.pg-result-status.html"
>pg_result_status</A
>&nbsp;--&nbsp;
     获得查询结果的状态
    </DT
><DT
><A
HREF="function.pg-select.html"
>pg_select</A
>&nbsp;--&nbsp;
     选择记录
    </DT
><DT
><A
HREF="function.pg-send-execute.html"
>pg_send_execute</A
>&nbsp;--&nbsp;Sends a request to execute a prepared statement with given parameters, without waiting for the result(s).</DT
><DT
><A
HREF="function.pg-send-prepare.html"
>pg_send_prepare</A
>&nbsp;--&nbsp;Sends a request to create a prepared statement with the given parameters, without waiting for completion.</DT
><DT
><A
HREF="function.pg-send-query-params.html"
>pg_send_query_params</A
>&nbsp;--&nbsp;Submits a command and separate parameters to the server without waiting for the result(s).</DT
><DT
><A
HREF="function.pg-send-query.html"
>pg_send_query</A
>&nbsp;--&nbsp;
     发送异步查询
    </DT
><DT
><A
HREF="function.pg-set-client-encoding.html"
>pg_set_client_encoding</A
>&nbsp;--&nbsp;
     设定客户端编码
    </DT
><DT
><A
HREF="function.pg-set-error-verbosity.html"
>pg_set_error_verbosity</A
>&nbsp;--&nbsp;
   Determines the verbosity of messages returned by <A
HREF="function.pg-last-error.html"
><B
CLASS="function"
>pg_last_error()</B
></A
> 
   and <A
HREF="function.pg-result-error.html"
><B
CLASS="function"
>pg_result_error()</B
></A
>.
  </DT
><DT
><A
HREF="function.pg-trace.html"
>pg_trace</A
>&nbsp;--&nbsp;启动一个 PostgreSQL 连接的追踪功能</DT
><DT
><A
HREF="function.pg-transaction-status.html"
>pg_transaction_status</A
>&nbsp;--&nbsp;Returns the current in-transaction status of the server.</DT
><DT
><A
HREF="function.pg-tty.html"
>pg_tty</A
>&nbsp;--&nbsp;
     返回该连接的 tty 号
    </DT
><DT
><A
HREF="function.pg-unescape-bytea.html"
>pg_unescape_bytea</A
>&nbsp;--&nbsp;
     取消 bytea 类型中的字符串转义
    </DT
><DT
><A
HREF="function.pg-untrace.html"
>pg_untrace</A
>&nbsp;--&nbsp;关闭 PostgreSQL 连接的追踪功能</DT
><DT
><A
HREF="function.pg-update.html"
>pg_update</A
>&nbsp;--&nbsp;
     更新表
    </DT
><DT
><A
HREF="function.pg-version.html"
>pg_version</A
>&nbsp;--&nbsp;
   Returns an array with client, protocol and server version (when available)
  </DT
></DL
></DIV
></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="function.sql-regcase.html"
ACCESSKEY="P"
>上一页</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>起始页</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="function.pg-affected-rows.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>sql_regcase</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="funcref.html"
ACCESSKEY="U"
>上一级</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>pg_affected_rows</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>