2011-08-16 11:38:58 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2009-07-11 08:37:21 +00:00
|
|
|
<!-- $Revision$ -->
|
2005-09-04 19:39:32 +00:00
|
|
|
|
2007-06-20 22:25:43 +00:00
|
|
|
<reference xml:id="ref.pdo-pgsql" xmlns="http://docbook.org/ns/docbook">
|
2013-05-23 17:38:21 +00:00
|
|
|
<?phpdoc extension-membership="bundledexternal" ?>
|
2005-08-12 02:03:50 +00:00
|
|
|
<title>PostgreSQL Functions (PDO_PGSQL)</title>
|
2005-08-20 23:14:57 +00:00
|
|
|
<titleabbrev>PostgreSQL (PDO)</titleabbrev>
|
2005-08-12 02:03:50 +00:00
|
|
|
<partintro>
|
|
|
|
|
2007-06-20 22:25:43 +00:00
|
|
|
<section xml:id="pdo-pgsql.intro">
|
2005-08-12 02:03:50 +00:00
|
|
|
&reftitle.intro;
|
|
|
|
<para>
|
2007-12-31 15:43:38 +00:00
|
|
|
PDO_PGSQL is a driver that implements the <link linkend="intro.pdo">PHP
|
2005-09-11 06:17:09 +00:00
|
|
|
Data Objects (PDO) interface</link>
|
2005-08-12 02:03:50 +00:00
|
|
|
to enable access from PHP to PostgreSQL databases.
|
|
|
|
</para>
|
|
|
|
</section>
|
2007-03-03 22:12:01 +00:00
|
|
|
|
2007-06-20 22:25:43 +00:00
|
|
|
<section xml:id="pdo-pgsql.resources">
|
2007-03-03 22:12:01 +00:00
|
|
|
&reftitle.resources;
|
|
|
|
<para>
|
|
|
|
This extension defines a stream resource returned by
|
|
|
|
<function>PDO::pgsqlLOBOpen</function>.
|
|
|
|
</para>
|
|
|
|
</section>
|
|
|
|
|
2011-01-26 22:48:38 +00:00
|
|
|
&reference.pdo-pgsql.configure;
|
|
|
|
|
2005-08-12 02:03:50 +00:00
|
|
|
</partintro>
|
|
|
|
|
2007-06-20 22:25:43 +00:00
|
|
|
<refentry xml:id="ref.pdo-pgsql.connection">
|
2005-08-12 02:03:50 +00:00
|
|
|
<refnamediv>
|
|
|
|
<refname>PDO_PGSQL DSN</refname>
|
|
|
|
<refpurpose>Connecting to PostgreSQL databases</refpurpose>
|
|
|
|
</refnamediv>
|
|
|
|
|
|
|
|
<refsect1 role="description">
|
|
|
|
&reftitle.description;
|
|
|
|
<para>
|
2010-04-10 20:59:35 +00:00
|
|
|
The PDO_PGSQL Data Source Name (DSN) is composed of the following elements, delimited by spaces or semicolons:
|
2005-08-12 02:03:50 +00:00
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term>DSN prefix</term>
|
|
|
|
<listitem>
|
2005-08-12 03:31:18 +00:00
|
|
|
<para>
|
|
|
|
The DSN prefix is <userinput>pgsql:</userinput>.
|
|
|
|
</para>
|
2005-08-12 02:03:50 +00:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
2012-02-29 05:03:14 +00:00
|
|
|
<term><literal>host</literal></term>
|
2005-08-12 02:03:50 +00:00
|
|
|
<listitem>
|
2005-08-12 03:31:18 +00:00
|
|
|
<para>
|
|
|
|
The hostname on which the database server resides.
|
|
|
|
</para>
|
2005-08-12 02:03:50 +00:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
2012-02-29 05:03:14 +00:00
|
|
|
<term><literal>port</literal></term>
|
2005-08-12 02:03:50 +00:00
|
|
|
<listitem>
|
2005-08-12 03:31:18 +00:00
|
|
|
<para>
|
|
|
|
The port on which the database server is running.
|
|
|
|
</para>
|
2005-08-12 02:03:50 +00:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
2012-02-29 05:03:14 +00:00
|
|
|
<term><literal>dbname</literal></term>
|
2005-08-12 02:03:50 +00:00
|
|
|
<listitem>
|
2005-08-12 03:31:18 +00:00
|
|
|
<para>
|
|
|
|
The name of the database.
|
|
|
|
</para>
|
2005-08-12 02:03:50 +00:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
2012-02-29 05:03:14 +00:00
|
|
|
<term><literal>user</literal></term>
|
2005-08-12 02:03:50 +00:00
|
|
|
<listitem>
|
2005-08-12 03:31:18 +00:00
|
|
|
<para>
|
|
|
|
The name of the user for the connection. If you specify the user name
|
|
|
|
in the DSN, PDO ignores the value of the user name argument in the
|
|
|
|
PDO constructor.
|
|
|
|
</para>
|
2005-08-12 02:03:50 +00:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
2012-02-29 05:03:14 +00:00
|
|
|
<term><literal>password</literal></term>
|
2005-08-12 02:03:50 +00:00
|
|
|
<listitem>
|
2005-08-12 03:31:18 +00:00
|
|
|
<para>
|
|
|
|
The password of the user for the connection. If you specify the
|
|
|
|
password in the DSN, PDO ignores the value of the password argument
|
|
|
|
in the PDO constructor.
|
|
|
|
</para>
|
2005-08-12 02:03:50 +00:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
</para>
|
2007-08-20 10:29:20 +00:00
|
|
|
<note>
|
|
|
|
<para>
|
|
|
|
The <literal>bytea</literal> fields are returned as streams.
|
|
|
|
</para>
|
|
|
|
</note>
|
2005-08-12 02:03:50 +00:00
|
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples">
|
|
|
|
&reftitle.examples;
|
|
|
|
<para>
|
|
|
|
<example>
|
|
|
|
<title>PDO_PGSQL DSN examples</title>
|
|
|
|
<para>
|
|
|
|
The following example shows a PDO_PGSQL DSN for connecting to
|
|
|
|
a PostgreSQL database:
|
|
|
|
<programlisting><![CDATA[
|
2010-03-23 09:04:39 +00:00
|
|
|
pgsql:host=localhost;port=5432;dbname=testdb;user=bruce;password=mypass
|
2005-08-12 02:03:50 +00:00
|
|
|
]]>
|
|
|
|
</programlisting>
|
|
|
|
</para>
|
|
|
|
</example>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
|
|
|
2012-01-12 16:05:16 +00:00
|
|
|
&reference.pdo-pgsql.entities.PDO;
|
2007-03-03 22:12:01 +00:00
|
|
|
|
2005-08-12 02:03:50 +00:00
|
|
|
</reference>
|
2007-03-03 22:12:01 +00:00
|
|
|
|
2005-08-12 02:03:50 +00:00
|
|
|
<!-- Keep this comment at the end of the file
|
|
|
|
Local variables:
|
|
|
|
mode: sgml
|
|
|
|
sgml-omittag:t
|
|
|
|
sgml-shorttag:t
|
|
|
|
sgml-minimize-attributes:nil
|
|
|
|
sgml-always-quote-attributes:t
|
|
|
|
sgml-indent-step:1
|
|
|
|
sgml-indent-data:t
|
|
|
|
indent-tabs-mode:nil
|
|
|
|
sgml-parent-document:nil
|
2009-09-25 07:04:39 +00:00
|
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
2005-08-12 02:03:50 +00:00
|
|
|
sgml-exposed-tags:nil
|
|
|
|
sgml-local-catalogs:nil
|
|
|
|
sgml-local-ecat-files:nil
|
|
|
|
End:
|
|
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
|
|
vim: et tw=78 syn=sgml
|
|
|
|
vi: ts=1 sw=1
|
|
|
|
-->
|