File: tables.xml

package info (click to toggle)
php-doc 20081024-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 57,752 kB
  • ctags: 3,858
  • sloc: xml: 686,554; php: 19,446; perl: 610; cpp: 500; makefile: 336; sh: 114; awk: 28
file content (77 lines) | stat: -rw-r--r-- 1,873 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
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
-->