Add SCM_CREDS to get owner of unix-domain socket on BSD-like systems.

This commit is contained in:
Bruce Momjian
2001-08-21 00:33:28 +00:00
parent 04fdf73a05
commit bca9d0cdf4
9 changed files with 1002 additions and 766 deletions

File diff suppressed because it is too large Load Diff

View File

@ -5,9 +5,9 @@
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#FF0000" VLINK="#A00000" ALINK="#0000FF">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=x-euc-jp">
<H1>
PostgreSQL(�ݥ��ȥ��쥹�����塼������)�ˤĤ��Ƥ褯��������(FAQ)</H1>
PostgreSQL(�ݥ��ȥ��쥹�����塼������)�ˤĤ��Ƥ褯���������Ȥ��β���(FAQ)</H1>
<P>
��ʸ�ǽ�������: Mon Apr 9 15:27:47 EDT 2001
��ʸ�ǽ�������: Tue Jul 10 21:01:47 EDT 2001
<P>
���ߤΰݻ�������: Bruce Momjian (<A
HREF="mailto:pgman@candle.pha.pa.us">pgman@candle.pha.pa.us</A>)<BR><P>
@ -24,48 +24,15 @@ HREF="mailto:pgman@candle.pha.pa.us">pgman@candle.pha.pa.us</A>)<BR><P>
<P>
<small><PRE>
(�ʲ������Ԥˤ��������� [������ �� ] �ȤǰϤ��ǵ����ޤ���)
[������
(�ʲ������Ԥˤ��������� [������ �� ] �ȤǰϤ��ǵ����ޤ���)
��ܸ��������ˤĤ��ƤΥ����ϺǸ����ذ�ư���ޤ�����
http://www.PostgreSQL.org/ �˥������������ http://postgresql.nucba.ac.jp/
�˥������쥯�Ȥ��졢"Not Found" �ˤʤäƤ��ޤ����Ȥ������ޤ������ξ����ϡ
<A HREF="http://www.PostgreSQL.org/index.html">http://www.PostgreSQL.org/index.html</A>
�˥����������ƤߤƤ���������
���ܸ��ǤΤ���ʸ���� "User's Lounge" �� "Collection of FAQs" ��
"Japanese" �Ȥ������Ф��ΤȤ����ˤ����ޤ���
(<A HREF="http://www.PostgreSQL.org/docs/faq-japanese.html">http://www.PostgreSQL.org/docs/faq-japanese.html</A>)
���ܸ��Ǥ������ˤĤ��Ƥϰʲ����̤��Ǥ���
�ǽ�������: 2001ǯ04��15��
������: ��¼ �� (<A HREF="mailto:juk@jp.postgresql.org">Jun Kuwamura &lt;juk@jp.postgresql.org&gt;</A>)
����FAQ�������κ����ˤ����궨�Ϥ򤷤Ƥ������ä�����(�ɾΤ�ά�����Ƥ��������ޤ�):
���� ̭(<A HREF="mailto:Tanaka.Minoru@keiken.co.jp">Minoru Tanaka &lt;Tanaka.Minoru@keiken.co.jp&gt;</A>)
�а� ã��(<A HREF="mailto:t-ishii@sra.co.jp">Tatsuo Ishii &lt;t-ishii@sra.co.jp&gt;</A>)
��ƣ �ο�(<A HREF="mailto:tomos@elelab.nsc.co.jp">Tomohito Saitoh &lt;tomos@elelab.nsc.co.jp&gt;</A>)
�Ͼ� ȥ(<A HREF="mailto:baba@kusastro.kyoto-u.ac.jp">Hajime Baba &lt;baba@kusastro.kyoto-u.ac.jp&gt;</A>)
���� �칬(<A HREF="mailto:kokamoto@itg.hitachi.co.jp">Kazuyuki Okamoto &lt;kokamoto@itg.hitachi.co.jp&gt;</A>)
���� ����(<A HREF="mailto:s-kosuge@str.hitachi.co.jp">Shoichi Kosuge &lt;s-kosuge@str.hitachi.co.jp&gt;</A>)
���� ��Ƿ(<A HREF="mailto:dica@eurus.dti.ne.jp">Yoshiyuki Yamashita &lt;dica@eurus.dti.ne.jp&gt;</A>)
�� ����Ϻ(<A HREF="mailto:s_sakai@mxn.mesh.ne.jp">Sintaro Sakai &lt;s_sakai@mxn.mesh.ne.jp&gt;</A>)
���� ����(<A HREF="mailto:ogochan@zetabits.com">Masami Ogoshi &lt;ogochan@zetabits.com&gt;</A>)
���� �ӹ�(<A HREF="mailto:tosiyuki@gol.com">Toshiyuki Ishikawa &lt;tosiyuki@gol.com&gt;</A>)
���� �й�(<A HREF="mailto:fwif0083@mb.infoweb.ne.jp">Shigehiro Honda &lt;fwif0083@mb.infoweb.ne.jp&gt;</A>)
���� ������(<A HREF="mailto:sesejun@linet.gr.jp">Jun Sese &lt;sesejun@linet.gr.jp&gt;</A>)
���Ϥ��ᡢ�ݥ��ȥ��쥹�˴ؤ�������˭�٤�<A HREF="http://www.sra.co.jp/people/t-ishii/PostgreSQL/ML/info.html">���ܸ��ݥ��ȥ��쥹���᡼���󥰥ꥹ��</A>��
�����Τ��ä��������äƤ��줿 <A HREF="http://jf.linux.or.jp/">JF(Linux Japanese FAQ Mailing List)�ץ���������</A>������¾��
ľ�ܤ��뤤�ϴ���Ū�ˤ������äƤ��뤹�٤ƤΥ����ץ󥽡������ߥ��˥ƥ�����
�������˴��դ��ޤ���
���ܸ��ǤΤ���ʸ����<A HREF="http://www.PostgreSQL.org/users-lounge/docs/faq-japanese.html">http://www.PostgreSQL.org/users-lounge/docs/faq-japanese.html</A>�ˤ����ۤ�,
�ʲ��Υ����Ȥ����⤿�ɤ��ޤ���
<A HREF="http://www.jp.postgresql.org/">http://www.jp.postgresql.org/</A>
<A HREF="http://www.rccm.co.jp/~juk/pgsql/">http://www.rccm.co.jp/~juk/pgsql/</A>
<A HREF="http://www.sra.co.jp/people/t-ishii/PostgreSQL/doc-jp/">http://www.sra.co.jp/people/t-ishii/PostgreSQL/doc-jp/</A>
<A HREF="http://www.linux.or.jp/JF/">http://www.linux.or.jp/JF/</A>
�ʤ������������˴ؤ��뤴�ո���(<A HREF="mailto:juk@jp.postgresql.org">juk@jp.postgresql.org</A>)�ޤǤ��󤻲�������
���������ˤĤ��Ƥ����Ť�������(<A HREF="mailto:juk@jp.postgresql.org">juk@jp.postgresql.org</A>)�ޤǥ᡼���Ǥ��󤻲�������
]
</PRE></small>
@ -79,11 +46,11 @@ HREF="mailto:pgman@candle.pha.pa.us">pgman@candle.pha.pa.us</A>)<BR><P>
<A HREF="#1.2">1.2</A>) PostgreSQL������Ϥɤ��ʤäƤޤ�����<BR>
<A HREF="#1.3">1.3</A>) PostgreSQL��ư���Unix�ץ��åȥۡ����ϡ�<BR>
<A HREF="#1.4">1.4</A>) Unix�ʳ��ΰܿ��ǤǻȤ������Τϡ�<BR>
<A HREF="#1.5">1.5</A>) PostgreSQL�Ϥɤ��������������ޤ�����<BR>
<A HREF="#1.5">1.5</A>) PostgreSQL�Ϥɤ����������Ǥ��ޤ�����<BR>
<A HREF="#1.6">1.6</A>) ���ݡ��ȤϤɤ��Ǽ��������ޤ�����<BR>
<A HREF="#1.7">1.7</A>) �ǿ��Ǥϲ��Ǥ���<BR>
<A HREF="#1.7">1.7</A>) �ǿ��ǤϤɤ��Ǥ���<BR>
<A HREF="#1.8">1.8</A>) �ɤΤ褦��ʸ�񤬤����ޤ�����<BR>
<A HREF="#1.9">1.9</A>) ���ΤΥХ���̵����ǽ�Ϥɤ����äƸ��Ĥ��ޤ�����<BR>
<A HREF="#1.9">1.9</A>) ���ΤΥХ���̤��̵����ǽ�Ϥɤ����äƸ��Ĥ��ޤ�����<BR>
<A HREF="#1.10">1.10</A>) <font size=-1>SQL</font>�Ϥɤ������гؤ٤ޤ�����<BR>
<A HREF="#1.11">1.11</A>) PostgreSQL������2000ǯ����(Y2K)���б����Ƥ��ޤ�����<BR>
<A HREF="#1.12">1.12</A>) ��ȯ�������ˤϤɤΤ褦�˻��ä��ޤ�����<BR>
@ -95,8 +62,8 @@ HREF="mailto:pgman@candle.pha.pa.us">pgman@candle.pha.pa.us</A>)<BR><P>
<A HREF="#2.1">2.1</A>) PostgreSQL �� <font size=-1>ODBC</font> �ɥ饤�С��Ϥ����ޤ�����<BR>
<A HREF="#2.2">2.2</A>) PostgreSQL �� Web �ڡ�����Ϣ�Ȥ������ˤϤɤ��ʥġ��뤬�����ޤ�����<BR>
<A HREF="#2.3">2.3</A>) PostgreSQL �ϥ����ե����롦�桼�����󥿡��ե������������ޤ�����
���ݡ��ȥ����ͥ졼���ϡ� ���������䤤���碌���쥤�󥿡��ե������ϡ�<BR>
<A HREF="#2.3">2.3</A>) PostgreSQL �˥����ե����롦�桼�����󥿡��ե������Ϥ����ޤ�����
���ݡ��ȥ����ͥ졼���ϡ� ���������䤤���碌���쥤�󥿡��ե������ϡ�<BR>
<A HREF="#2.4">2.4</A>) PostgreSQL ���̿������ˤϤɤ��ʸ��줬�Ȥ��ޤ�����<BR>
@ -120,23 +87,24 @@ HREF="mailto:pgman@candle.pha.pa.us">pgman@candle.pha.pa.us</A>)<BR><P>
<H2><CENTER>���������</CENTER></H2>
<A HREF="#4.1">4.1</A>) �ʤ��������ƥ��ϥ����ޤ侮���������եե����ޥåȤǺ��𤹤��ΤǤ�����<BR>
<A HREF="#4.2">4.2</A>) �Х��ʥꡦ�����������̾��Υ��������Ȥθ�̩�ʰ㤤�ϲ��Ǥ�����<BR>
<A HREF="#4.2">4.2</A>) �Х��ʥꡦ�����������̾�������Ȥθ�̩�ʰ㤤�ϲ��Ǥ�����<BR>
<A HREF="#4.3">4.3</A>) �ǽ��ο��ԤΤߤ� <font size=-1>select</font> �����ˤϤɤ����ޤ�����<BR>
<A HREF="#4.4">4.4</A>) �ơ��֥��䤽��¾�ξ����Υꥹ�Ȥ� <I>psql</I> �Ǹ����ˤϤɤ����ޤ�����<BR>
<A HREF="#4.5">4.5</A>) �ơ��֥뤫�������κ����ϤɤΤ褦�ˤ��ޤ�����<BR>
<A HREF="#4.5">4.5</A>) �ơ��֥뤫�����κ����ϤɤΤ褦�ˤ��ޤ�����<BR>
<A HREF="#4.6">4.6</A>) �ԡ��ơ��֥롢�ǡ����١����κ��祵�����ϡ�<BR>
<A HREF="#4.7">4.7</A>) ����Ū�ʥƥ����ȥե����뤫���ǡ�������¸�����ˤϡ�
�ǡ����١����Υǥ��������̤ϤɤΤ��餤ɬ�פǤ�����<BR>
<A HREF="#4.8">4.8</A>) �ǡ����١��������������줿�ơ��֥��䥤���ǥå������ɤΤ褦�˸��Ĥ��Ф��ޤ�����<BR>
<A HREF="#4.8">4.8</A>) �ǡ����١��������������줿�ơ��֥��䥤���ǥå������ɤΤ褦�ˤ��Ƹ��Ĥ��Ф��ޤ�����<BR>
<A HREF="#4.9">4.9</A>) �䤤���碌���٤������������ǥå������ȤäƤ����ͻҤ������ޤ��󡣤ʤ��Ǥ�����<BR>
<A HREF="#4.10">4.10</A>) �䤤���碌���֥ƥ��ޥ������ɤΤ褦���䤤���碌��ɾ�����뤫�򸫤��ˤϤɤ����ޤ�����<BR>
<A HREF="#4.11">4.11</A>) R-tree �����ǥå����Ȥϲ��Ǥ�����<BR>
<A HREF="#4.12">4.12</A>) ����Ū�䤤���碌��Ŭ���Ȥϲ��Ǥ�����<BR>
<A HREF="#4.13">4.13</A>) ����ɽ���Ǥθ�������ʸ���Ⱦ�ʸ���Ȥ����̤��ʤ�����ɽ�������ϤɤΤ褦�˼¸����ޤ�����<BR>
<A HREF="#4.13">4.13</A>) ����ɽ���Ǥθ�������ʸ���Ⱦ�ʸ���Ȥ����̤��ʤ�����ɽ�������ϤɤΤ褦�˼¸����ޤ�������ʸ���Ⱦ�ʸ���Ȥ����̤��ʤ������Τ����Υ����ǥå����ϤɤΤ褦�˻Ȥ��ޤ�����
<BR>
<A HREF="#4.14">4.14</A>) �䤤���碌�����ǡ��ե������ɤ� <font size=-1>NULL</font> �Ǥ��뤳�Ȥ򸡽Ф����ˤϤɤ����ޤ�����<BR>
<A HREF="#4.15">4.15</A>) ������ʸ�����Τ��줾���ΰ㤤�ϲ��Ǥ�����<BR>
<A HREF="#4.16.1">4.16.1</A>) ����(serial)����ư��ʬ�ե������ɤϤɤΤ褦�ˤĤ����ޤ�����<BR>
<A HREF="#4.16.2">4.16.2</A>) <font size=-1>SERIAL</font>���󥵡��Ȥ��ͤϤɤ��������������ޤ�����<BR>
<A HREF="#4.16.2">4.16.2</A>) <font size=-1>SERIAL</font>ǡ������������������ͤϡ��ɤ��������������ޤ�����<BR>
<A HREF="#4.16.3">4.16.3</A>) ¾�Υ桼���Ȥζ������֤��򤱤뤿���ˤϡ�<I>currval()</I> �� <I>nextval()</I> �ϻȤ��ʤ��ۤ����褤�ΤǤ��礦����<BR>
<A HREF="#4.17">4.17</A>) <font size=-1>OID</font> �Ȥϲ��Ǥ����� <font size=-1>TID</font> �Ȥϲ��Ǥ�����<BR>
<A HREF="#4.18">4.18</A>) PostgreSQL �ǻȤ����뤤���Ĥ����Ѹ��ΰ�̣�ϲ��Ǥ�����<BR>
@ -150,7 +118,7 @@ HREF="mailto:pgman@candle.pha.pa.us">pgman@candle.pha.pa.us</A>)<BR><P>
<H2><CENTER>PostgreSQL�γ�ĥ�ˤĤ��Ƥμ���</CENTER></H2>
<A HREF="#5.1">5.1</A>) ��ʬ�ǽ񤤤��桼�������ؿ��� psql �����Ǽ¹Ԥ����ȥ����������פ��Ƥ��ޤ��ΤϤʤ��Ǥ�����<BR>
<A HREF="#5.2">5.2</A>) PostgreSQL �Ѥ˽񤤤����ʿ����������ؿ��ϡ��ɤ������д�£�Ǥ��ޤ�����<BR>
<A HREF="#5.2">5.2</A>) PostgreSQL �Ѥ˽񤤤������ä���Ũ�ʿ����������ؿ����󶡤��ƥץ��������Ȥ˹׸��������ΤǤ�����<BR>
<A HREF="#5.3">5.3</A>) ���ץ����֤� C�����δؿ��ϤɤΤ褦�˽񤭤ޤ�����<BR>
<A HREF="#5.4">5.4</A>) ���������ե��������ѹ����ޤ������ƥ����ѥ��뤷�Ƥ��Ѳ����������ʤ��ΤϤʤ��Ǥ�����<BR>
<P>
@ -160,13 +128,13 @@ HREF="mailto:pgman@candle.pha.pa.us">pgman@candle.pha.pa.us</A>)<BR><P>
<H4><A NAME="1.1">1.1</A>) PostgreSQL �Ȥϲ��Ǥ�����</H4>
<P>PostgreSQL �� POSTGRES �ǡ����١������������ƥ��β����Ǥǡ������� <font size=-1>DBMS</font> �����ѤΥץ��ȥ����פǤ���PostgreSQL �� POSTGRES �ζ��Ϥʥǡ��������ǥ���˭�٤ʥǡ�����������(��)�����񤷤Ĥġ�POSTGRES �ǻȤ��줿 PostQuel �䤤���碌�����򡢳�ĥ���� <font size=-1>SQL</font> �Υ��֥��åȤ��֤������Ƥ��ޤ���PostgreSQL ��̵���Ǵ����ʥ����������ѤǤ��ޤ���
<P>PostgreSQL �ϼ����� <font size=-1>DBMS</font> �����ѤΥץ��ȥ����פǤ��ä� POSTGRES �ǡ����١������������ƥ��β����ǤǤ���PostgreSQL �� POSTGRES �ζ��Ϥʥǡ��������ǥ���˭�٤ʥǡ�����������(��)���ݻ����ʤ��顢POSTGRES �ǻȤ��줿 PostQuel �䤤���碌�����򡢳�ĥ���� <font size=-1>SQL</font> �Υ��֥��åȤ��֤������Ƥ��ޤ���PostgreSQL ��̵���Ǵ����ʥ����������ѤǤ��ޤ���
<P>PostgreSQL �Τ��٤Ƥγ�ȯ�ϡ�PostgreSQL ��ȯ�᡼���󥰥ꥹ�Ȥ˻��ä��Ƥ��륤�󥿡��ͥåȾ��γ�ȯ�ԥ������ǹԤʤäƤ��ޤ������ߤκ�Ĺ�� Marc G. Fournier ( <A HREF="mailto:scrappy@PostgreSQL.org">scrappy@PostgreSQL.org</A> )�Ǥ���(�ʲ��˻��äλ����������ޤ���)���ߡ����Υ����ब PostgreSQL��ȯ�Τ��٤Ƥ� ���ݤ򸫤ޤ���
<P>PostgreSQL �γ�ȯ�ϡ�PostgreSQL ��ȯ�᡼���󥰥ꥹ�Ȥ˻��ä��Ƥ��륤�󥿡��ͥåȾ��γ�ȯ�ԥ������Ǥ��٤ƹԤʤ����Ƥ��ޤ������ߤκ�Ĺ�� Marc G. Fournier ( <A HREF="mailto:scrappy@PostgreSQL.org">scrappy@PostgreSQL.org</A> )�Ǥ���(�ʲ��˻��äλ����������ޤ���)���ߡ����Υ����ब PostgreSQL ��ȯ�Τ��٤Ƥ����ݤ��ߤƤ��ޤ���
<P>PostgreSQL 1.01 ����Ԥ� Andrew Yu �� Jolly Chen �Ǥ���������¾�����ο͡������Υ����ɤΰܿ����ƥ��ȡ��ǥХ��������ӡ����ɤ˹׸����ޤ�����PostgreSQL �������������ɤǤ��� POSTGRES �ϥ����ե����˥����إС����쥤���ˤ����ơ� Michael Stonebraker �����λش��Τ��ȡ�¿���γ�����´���������ȥץ������ޤ��������Ϥˤ����������ޤ�����
<P>Postgres95-1.01 ���濴Ū�ʳ�ȯ�Ԥ� Andrew Yu �� Jolly Chen �Ǥ�����������¾�����ο͡������Υ����ɤΰܿ����ƥ��ȡ��ǥХ��������ӡ����ɤ˻��ä��ޤ�����PostgreSQL �������������ɤǤ��� POSTGRES �ϥ����ե����˥����إС����쥤���ˤ����ơ� Michael Stonebraker �����λش��Τ��ȡ�¿���γ�����´�������ܿ��Υץ������ޤ��������Ϥˤ����������ޤ�����
<P>�С����쥤�ˤ����뤳�Υ��եȥ������Τ��Ȥ�̾���� Postgres �Ǥ�����<FONT SIZE=-1>SQL</FONT> �ε�ǽ���ɲä��줿 1995 ǯ�ˤ���̾���� Postgres95 ���ѹ������ޤ�����1996 ǯ�ν����ˤ���̾���� PostgreSQL ���ѹ������ޤ�����
<P>�С����쥤�ˤ����뤳�Υ��եȥ������Τ��Ȥ�̾���� Postgres �Ǥ�������<FONT SIZE=-1>SQL</FONT> �ε�ǽ���ɲä��줿 1995 ǯ�ˤ���̾���� Postgres95 ���ѹ����1996 ǯ�ν����ˤ���̾���� PostgreSQL ���ѹ������ޤ�����
<I>Post-Gres-Q-L.</I>(�ݥ��� - ���쥹 - ���塼 - ����) ��ȯ�����ޤ���
@ -182,7 +150,7 @@ HREF="mailto:pgman@candle.pha.pa.us">pgman@candle.pha.pa.us</A>)<BR><P>
<P>
PostgreSQL Data Base Management System<P>
Portions copyright (c) 1996-2000, PostgreSQL Global Development Group
Portions Copyright (c) 1996-2000, PostgreSQL Global Development Group
Portions Copyright (c) 1994-6 Regents of the University of California<P>
Permission to use, copy, modify, and distribute this software and its
@ -254,7 +222,7 @@ MODIFICATIONS.
<P>
<H4><A NAME="1.5">1.5</A>) PostgreSQL �Ϥɤ��������������ޤ�����</H4>
<H4><A NAME="1.5">1.5</A>) PostgreSQL �Ϥɤ����������Ǥ��ޤ�����</H4>
<P> PostgreSQL �θ��� anonymous ftp �����ȤǤ���
<UL>
@ -304,9 +272,9 @@ MODIFICATIONS.
�Ƚ񤤤� <A HREF="mailto:pgsql-general-digest-request@PostgreSQL.org"> pgsql-general-digest-request@PostgreSQL.org</A> ���Żҥ᡼�������äƲ�������
<P> �������������Ǥϡ��ᥤ���ꥹ�Ȥ������������å����� 30k ����ί�����˥������������ǥꥹ�ȤΥ����С������դ����ޤ���
<P> �������������Ǥϡ��ᥤ���ꥹ�ȤǼ����������å������� 30k ����ί�����˥������������ǥꥹ�ȤΥ����С������դ����ޤ���
<P> �Х��Υ᡼���󥰥ꥹ�Ȥ����ѤǤ��ޤ������Υꥹ�Ȥؤλ��ä� "��ʸ"�Ȥ��ä����ˡ�
<P> �Х����ݡ����ѤΥ᡼���󥰥ꥹ�Ȥ���ޤ������Υꥹ�Ȥؤλ��ä� "��ʸ"�Ȥ��ä����ˡ�
<A
HREF="mailto:bugs-request@PostgreSQL.org">bugs-request@PostgreSQL.org</A>
@ -329,7 +297,7 @@ HREF="mailto:bugs-request@PostgreSQL.org">bugs-request@PostgreSQL.org</A>
</BLOCKQUOTE>
<P>
IRC �������ͥ��� EFNet �ˤ����ޤ������Υ������ͥ��� <I>#PostgreSQL</I>Ǥ���
EFNet �� <I>#PostgreSQL</I>Ȥ��� IRC �������ͥ��⤢���ޤ���
unix ���ޥ��ɤ�<tt>irc -c '#PostgreSQL' "$USER" irc.phoenix.net</tt>
���Ȥ��ޤ���<P>
@ -361,19 +329,19 @@ unix
<P>
<H4><A NAME="1.7">1.7</A>) �ǿ��Ǥϲ��Ǥ���</H4>
<H4><A NAME="1.7">1.7</A>) �ǿ��ǤϤɤ��Ǥ���</H4>
<P> PostgreSQL �κǿ��ǤϥС������� 7.0.3 �Ǥ���
<P> PostgreSQL �κǿ��ǤϥС������� 7.1.2 �Ǥ���
<P>
�桹�ϡ�4�������˥᥸�㡼���꡼�����Ԥʤ����Ȥ��ײ褷�Ƥ��ޤ���
<P>
<H4><A NAME="1.8">1.8</A>) �ɤΤ褦��ʸ�񤬤����ޤ�����</H4>
<P> ���դ����ˡ������Ĥ��Υޥ˥奢���ȥ����饤�󡦥ޥ˥奢��(�ޥ˥奢�롦�ڡ���)�����Ӥ����Ĥ��ξ����ʥƥ������꤬�ޤޤ��ޤ���<I>/doc</I> �ǥ��쥯�ȥ����������������ޤ��������饤���ǤΥޥ˥奢�����<A
<P> ���դ����ˡ������Ĥ��Υޥ˥奢���ȥ����饤�󡦥ޥ˥奢��(�ޥ˥奢�롦�ڡ���)�����Ӥ����Ĥ��ξ����ʥƥ������꤬�ޤޤ��ޤ���<I>/doc</I> �ǥ��쥯�ȥ����������������ޤ����ޥ˥奢���ϡ<A
HREF="http://www.PostgreSQL.org/users-lounge/docs/">
http://www.PostgreSQL.org/users-lounge/docs/</A>
�Ǥ������Ǥ��ޤ���
�ǥ����饤���Ǥ������Ǥ��ޤ���
<P> PostgreSQL ���ܤ⤢���ޤ��� <A
HREF="http://www.PostgreSQL.org/docs/awbook.html">
@ -391,7 +359,7 @@ http://www.PostgreSQL.org/docs/awbook.html</A><P>
<P> �桹�� Web �����Ȥˤϡ����ä�������ʸ�񤬤����ޤ���
<P>
<H4><A NAME="1.9">1.9</A>) ���ΤΥХ���̵����ǽ�Ϥɤ����äƸ��Ĥ��ޤ�����
<H4><A NAME="1.9">1.9</A>) ���ΤΥХ���̤��̵����ǽ�Ϥɤ����äƸ��Ĥ��ޤ�����
</H4><P>
PostgreSQL�ϳ�ĥ���줿SQL-92�Υ��֥��åȤ򥵥ݡ��Ȥ��ޤ���
@ -400,7 +368,7 @@ PostgreSQL
TODO</A> �ꥹ�Ȥˡ����ΤΥХ������ǽ�侭���ײ��ˤĤ��Ƥε��Ҥ������ޤ���
<P>
<H3><A NAME="1.10">1.10</A>) <font size=-1>SQL</font> �ϤɤΤ褦�˳ؤ٤��ɤ��Ǥ�����</H3>
<H3><A NAME="1.10">1.10</A>) <font size=-1>SQL</font> �Ϥɤ�����гؤ٤ޤ�����</H3>
<P>
<A HREF="http://www.PostgreSQL.org/docs/awbook.html">
http://www.PostgreSQL.org/docs/awbook.html</A>
@ -532,18 +500,19 @@ PostgreSQL
<DT> <B>���ݡ���(Support)</B>
<DD>
�桹�Υ᡼���󥰥ꥹ�Ȥϡ��������ɤ��������ˤĤ��Ƥ������������Ƥ��
�롢��ȯ�Ԥ��桼���������ʥ��롼�פ��ʤ��Ƥ��ޤ����桹�������β�������
�ڤ��뤳�ȤϤǤ��ޤ��󤬡����ѥǡ����١����Ǥ��äƤ����˲��褵�����櫓
�ǤϤ����ޤ��󡣳�ȯ��ã���桼�������ߥ��˥ƥ����ޥ˥奢���ࡢ�����ˡ�
�����������ɤʤɤ�ľ�ܥ��������Ǥ��뤳�Ȥ��äơ�PostgreSQL�Υ��ݡ��Ȥϡ�
¾��<font size=-1>DBMS</font>���ݡ��Ȥ�����ͥ�줿���ΤȤʤäƤ��ޤ�������˾�������ơ�������
�ξ��ѥ��ݡ��Ȥ⤢���ޤ��ʥ��ݡ���FAQ���ܤ������������ˡ�
�桹�Υ᡼���󥰥ꥹ�Ȥϡ�����������ʤ������ˤĤ��Ƥ������ؤμ
�����򤷤Ƥ����롢��ȯ�Ԥ��桼�����礭�ʽ��ޤ����󶡤��Ƥ��ޤ������
����β������ݾڤ��뤳�ȤϤǤ��ޤ��󤬡����ѥǡ����١����Ǥ��äƤ����
���褵�����櫓�ǤϤ����ޤ��󡣳�ȯ�Ԥ䡢�桼�������ߥ��˥ƥ����ޥ˥奢
���ࡢ�����ˡ������������ɤʤɤ�ľ�ܥ��������Ǥ��뤳�Ȥ��äơ�
PostgreSQL�Υ��ݡ��Ȥϡ�¾��<font size=-1>DBMS</font>���ݡ��Ȥ�����ͥ�줿���ΤȤʤäƤ��ޤ���
����˾�������ơ��������ξ��ѥ��ݡ��Ȥʤɤ⤢���ޤ��ʥ��ݡ���FAQ���ܤ�����
�������ˡ�
<DT> <B>����(Price)</B>
<DD>
PostgreSQL�λ��Ѥϡ����ѤǤ������ѤǤ⡢���٤�̵���Ǥ����嵭�˼����Ƥ�
PostgreSQL�����Ѥϡ����ѤǤ������ѤǤ⡢���٤�̵���Ǥ����嵭�˼����Ƥ�
��BSD���������λ��ѵ����˳����ʤ��¤ꡢPostgreSQL�Υ����ɤ�����̵����
���ʤ��Ȥ߹��ळ�Ȥ��Ǥ��ޤ���
<BR><BR>
@ -605,9 +574,7 @@ Programmer's Guide</A>
]
</PRE></small>
<P> ʣ���ʾ��硢¿���οͤ� Perl ���󥿡��ե������� CGI.pm ���Ȥ��ޤ���
<P> Perl ���Ȥä� WDB �����ˤ��� WWW �����ȥ�������<A HREF="http://www.eol.ists.ca/~dunlop/wdb-p95">http://www.eol.ists.ca/~dunlop/wdb-p95</A>���������������ɤǤ��ޤ���
<P> ������ʣ���ʾ��硢¿���οͤ� Perl ���󥿡��ե������� CGI.pm ���Ȥ��ޤ���
<small><PRE>
[����:
@ -622,7 +589,8 @@ Programmer's Guide</A>
</PRE></small>
<P>
<H4><A NAME="2.3">2.3</A>) PostgreSQL �ϥ����ե����롦�桼�������󥿡��ե����������äƤ��ޤ����� ���ݡ��ȡ������ͥ졼���ϡ� ���������䤤���碌�����ؤΥ��󥿡��ե������ϡ�
<H4><A NAME="2.3">2.3</A>) PostgreSQL �˥����ե����롦�桼�����󥿡��ե������Ϥ����ޤ�����
���ݡ��ȡ������ͥ졼���ϡ� ���������䤤���碌�����ؤΥ��󥿡��ե������ϡ�
</H4>
<P> <I>pgaccess</I> �ȸƤФ��������餷�������ե����롦�桼�������󥿡��ե����������ꡢ�������ۤȶ��˽в٤����ޤ���<I>Pgaccess</I> �ˤϥ��ݡ��ȡ������ͥ졼���⤢���ޤ���Web �ڡ�����<A HREF="http://www.flex.ro/pgaccess">http://www.flex.ro/pgaccess</A>�Ǥ���
@ -657,6 +625,8 @@ Programmer's Guide</A>
PgBash �� ���� ���� ���󤬺��ä� bash �� PostgreSQL ���󥿡��ե������Ǥ���
<A HREF="http://www.psn.co.jp/PostgreSQL/pgbash/">http://www.psn.co.jp/PostgreSQL/pgbash/</A>
Bash���ޥ��ɥ饤����postgres ���䤤���碌�Ǥ��ޤ���
Perl �Υ⥸�塼���ϸŤ����餢�� Pg �� DBI �ɥ饤�Ф� DBD::Pg �Ȥ����ꡢ
�������� Edmund Mergl ���ˤ������Τ� <A HREF="http://www.cpan.org/">CPAN ������</A>�ˤ����ޤ���
]
</PRE></small>
@ -706,7 +676,7 @@ PostgreSQL Administrator's Gide
<P> �����������Ǥϥ��������ޥ��󤫤��� unix �ɥᥤ���Υ����å���³���������ޤ�����TCP/IP ��³����ǽ�ˤ����ˤ� postmaster �� <I>-i</I> ���ץ������dz��Ϥ����Ƥ��ơ�<I>pgsql/data/pg_hba.conf</I> �ե�������Ŭ�ڤʥۥ��Ȥε��ܤ��ɲä����Ƥ��뤳�Ȥ���ǧ���Ƥ���������
<P>
<H4><A NAME="3.7">3.7</A>) �������ǽ�����뤿���ˡ��ɤΤ褦�˥ǡ����١��������󥸥���Ĵ���Ǥ��ޤ�����
<H4><A NAME="3.7">3.7</A>) �����ɤ���ǽ�����뤿���ˤϡ��ǡ����١��������󥸥����ɤΤ褦��Ĵ���������ɤ��Ǥ�����
</H4>
<P> �Τ��˥����ǥå������䤤���碌��®�٤������ޤ���<font size=-1>EXPLAIN</font>���ޥ��ɤ� PostgreSQL ���ɤΤ褦�ˤ��ʤ����䤤���碌���������Ƥ��뤫�򸫤뤳�Ȥ��Ǥ��������ơ��ɤΥ����ǥå������Ȥ����Ƥ��뤫�򸫤뤳�Ȥ��Ǥ��ޤ���
@ -770,7 +740,7 @@ PostgreSQL
<P> �䤤���碌�¹ԥ⥸�塼���ˤ��ä��������줿����Ū�ʥե������Ǥ����㤨�С��⤷ <font size=-1>ORDER BY</font> ���������������˥Хå������ɤ� <I>-S</I> �ѥ��᡼���ǵ��Ĥ����ͤ������礭�ʥ��ڡ����������Ȥκݤ�ɬ�פ��Ȥ����ȡ����줿�ǡ������ݻ����뤿���˰���Ū�ʥե����뤬�����Ĥ����������ޤ���
<P>
����Ū�ʥե������ϼ�ưŪ�˾ä����������Ϥ��Ǥ������⤷�������Ȥ������ǥХå������ɤ��٤��Ƥ��ޤ��Ȥ����ʤ��ޤ��󡣤⤷�����ΤȤ��Хå������ɤ��ҤȤĤ����äƤʤ����С�pg_tempNNN.NN�ե��������ä��Ƥ������Ǥ���
����Ū�ʥե������ϼ�ưŪ�˾ä����������Ϥ��Ǥ������⤷�������Ȥ������ǥХå������ɤ������å��夷�Ƥ��ޤ��Ȥ����Ϥʤ��ޤ��󡣤��ΤȤ��Хå������ɤ��ҤȤĤ����äƤʤ����С�pg_tempNNN.NN�ե��������ä��Ƥ������פǤ���
<small><PRE>
@ -798,13 +768,13 @@ PostgreSQL
<P> �����������������Τ����Ʋ�������PostgreSQL �� <I>postmaster</I> �ץ����������餻���桼�����Υ����������������Ȥ��ޤ���postgres ��psql �ˤ� SET ���ޥ��ɤ����ꡢ�ǡ����񼰤������Ǥ��ޤ����������򤢤ʤ��������Ķ��˹��碌�����ꤷ�Ʋ�������
<P>
<H4><A NAME="4.2">4.2</A>) �Х��ʥꡦ�����������̾��Υ��������Ȥθ�̩�ʰ㤤�ϲ��Ǥ�����
<H4><A NAME="4.2">4.2</A>) �Х��ʥꡦ�����������̾�������Ȥθ�̩�ʰ㤤�ϲ��Ǥ�����
</H4>
<P> �ܽҤϡ������饤���ޥ˥奢���� <font size=-1>DECLARE</font> �򸫤Ʋ�������
<P>
<H4><A NAME="4.3">4.3</A>) �䤤���碌�κǽ��ο��ԤΤߤ� <font size=-1>SELECT</font> �����ˤϤɤ����ޤ�����
<H4><A NAME="4.3">4.3</A>) �ǽ��ο��ԤΤߤ� <font size=-1>SELECT</font> �����ˤϤɤ����ޤ�����
</H4>
<P> �����饤���ޥ˥奢����<font size=-1>FETCH</font>�򸫤Ƥ������������뤤�ϡ�SELECT ... LIMIT....���ȤäƤߤƲ�������
@ -817,12 +787,12 @@ PostgreSQL
</H4>
<P>
<I>psql</I>�Υ����������ɤ��񤫤줿 <I>pgsql/src/bin/psql/describe.c</I> �ե��������ɤळ�Ȥ��Ǥ��ޤ���
<I>psql</I>�Υ����������ɤȤ��ƽ񤫤줿 <I>pgsql/src/bin/psql/describe.c</I> �ե��������ɤळ�Ȥ����������Ǥ���
�����ˤϡ�psql�ΥХå������å��女�ޥ��ɤˤ������ϤΤ�����<font size=-1>SQL</font>���ޥ��ɤ��ޤޤ��Ƥ��ޤ��� <I>psql</I> �� <I>-E</I> ���ץ��������Ĥ��Ƶ�ư�����С�Ϳ�������ޥ��ɤ��¹Ԥ��뤿�����䤤���碌�����Ϥ����ޤ���
<P>
<H4><A NAME="4.5">4.5</A>) �ơ��֥뤫�������κ����ϤɤΤ褦�ˤ��ޤ�����
<H4><A NAME="4.5">4.5</A>) �ơ��֥뤫�����κ����ϤɤΤ褦�ˤ��ޤ�����
</H4>
<P> <font size=-1>ALTER TABLE DROP COLUMN</font> �ϥ��ݡ��Ȥ��Ƥ��ޤ��󤬡������������ˤ������ޤ�:
@ -855,7 +825,7 @@ PostgreSQL
<P> �������󡢤������ϼºݤ�̵���¤ǤϤʤ����ǥ��������̤ȥ����꡼�䥹���åץ��ڡ������礭���ˤ������¤����ޤ�����ǽ�Ϥ��������ͤ����ȤΤۤ��礭�ʻ��������������ޤ���
<P> �����ơ��֥륵������16TB�ϥ��ڥ졼�ƥ��󥰥����ƥ��Υ顼�����ե�����ݡ��Ȥ�ɬ�פȤ��ޤ��󡣥顼����ơ��֥���ʣ����1GB�Υե������Τ褦����¸�����ޤ���
<P> �����ơ��֥륵������16TB�ϥ��ڥ졼�ƥ��󥰥����ƥ��ˤ��������ե������Υ��ݡ��Ȥ�ɬ�פȤ��ޤ��󡣵����ʥơ��֥���ʣ����1GB�Υե�������ʬ������¸�����ޤ��Τǡ��ե����륷���ƥ������¤Ͻ��פǤϤ����ޤ����
<P> �ǥե����ȤΥ֥��å���������32k�ˤ����Ⱥ����ơ��֥륵�����Ⱥ��祫�������Ȥ����ä��ޤ���
@ -891,7 +861,7 @@ PostgreSQL
�����ǥå����ϡ������ۤɤΥ����Хإåɤ��׵ᤷ�ޤ��󤬡������ǥå����դ��������ǡ������ޤ��ʾ塢�����ʤ����礭���ʤ��ޤ���
<P>
<H4><A NAME="4.8">4.8</A>) �ǡ����١��������������줿�ơ��֥��䥤���ǥå������ɤΤ褦�˸��Ĥ��Ф��ޤ�����
<H4><A NAME="4.8">4.8</A>) �ǡ����١��������������줿�ơ��֥��䥤���ǥå������ɤΤ褦�ˤ��Ƹ��Ĥ��Ф��ޤ�����
</H4>
<P> <I>psql</I> �ˤϤ��������ʥХå������å��塦���ޥ��ɤ����ꡢ��������������ɽ�����ޤ����Хå������å��塦���ޥ��ɤμ����򸫤��ˤ� \? ���ȤäƲ�������
@ -905,7 +875,7 @@ PostgreSQL
<P> �������κ�Ŭ�����פΤ�����<font size=-1>VACUUM ANALYZE</font>���Ȥ��ޤ���<font size=-1>VACUUM ANALYZE</font>��ʣ����ʣ������(multi-join)�䤤���碌�Τ��������ڤǤ��Τǡ����֥ƥ��ޥ����Ϥ��줾���Υơ��֥뤫���֤������Ԥο������Ѥ뤳�Ȥ��Ǥ��������η������������Ӥޤ����Хå������ɤϤ��켫�ȤǤ��������פ��ݻ����ʤ��Τǡ�����Ū�ˤ������򽸤��뤿���ˤ� <font size=-1>VACUUM ANALYZE</font> �����餻�ʤ��ƤϤʤ��ޤ�����
<P> �����ǥå����� <font size=-1>ORDER BY</font> �����Τ����ˤ����̤ϻȤ����ޤ��󡣤��ʤ����������������³������Ū�����Ȥϡ��ǥ������������������꾯�ʤ��ƺѤ��Τǡ������ʥơ��֥��������򥤥��ǥå����������󤹤���������®�Ǥ���
<P> ���̡������ǥå����� <font size=-1>ORDER BY</font> �������������Τ����ˤϻȤ����ޤ��󡣥��������ʥǥ��������������ϤȤƤ��٤��Τǡ������������³������Ū�����Ȥϡ������ʥơ��֥��������򥤥��ǥå����������󤹤���������®�Ǥ���
<P> <font size=-1>LIKE</font> ���뤤�� <I>~</I> �Τ褦�ʥ磻���ɥ����ɱ黻��(wild-card operators)���Ȥ��Ȥ��������γ��Ϥ�ʸ�����λϤ�����ʬ�˸��ꤵ���Ƥ����Ȥ��ˤΤߡ������ǥå������Ȥ����ޤ���
���������櫓�ǡ������ǥå������Ȥ������ˤϡ�<font size=-1>LIKE</font> �����Ǥ�<I>%</I>�ǻϤ��ʤ��褦�ˤ��ơ��ޤ���<I>~</I>(����ɽ������)��<I>^</I> �ǻϤ����褦�ˤ����٤��Ǥ���
@ -962,13 +932,31 @@ Proc of the 1984 ACM SIGMOD Int'l Conf on Mgmt of Data, 45-57.
<P> GEQO �⥸�塼���ϡ������Υơ��֥������礹���Ȥ��ˡ�����Ū���르�ꥺ��(GA)�������碌����®�����ޤ��������ˤ��ꡢ�����ߤĤ֤���õ�����Ԥʤ��ʤ��Ƥ⡢�礭�ʷ���(join queries)�򰷤����Ȥ��Ǥ����褦�ˤʤ��ޤ���
<P>
<H4><A NAME="4.13">4.13</A>) ����ɽ���Ǥθ�������ʸ���Ⱦ�ʸ���Ȥ����̤��ʤ�����ɽ�������ϤɤΤ褦�˼¸����ޤ�����
<H4><A NAME="4.13">4.13</A>) ����ɽ���Ǥθ�������ʸ���Ⱦ�ʸ���Ȥ����̤��ʤ�����ɽ�������ϤɤΤ褦�˼¸����ޤ�������ʸ���Ⱦ�ʸ���Ȥ����̤��ʤ������Τ����Υ����ǥå����ϤɤΤ褦�˻Ȥ��ޤ�����
</H4>
<P>
<I>~</I>�黻�Ҥ�����ɽ���ȹ����Ԥʤ���<I>~*</I> ����ʸ���Ⱦ�ʸ�������̤��ʤ�(case-insensitive)����ɽ���ȹ����Ԥ��ޤ��� PostgreSQL 7.1 �ʹߤǤϡ���ʸ���Ⱦ�ʸ�������̤��ʤ� <font size=-1>LIKE</font> �黻�Ҥ� <font size=-1>ILIKE</font> �Ȥ����ޤ���
<P>��ʸ���Ⱦ�ʸ�������̤��ʤ��������Ӽ��Τ褦��ɽ���Ǥ��롧
<PRE>
SELECT *
FROM tab
WHERE lower(col) = 'abc'
</PRE>
ɸ�।���ǥå����ǤϻȤ��줺���������ʤ��顢�⤷�ؿ������ǥå�����
���ä��ʤ餽�줬�Ȥ������Ǥ��礦��
<PRE>
CREATE INDEX tabindex on tab (lower(col));
</PRE>
<PRE>
WHERE lower(textfield) LIKE lower(pattern)
</PRE>
@ -1026,18 +1014,16 @@ BYTEA bytea
Bruce Momjian ��<A HREF="http://www.PostgreSQL.org/docs/aw_pgsql_book">(http://www.PostgreSQL.org/docs/aw_pgsql_book)�� Numbering Rows</A>�ξϤˤ��ꤢ�ޤ���
<H4><A NAME="4.16.2">4.16.2</A>) <font size=-1>SERIAL</font>���󥵡��Ȥ��ͤϤɤ��������������ޤ�����
<H4><A NAME="4.16.2">4.16.2</A>) <font size=-1>SERIAL</font>ǡ������������������ͤϡ��ɤ��������������ޤ�����
</H4><P>
�ҤȤĤ���ˡ�ϡ�<I>nextval()</I> �ؿ�����������<I>����(before)</I> SEQUENCE���֥������Ȥ��鼡��<font size=-1>SERIAL</font>�ͤ������Ф������줫���ºݤ������򤹤뤳�ȤǤ��礦��
<A HREF="#4.16.1">4.16.1</A>�����ǻȤä��ơ��֥����Ȥ��Ȥ����ȡ����Τ褦�ˤʤ��Ǥ��礦��
�ҤȤĤ���ˡ�ϡ�<I>nextval()</I> �ؿ����ȤäƤ����ͤ���������<I>��(before)��</I> SEQUENCE ���֥������Ȥ��鼡�� <font size=-1>SERIAL</font> �ͤ������Ф������줫���ºݤ������򤹤뤳�ȤǤ��� <A HREF="#4.16.1">4.16.1</A> �����ǻȤä��ơ��֥����Ȥ��Ȥ����ȡ����Τ褦�ˤʤ��ޤ���
<PRE>
$newSerialID = nextval('person_id_seq');
INSERT INTO person (id, name) VALUES ($newSerialID, 'Blaise Pascal');
</PRE>
�������ơ�<tt>$newSerialID</tt> ����¸�����������ͤ�¾���䤤���碌��(���Ȥ��С�<tt>person</tt> �ơ��֥����Ф��볰����(foreign key)�Τ褦��)�Ȥ��Ȥ褤�Ǥ��礦����ưŪ�˺����줿<font size=-1>SEQUENCE</font>���֥������Ȥ�̾���ϡ�&lt;<I>table</I>&gt;_&lt;<I>serialcolumn</I>&gt;_<I>seq</I> �Τ褦�ˤʤꡢ���Τ�����<I>table</I> �� <I>serialcolumn</I> �Ϥ��줾���ơ��֥���̾����<font size=-1>SERIAL</font>����̾���Ǥ���
�������ơ�<tt>$newSerialID</tt> ����¸�����������ͤ�¾���䤤���碌��(���Ȥ��С�<tt>person</tt> �ơ��֥����Ф��볰������(foreign key)�Τ褦��)�Ȥ��Ȥ褤�Ǥ��礦����ưŪ�˺����줿<font size=-1>SEQUENCE</font>���֥������Ȥ�̾���ϡ�&lt;<I>table</I>&gt;_&lt;<I>serialcolumn</I>&gt;_<I>seq</I> �Τ褦�ˤʤꡢ���Τ�����<I>table</I> �� <I>serialcolumn</I> �Ϥ��줾���ơ��֥���̾����<font size=-1>SERIAL</font>����̾���Ǥ���
<P>
���뤤�ϡ�Ϳ�����줿<font size=-1>SERIAL</font>�ͤ򡢤��줬�����ͤȤ����������줿<I>����(after)</I>�� <I>currval</I>() �ؿ����ȤäƼ����Ф����Ȥ��Ǥ��ޤ������Ȥ��С�
@ -1047,27 +1033,29 @@ BYTEA bytea
$newID = currval('person_id_seq');
</PRE>
�Ǹ��ˡ�<font size=-1>INSERT</font>ʸ�����֤�<A HREF="#4.17"><font size=-1>OID</font></A>���Ȥäơ������ͤ��ߤĤ��뤳�Ȥ��Ǥ��ޤ������������������ϺǤ��ܿ������㤤�������Ǥ��礦��Perl��DBI�� Edmund Mergl �� DBD::Pg �⥸�塼�����Ȥ��С�$sth->execute() �θ��� $sth-&gt{pg_oid_status} ����ͳ���Ƥ��� OID �ͤ��Ȥ����褦�ˤ��뤳�ȤϤǤ��ޤ���
�Ǹ��ˡ�<font size=-1>INSERT</font>ʸ�����֤�<A HREF="#4.17"><font size=-1>OID</font></A>���Ȥäơ������ͤ��ߤĤ��뤳�Ȥ��Ǥ��ޤ������������������ϺǤ��ܿ������㤤�������Ǥ��礦��Perl��DBI�� Edmund Mergl �κ��ä� DBD::Pg �⥸�塼�����Ȥ��С�$sth->execute() �θ��� $sth-&gt{pg_oid_status} ����ͳ���Ƥ��� OID �ͤ��Ȥ����褦�ˤ��뤳�ȤϤǤ��ޤ���
<P>
<H4><A NAME="4.16.3">4.16.3</A>) ¾�Υ桼���Ȥζ������֤��򤱤뤿���ˤϡ�<I>currval()</I> �� <I>nextval()</I> �ϻȤ��ʤ��ۤ����褤�ΤǤ��礦����
</H4><P>
����ޤ��󡣥Хå������ɤǽ��������Ƥ��ޤ���
�Хå������ɤ������˽��������Τǡ��������֤ˤʤ뤳�Ȥ�ͭ���ޤ�����
<P>
<H4><A NAME="4.17">4.17</A>) <font size=-1>OID</font> �Ȥϲ��Ǥ����� <font size=-1>TID</font> �Ȥϲ��Ǥ�����
</H4>
<P> <font size=-1>OID</font> �Ȥϰ��դι� ID ���Ф��� PostgreSQL �������Ǥ���PostgreSQL �����ǤĤ������뤹�٤ƤιԤϰ��դ� <font size=-1>OID</font> �����ޤ���<I>initdb</I> ��(<I>backend/access/transam.h</I> ����)ȯ�������� <font size=-1>OID</font> �Ϥ��٤� 16384���꾮�����ͤǤ���<I>initdb</I> ���Τ��٤Ƥ� <font size=-1>OID</font> (�桼������)�Ϥ����ʾ����ͤˤʤ��ޤ��������Ǥϡ������餹�٤Ƥ� <font size=-1>OID</font> �ϥơ��֥������ǡ����١�������α�ޤ餺��PostgreSQL �Τ��Υ��󥹥ȥ졼�������������ǰ��դǤ����ޤ���
<P> <font size=-1>OID</font> �Ȥϰ��դι� ID ���Ф��� PostgreSQL �������Ǥ���PostgreSQL �����ǤĤ������뤹�٤ƤιԤϰ��դ� <font size=-1>OID</font> �����ޤ���<I>initdb</I> ��ȯ�������� <font size=-1>OID</font> �Ϥ��٤� 16384 (<I>backend/access/transam.h</I> ����)���꾮�����ͤǤ���<I>initdb</I> ���Τ��٤Ƥ� <font size=-1>OID</font> (�桼������)�Ϥ����ʾ����ͤˤʤ��ޤ���
�����Ǥϡ������餹�٤Ƥ� <font size=-1>OID</font>�ϰ��ĤΥǡ��֥����ǡ����١�������α�ޤ餺��PostgreSQL ���󥹥ȥ졼���������Τ����ǰ��դǤ���
<P> PostgreSQL �ϥơ��֥��֤ιԤ����ӤĤ��뤿���ˡ����Υ����ƥ��ơ��֥����� <font size=-1>OID</font> ���Ȥ��ޤ������� <font size=-1>OID</font> �������Υ桼���ιԤ����̤��뤿�������������ǻȤ����뤳�Ȥ��Ǥ��ޤ���<font size=-1>OID</font> ���ͤ���¸���뤿���ˤ� <I>OID</I> �������˻Ȥ����Ȥ򾩤��ޤ�������®�������������뤿���� <I>OID</I> �ե������ɤ˥����ǥå��������뤳�Ȥ��Ǥ��ޤ���
<P> O<font size=-1>ID</font> �ϡ����ƤΥǡ����١��������Ȥ����������ΰ褫�顢���Ƥο������Ԥ˳������Ƥ����ޤ���<font size=-1>OID</font> ��¾�β������Ѥ�����������ϸ��� <font size=-1>OID</font>ǥơ��֥��򥳥ԡ��������Τʤ顢�����Ǥ��ʤ���ͳ�Ϥ����ޤ�����
O<font size=-1>ID</font> �ϡ����ƤΥǡ����١����ǻȤ����������ΰ褫�顢���Ƥο������Ԥ˳������Ƥ����ޤ���<font size=-1>OID</font> ��¾�β������Ѥ�����������ϸ��� <font size=-1>OID</font>��ơ��֥��Ȱ����˥��ԡ��������Τʤ顢�Ǥ��ʤ��Ϥ����ޤ�����
<PRE>
CREATE TABLE new_table(old_oid oid, mycol int);
CREATE TABLE new (old_oid oid, mycol int);
SELECT old_oid, mycol INTO new FROM old;
COPY new TO '/tmp/pgtable';
DELETE FROM new;
@ -1108,9 +1096,9 @@ http://www.comptechnews.com/~reaster/dbdesign.html</a>
<H4><A NAME="4.19">4.19</A>) ���顼���å����� <I>"ERROR: Memory exhausted in AllocSetAlloc()"</I>���Ф��ΤϤʤ��Ǥ�����
</H4>
<P>
�����ƥ��β��ۥ����꡼�����ƻȤ��̤����Ƥ��ޤäƤ�����ǽ��������������
�����ͥ뤬�����꥽�����ˤĤ���������ͤ����äƤ�����ǽ���������ޤ���
<I>postmaster</I>򳫻Ϥ������ˤ�������ƤߤƲ�������
��7.1 �������Ť��С��������򤪻Ȥ��ξ����ϡ����åץǡ��Ȥˤ��äƤ���������
�����Ǥ����Ǥ��礦�������ȡ������ƥ��β��ۥ����꡼�����ƻȤ��̤����Ƥ��ޤäƤ�����ǽ�������뤫�������ͥ뤬�����꥽�����ˤĤ��Ƥ��������ͤ��������ǽ���������ޤ���
<I>postmaster</I>���ư�������ˤ�������ƤߤƲ�������
<PRE>
ulimit -d 262144
@ -1202,11 +1190,11 @@ PostgreSQL 7.1
<H4><A NAME="5.1">5.1</A>) ��ʬ�ǽ񤤤��桼�������ؿ��� psql �����Ǽ¹Ԥ����ȥ����������פ��Ƥ��ޤ��ΤϤʤ��Ǥ�����
</H4>
<P> �����Ͽ����ȹͤ������ޤ����ޤ��ǽ��ˡ����������桼�������ؿ���ñ�ȤΥƥ��ȥץ��������ˤ��ƻ�ƤߤƲ�������
<P> �����Ͽ����ȹͤ������ޤ������ޤ��ǽ��ˡ����������桼�������ؿ���ñ�ȤΥƥ��ȥץ��������ˤ��ƻ�ƤߤƲ�������
<P>
<H4><A NAME="5.2">5.2</A>) PostgreSQL �Ѥ˽񤤤����ʿ����������ؿ��ϡ��ɤ������д�£�Ǥ��ޤ�����
<H4><A NAME="5.2">5.2</A>) PostgreSQL �Ѥ˽񤤤������ä���Ũ�ʿ����������ؿ����󶡤��ƥץ��������Ȥ˹׸��������ΤǤ�����
</H4>
<P> �������ιԤʤä���ĥ����<I>pgsql-hackers</I> �᡼���󥰡��ꥹ�Ȥ����äƤ��������������ơ��椯�椯�Ϥ���������ĥ�� <I>contrib/</I> ���֥ǥ��쥯�ȥ����������뤳�Ȥˤʤ��Ǥ��礦��
@ -1227,6 +1215,39 @@ PostgreSQL 7.1
<small><PRE>
[������
���ܸ��Ǥ������ˤĤ��Ƥϰʲ����̤��Ǥ���
�ǽ�������: 2001ǯ07��05��
������: ��¼ �� (<A HREF="mailto:juk@jp.postgresql.org">Jun Kuwamura &lt;juk@jp.postgresql.org&gt;</A>)
����FAQ�������κ����ˤ����궨�Ϥ򤷤Ƥ������ä�����(�ɾΤ�ά�����Ƥ��������ޤ�):
���� ̭(<A HREF="mailto:Tanaka.Minoru@keiken.co.jp">Minoru Tanaka &lt;Tanaka.Minoru@keiken.co.jp&gt;</A>)
�а� ã��(<A HREF="mailto:t-ishii@sra.co.jp">Tatsuo Ishii &lt;t-ishii@sra.co.jp&gt;</A>)
��ƣ �ο�(<A HREF="mailto:tomos@elelab.nsc.co.jp">Tomohito Saitoh &lt;tomos@elelab.nsc.co.jp&gt;</A>)
�Ͼ� ȥ(<A HREF="mailto:baba@kusastro.kyoto-u.ac.jp">Hajime Baba &lt;baba@kusastro.kyoto-u.ac.jp&gt;</A>)
���� �칬(<A HREF="mailto:kokamoto@itg.hitachi.co.jp">Kazuyuki Okamoto &lt;kokamoto@itg.hitachi.co.jp&gt;</A>)
���� ����(<A HREF="mailto:s-kosuge@str.hitachi.co.jp">Shoichi Kosuge &lt;s-kosuge@str.hitachi.co.jp&gt;</A>)
���� ��Ƿ(<A HREF="mailto:dica@eurus.dti.ne.jp">Yoshiyuki Yamashita &lt;dica@eurus.dti.ne.jp&gt;</A>)
�� ����Ϻ(<A HREF="mailto:s_sakai@mxn.mesh.ne.jp">Sintaro Sakai &lt;s_sakai@mxn.mesh.ne.jp&gt;</A>)
���� ����(<A HREF="mailto:ogochan@zetabits.com">Masami Ogoshi &lt;ogochan@zetabits.com&gt;</A>)
���� �ӹ�(<A HREF="mailto:tosiyuki@gol.com">Toshiyuki Ishikawa &lt;tosiyuki@gol.com&gt;</A>)
���� �й�(<A HREF="mailto:fwif0083@mb.infoweb.ne.jp">Shigehiro Honda &lt;fwif0083@mb.infoweb.ne.jp&gt;</A>)
���� ������(<A HREF="mailto:sesejun@linet.gr.jp">Jun Sese &lt;sesejun@linet.gr.jp&gt;</A>)
��ë �ѹ�(<A HREF="mailto:hkamiya@catvmics.ne.jp">Hidetaka Kamiya &lt;hkamiya@catvmics.ne.jp&gt;</A>)
���Ϥ��ᡢ�ݥ��ȥ��쥹�˴ؤ�������˭�٤�<A HREF="http://www.sra.co.jp/people/t-ishii/PostgreSQL/ML/info.html">���ܸ��ݥ��ȥ��쥹���᡼���󥰥ꥹ��</A>��
�����Τ��ä��������äƤ��줿 <A HREF="http://jf.linux.or.jp/">JF(Linux Japanese FAQ Mailing List)�ץ���������</A>������¾��
ľ�ܤ��뤤�ϴ���Ū�ˤ������äƤ��뤹�٤ƤΥ����ץ󥽡������ߥ��˥ƥ�����
�������˴��դ��ޤ���
���ܸ��ǤΤ���ʸ���ϡ��ʲ������⤿�ɤ��ޤ���
<A HREF="http://www.rccm.co.jp/~juk/pgsql/">http://www.rccm.co.jp/~juk/pgsql/</A>(FAQ���� PostgreSQL �ˤĤ��Ƥ褯��������)
<A HREF="http://www.linux.or.jp/JF/">http://www.linux.or.jp/JF/</A>(PostgreSQL-FAQ.j)
<A HREF="http://www.sra.co.jp/people/t-ishii/PostgreSQL/doc-jp/">http://www.sra.co.jp/people/t-ishii/PostgreSQL/doc-jp/</A>
�ʤ������������˴ؤ��뤴�ո���(<A HREF="mailto:juk@jp.postgresql.org">juk@jp.postgresql.org</A>)�ޤǤ��󤻲�������
]
</PRE></small>

View File

@ -8,17 +8,22 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.62 2001/08/17 15:44:17 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.63 2001/08/21 00:33:27 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "postgres.h"
#include <sys/types.h> /* needed by in.h on Ultrix */
#include <sys/types.h>
#include <sys/socket.h> /* for SCM_CREDS */
#ifdef SCM_CREDS
#include <sys/uio.h> /* for struct iovec */
#include <sys/ucred.h>
#include <errno.h>
#endif
#include <netinet/in.h>
#include <arpa/inet.h>
#include "libpq/auth.h"
#include "libpq/crypt.h"
#include "libpq/hba.h"
@ -28,12 +33,10 @@
#include "miscadmin.h"
static void sendAuthRequest(Port *port, AuthRequest areq);
static int checkPassword(Port *port, char *user, char *password);
static int old_be_recvauth(Port *port);
static int map_old_to_new(Port *port, UserAuth old, int status);
static void auth_failed(Port *port);
static int recv_and_check_password_packet(Port *port);
static int recv_and_check_passwordv0(Port *port);
@ -493,6 +496,26 @@ ClientAuthentication(Port *port)
break;
case uaIdent:
#if !defined(SO_PEERCRED) && defined(SCM_CREDS)
/*
* If we are doing ident on unix-domain sockets,
* use SCM_CREDS only if it is defined and SO_PEERCRED isn't.
*/
#ifdef fc_uid
/* Receive credentials on next message receipt, BSD/OS */
{
int on = 1;
if (setsockopt(port->sock, 0, LOCAL_CREDS, &on, sizeof(on)) < 0)
{
elog(FATAL,
"pg_local_sendauth: can't do setsockopt: %s\n", strerror(errno));
return;
}
}
#endif
if (port->raddr.sa.sa_family == AF_UNIX)
sendAuthRequest(port, AUTH_REQ_SCM_CREDS);
#endif
status = authident(port);
break;
@ -676,3 +699,4 @@ map_old_to_new(Port *port, UserAuth old, int status)
return status;
}

View File

@ -10,7 +10,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/libpq/hba.c,v 1.64 2001/08/16 16:24:15 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/libpq/hba.c,v 1.65 2001/08/21 00:33:27 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -18,9 +18,13 @@
#include <errno.h>
#include <pwd.h>
#include <sys/types.h>
#include <fcntl.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/socket.h> /* for SCM_CREDS */
#ifdef SCM_CREDS
#include <sys/uio.h> /* for struct iovec */
#include <sys/ucred.h>
#endif
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
@ -876,39 +880,103 @@ ident_unix(int sock, char *ident_user)
{
/* We didn't get a valid credentials struct. */
snprintf(PQerrormsg, PQERRORMSG_LENGTH,
"Could not get valid credentials from the UNIX socket: %s\n",
"ident_unix: error receiving credentials: %s\n",
strerror(errno));
fputs(PQerrormsg, stderr);
pqdebug("%s", PQerrormsg);
return false;
}
/* Convert UID to user login name */
pass = getpwuid(peercred.uid);
if (pass == NULL)
{
/* Error - no username with the given uid */
snprintf(PQerrormsg, PQERRORMSG_LENGTH,
"There is no entry in /etc/passwd with the socket's uid\n");
"ident_unix: unknown local user with uid %d\n",
fputs(PQerrormsg, stderr);
pqdebug("%s", PQerrormsg);
return false;
}
StrNCpy(ident_user, pass->pw_name, IDENT_USERNAME_MAX);
StrNCpy(ident_user, pass->pw_name, IDENT_USERNAME_MAX+1);
return true;
#else /* not SO_PEERCRED */
#elif defined(SCM_CREDS)
struct msghdr msg;
/* Credentials structure */
#ifndef fc_uid
typedef struct cmsgcred Cred;
#define cruid cmcred_uid
#else
typedef struct fcred Cred;
#define cruid fc_uid
#endif
Cred *cred;
/* Compute size without padding */
char cmsgmem[sizeof(struct cmsghdr) + sizeof(Cred)];
/* Point to start of first structure */
struct cmsghdr *cmsg = (struct cmsghdr *)cmsgmem;
struct iovec iov;
char buf;
struct passwd *pw;
memset(&msg, 0, sizeof(msg));
msg.msg_iov = &iov;
msg.msg_iovlen = 1;
msg.msg_control = (char *)cmsg;
msg.msg_controllen = sizeof(cmsgmem);
memset(cmsg, 0, sizeof(cmsgmem));
/*
* The one character which is received here is not meaningful;
* its purposes is only to make sure that recvmsg() blocks
* long enough for the other side to send its credentials.
*/
iov.iov_base = &buf;
iov.iov_len = 1;
if (recvmsg(sock, &msg, 0) < 0 ||
cmsg->cmsg_len < sizeof(cmsgmem) ||
cmsg->cmsg_type != SCM_CREDS)
{
snprintf(PQerrormsg, PQERRORMSG_LENGTH,
"ident_unix: error receiving credentials: %s\n",
strerror(errno));
fputs(PQerrormsg, stderr);
pqdebug("%s", PQerrormsg);
return false;
}
cred = (Cred *)CMSG_DATA(cmsg);
pw = getpwuid(cred->fc_uid);
if (pw == NULL)
{
snprintf(PQerrormsg, PQERRORMSG_LENGTH,
"ident_unix: unknown local user with uid %d\n",
cred->fc_uid);
fputs(PQerrormsg, stderr);
pqdebug("%s", PQerrormsg);
return false;
}
StrNCpy(ident_user, pw->pw_name, IDENT_USERNAME_MAX+1);
return true;
#else
snprintf(PQerrormsg, PQERRORMSG_LENGTH,
"IDENT auth is not supported on local connections on this platform\n");
"'ident' auth is not supported on local connections on this platform\n");
fputs(PQerrormsg, stderr);
pqdebug("%s", PQerrormsg);
return false;
#endif /* SO_PEERCRED */
#endif
}
/*

View File

@ -127,12 +127,12 @@
# ident: For TCP/IP connections, authentication is done by contacting
# the ident server on the client host. (CAUTION: this is only
# as secure as the client machine!) On machines that support
# SO_PEERCRED socket requests, this method also works for
# local Unix-domain connections. AUTH_ARGUMENT is required:
# it determines how to map remote user names to Postgres user
# names. The AUTH_ARGUMENT is a map name found in the
# $PGDATA/pg_ident.conf file. The connection is accepted if
# that file contains an entry for this map name with the
# SO_PEERCRED or SCM_CREDS socket requests, this method also
# works for local Unix-domain connections. AUTH_ARGUMENT is
# required: it determines how to map remote user names to
# Postgres user names. The AUTH_ARGUMENT is a map name found
# in the $PGDATA/pg_ident.conf file. The connection is accepted
# if that file contains an entry for this map name with the
# ident-supplied username and the requested Postgres username.
# The special map name "sameuser" indicates an implied map
# (not in pg_ident.conf) that maps each ident username to the

View File

@ -9,7 +9,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: pqcomm.h,v 1.57 2001/08/16 04:27:18 momjian Exp $
* $Id: pqcomm.h,v 1.58 2001/08/21 00:33:27 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -133,6 +133,7 @@ typedef struct StartupPacket
#define AUTH_REQ_PASSWORD 3 /* Password */
#define AUTH_REQ_CRYPT 4 /* crypt password */
#define AUTH_REQ_MD5 5 /* md5 password */
#define AUTH_REQ_SCM_CREDS 6 /* transfer SCM credentials */
typedef uint32 AuthRequest;

View File

@ -10,7 +10,7 @@
* exceed INITIAL_EXPBUFFER_SIZE (currently 256 bytes).
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-auth.c,v 1.55 2001/08/17 15:40:07 momjian Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-auth.c,v 1.56 2001/08/21 00:33:27 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -30,6 +30,7 @@
#include "postgres_fe.h"
/* XXX is there a reason these appear before the system defines? */
#include "libpq-fe.h"
#include "libpq-int.h"
#include "fe-auth.h"
@ -40,6 +41,13 @@
#else
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/socket.h> /* for SCM_CREDS */
#ifdef SCM_CREDS
#include <sys/uio.h> /* for struct iovec */
#include <sys/ucred.h>
#endif
#include <sys/param.h> /* for MAXHOSTNAMELEN on most */
#ifndef MAXHOSTNAMELEN
#include <netdb.h> /* for MAXHOSTNAMELEN on some */
@ -428,6 +436,53 @@ pg_krb5_sendauth(char *PQerrormsg, int sock,
#endif /* KRB5 */
#ifdef SCM_CREDS
static int
pg_local_sendauth(char *PQerrormsg, PGconn *conn)
{
char buf;
struct iovec iov;
struct msghdr msg;
#ifndef fc_uid
/* Prevent padding */
char cmsgmem[sizeof(struct cmsghdr) + sizeof(struct cmsgcred)];
/* Point to start of first structure */
struct cmsghdr *cmsg = (struct cmsghdr *)cmsgmem;
#endif
/*
* The backend doesn't care what we send here, but it wants
* exactly one character to force recvmsg() to block and wait
* for us.
*/
buf = '\0';
iov.iov_base = &buf;
iov.iov_len = 1;
memset(&msg, 0, sizeof(msg));
msg.msg_iov = &iov;
msg.msg_iovlen = 1;
#ifndef fc_uid
/* Create control header, FreeBSD */
msg.msg_control = cmsg;
msg.msg_controllen = sizeof(cmsgmem);
memset(cmsg, 0, sizeof(cmsgmem));
cmsg.hdr.cmsg_len = sizeof(cmsgmem);
cmsg.hdr.cmsg_level = SOL_SOCKET;
cmsg.hdr.cmsg_type = SCM_CREDS;
#endif
if (sendmsg(conn->sock, &msg, 0) == -1)
{
snprintf(PQerrormsg, PQERRORMSG_LENGTH,
"pg_local_sendauth: sendmsg: %s\n", strerror(errno));
return STATUS_ERROR;
}
return STATUS_OK;
}
#endif
static int
pg_password_sendauth(PGconn *conn, const char *password, AuthRequest areq)
{
@ -473,12 +528,13 @@ pg_password_sendauth(PGconn *conn, const char *password, AuthRequest areq)
crypt_pwd = crypt(password, salt);
break;
}
default:
case AUTH_REQ_PASSWORD:
/* discard const so we can assign it */
crypt_pwd = (char *)password;
break;
default:
return STATUS_ERROR;
}
ret = pqPacketSend(conn, crypt_pwd, strlen(crypt_pwd) + 1);
if (areq == AUTH_REQ_MD5)
free(crypt_pwd);
@ -551,6 +607,18 @@ fe_sendauth(AuthRequest areq, PGconn *conn, const char *hostname,
return STATUS_ERROR;
}
break;
case AUTH_REQ_SCM_CREDS:
#ifdef SCM_CREDS
if (pg_local_sendauth(PQerrormsg, conn) != STATUS_OK)
return STATUS_ERROR;
#else
snprintf(PQerrormsg, PQERRORMSG_LENGTH,
libpq_gettext("SCM_CRED authentication method not supported\n"));
return STATUS_ERROR;
#endif
break;
default:
snprintf(PQerrormsg, PQERRORMSG_LENGTH,
libpq_gettext("authentication method %u not supported\n"), areq);

View File

@ -726,6 +726,11 @@ CC_connect(ConnectionClass *self, char do_password)
self->errornumber = CONN_AUTH_TYPE_UNSUPPORTED;
return 0;
case AUTH_REQ_SCM_CREDS:
self->errormsg = "Unix socket credential authentication not supported";
self->errornumber = CONN_AUTH_TYPE_UNSUPPORTED;
return 0;
default:
self->errormsg = "Unknown authentication type";
self->errornumber = CONN_AUTH_TYPE_UNSUPPORTED;

View File

@ -94,6 +94,7 @@ typedef enum
#define AUTH_REQ_PASSWORD 3
#define AUTH_REQ_CRYPT 4
#define AUTH_REQ_MD5 5
#define AUTH_REQ_SCM_CREDS 6
/* Startup Packet sizes */
#define SM_DATABASE 64