cvs: phpdoc /en/reference/session_pgsql book.xml constants.xml reference.xml setup.xml tables.xml

From: Date: Fri, 21 Dec 2007 19:35:42 +0000
Subject: cvs: phpdoc /en/reference/session_pgsql book.xml constants.xml reference.xml setup.xml tables.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-684@lists.php.net to get a copy of this message
philip Fri Dec 21 19:35:42 2007 UTC Modified files: /phpdoc/en/reference/session_pgsql setup.xml book.xml constants.xml tables.xml reference.xml Log: MFB: Upgrade to the new-reference-structure - Split reference.xml into book.xml, setup.xml, and tables.xml - Moved from reference.xml to book.xml: - The intro text (partintro), and link to various pages - Moved from reference.xml to setup.xml: - The setup: requirements, installation, configuration, and resources - Changed the intro ID from <extname>.intro to intro.<extname>

http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/session_pgsql/setup.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/session_pgsql/setup.xml diff -u /dev/null phpdoc/en/reference/session_pgsql/setup.xml:1.2 --- /dev/null Fri Dec 21 19:35:42 2007 +++ phpdoc/en/reference/session_pgsql/setup.xml Fri Dec 21 19:35:42 2007 @@ -0,0 +1,47 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Revision: 1.2 $ --> + +<chapter xml:id="session-pgsql.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + &reftitle.setup; + + <section xml:id="session-pgsql.requirements"> + &reftitle.required; + <para> + You need at least PHP &gt;= 4.3.0, and PostgreSQL &gt;=7.2.0 as database + server. <literal>libpq</literal> that comes with PostgreSQL 7.2.0 or + later (and header files to build) and <link xlink:href="&url.mm;">libmm</link> + (and header files). + </para> + </section> + + &reference.session-pgsql.configure; + + &reference.session-pgsql.ini; + + <section xml:id="session-pgsql.resources"> + &reftitle.resources; + &no.resource; + </section> + +</chapter> + +<!-- 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 +sgml-parent-document:nil +sgml-default-dtd-file:"../../../manual.ced" +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 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/session_pgsql/book.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/session_pgsql/book.xml diff -u /dev/null phpdoc/en/reference/session_pgsql/book.xml:1.2 --- /dev/null Fri Dec 21 19:35:42 2007 +++ phpdoc/en/reference/session_pgsql/book.xml Fri Dec 21 19:35:42 2007 @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Revision: 1.2 $ --> +<!-- Purpose: basic.session --> +<!-- Membership: pecl, external --> + +<book xml:id="book.session-pgsql" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>PostgreSQL Session Save Handler</title> + <titleabbrev>Session PgSQL</titleabbrev> + + <preface xml:id="intro.session-pgsql"> + &reftitle.intro; + &note.no-windows.extension; + <para> + This module provides an additional session save handler for the + <link linkend="book.session">session</link> + module using <link xlink:href="&url.pgsql;">PostgreSQL</link> as a + storage system. A <literal>user-level</literal> session storage function may + also be used - <function>session_set_save_handler</function>, but this module is + written in C and therefore could be twice as fast, compared to + a session save handler written in PHP. + </para> + <para> + Session PgSQL is designed to scale any size of web sites and offers some + advanced features: + <simplelist> + <member>session tables are created automatically</member> + <member>automatic session table vacuum</member> + <member>better garbage collection</member> + <member>multiple PostgreSQL servers support</member> + <member>automatic database server failover (switching)</member> + <member> + automatic database server load balancing if there are multiple + PostgreSQL servers. + </member> + <member>short circuit UPDATE</member> + </simplelist> + </para> + </preface> + + &reference.session-pgsql.setup; + &reference.session-pgsql.tables; + &reference.session-pgsql.constants; + &reference.session-pgsql.reference; + +</book> + +<!-- 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 +sgml-parent-document:nil +sgml-default-dtd-file:"../../../manual.ced" +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 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/session_pgsql/constants.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/session_pgsql/constants.xml diff -u /dev/null phpdoc/en/reference/session_pgsql/constants.xml:1.2 --- /dev/null Fri Dec 21 19:35:42 2007 +++ phpdoc/en/reference/session_pgsql/constants.xml Fri Dec 21 19:35:42 2007 @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Revision: 1.2 $ --> +<appendix xml:id="session-pgsql.constants" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + &reftitle.constants; + &no.constants; +</appendix> + +<!-- 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 +sgml-parent-document:nil +sgml-default-dtd-file:"../../../manual.ced" +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 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/session_pgsql/tables.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/session_pgsql/tables.xml diff -u /dev/null phpdoc/en/reference/session_pgsql/tables.xml:1.2 --- /dev/null Fri Dec 21 19:35:42 2007 +++ phpdoc/en/reference/session_pgsql/tables.xml Fri Dec 21 19:35:42 2007 @@ -0,0 +1,77 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Revision: 1.2 $ --> + +<chapter xml:id="session-pgsql.tables"> + <title>Table definitions</title> + <para> + Session table definition + <programlisting role="sql"> +<![CDATA[ +CREATE TABLE php_session ( + sess_id text, + sess_name text, + sess_data text, + sess_created integer, + sess_modified integer, + sess_expire integer, + sess_addr_created text, + sess_addr_modified text, + sess_counter integer, + sess_error integer, + sess_warning integer, + sess_notice integer, + sess_err_message text, + sess_custom text +); + +CREATE INDEX php_session_idx ON php_session USING BTREE (sess_id); +]]> + </programlisting> + </para> + <warning> + <para> + If you use <literal>HASH</literal> for <literal>INDEX</literal>, you'll + have a deadlock problem when the server load is + <emphasis>very</emphasis> high. Even if it's unlikely to have a deadlock + under normal operation, it can occur. <emphasis>Do not use + <literal>HASH</literal> for <literal>INDEX</literal></emphasis>. + </para> + </warning> + <para> + You may change the session table as long as all fields are defined. + </para> + <para> + Application variables table definition + <programlisting role="sql"> +<![CDATA[ +CREATE TABLE php_app_vars ( + app_modified integer, + app_name text, + app_vars text +); +]]> + </programlisting> + </para> +</chapter> + + +<!-- 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 +sgml-parent-document:nil +sgml-default-dtd-file:"../../../manual.ced" +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 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/session_pgsql/reference.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc/en/reference/session_pgsql/reference.xml diff -u phpdoc/en/reference/session_pgsql/reference.xml:1.5 phpdoc/en/reference/session_pgsql/reference.xml:1.6 --- phpdoc/en/reference/session_pgsql/reference.xml:1.5 Mon Dec 10 17:06:09 2007 +++ phpdoc/en/reference/session_pgsql/reference.xml Fri Dec 21 19:35:42 2007 @@ -1,128 +1,25 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- Purpose: basic.session --> -<!-- Membership: pecl, external --> -<!-- Author: Yasuo Ohgaki <yohgaki@php.net> --> +<!-- $Revision: 1.6 $ --> <reference xml:id="ref.session-pgsql" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>PostgreSQL Session Save Handler</title> - <titleabbrev>Session PgSQL</titleabbrev> + <title>Session PgSQL &Functions;</title> + <partintro xml:id="session-pgsql.contact"> + <title>Contact Information</title> + <para> + I have at the moment not very much time to further develop this + extension. I will implement more and more features in the near future. + </para> + <para> + If you have comments, bug fixes, enhancements or want to help developing + this, you can drop me a mail at + <link xlink:href="mailto:yohgaki@php.net">yohgaki@php.net</link>. Any help is + very welcome. + </para> + </partintro> + + &reference.session-pgsql.entities.functions; - <partintro> - <section xml:id="session-pgsql.intro"> - &reftitle.intro; - &note.no-windows.extension; - <para> - This module provides an additional session save handler for the - <link linkend="ref.session">session</link> - module using <link xlink:href="&url.pgsql;">PostgreSQL</link> as a - storage system. A <literal>user-level</literal> session storage function may - also be used - <function>session_set_save_handler</function>, but this module is - written in C and therefore could be twice as fast, compared to - a session save handler written in PHP. - </para> - <para> - Session PgSQL is designed to scale any size of web sites and offers some - advanced features: - <simplelist> - <member>session tables are created automatically</member> - <member>automatic session table vacuum</member> - <member>better garbage collection</member> - <member>multiple PostgreSQL servers support</member> - <member>automatic database server failover (switching)</member> - <member> - automatic database server load balancing if there are multiple - PostgreSQL servers. - </member> - <member>short circuit UPDATE</member> - </simplelist> - </para> - </section> +</reference> - <section xml:id="session-pgsql.requirements"> - &reftitle.required; - <para> - You need at least PHP &gt;= 4.3.0, and PostgreSQL &gt;=7.2.0 as database - server. <literal>libpq</literal> that comes with PostgreSQL 7.2.0 or - later (and header files to build) and <link xlink:href="&url.mm;">libmm</link> - (and header files). - </para> - </section> - - &reference.session-pgsql.configure; - - &reference.session-pgsql.ini; - - <section xml:id="session-pgsql.tables"> - <title>Table definitions</title> - <para>Session table definition - <programlisting role="sql"> -<![CDATA[ -CREATE TABLE php_session ( - sess_id text, - sess_name text, - sess_data text, - sess_created integer, - sess_modified integer, - sess_expire integer, - sess_addr_created text, - sess_addr_modified text, - sess_counter integer, - sess_error integer, - sess_warning integer, - sess_notice integer, - sess_err_message text, - sess_custom text -); - -CREATE INDEX php_session_idx ON php_session USING BTREE (sess_id); -]]> - </programlisting> - </para> - <warning> - <para> - If you use <literal>HASH</literal> for <literal>INDEX</literal>, you'll - have a deadlock problem when the server load is - <emphasis>very</emphasis> high. Even if it's unlikely to have a deadlock - under normal operation, it can occur. <emphasis>Do not use - <literal>HASH</literal> for <literal>INDEX</literal></emphasis>. - </para> - </warning> - <para> - You may change the session table as long as all fields are defined. - </para> - <para> - Application variables table definition - <programlisting role="sql"> -<![CDATA[ -CREATE TABLE php_app_vars ( - app_modified integer, - app_name text, - app_vars text -); -]]> - </programlisting> - </para> - </section> - - - <section xml:id="session-pgsql.contact"> - <title>Contact Information</title> - <para> - I have at the moment not very much time to further develop this - extension. I will implement more and more features in the near future. - </para> - <para> - If you have comments, bug fixes, enhancements or want to help developing - this, you can drop me a mail at - <link xlink:href="mailto:yohgaki@php.net">yohgaki@php.net</link>. Any help is - very welcome. - </para> - </section> - </partintro> - -&reference.session-pgsql.entities.functions; - - </reference> <!-- Keep this comment at the end of the file Local variables: mode: sgml
« previous php.doc.cvs (#684) next »