php-doc-en/reference/session_pgsql/tables.xml
Daniel Egeberg 96c9d88bad Converted to utf-8
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@297028 c90b9560-bf6c-de11-be94-00142212c4b1
2010-03-28 22:10:10 +00:00

77 lines
1.8 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<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:"~/.phpdoc/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
-->