PostgreSQL �ץ�����ޥ�����

The PostgreSQL Development Team

PostgreSQL ��ȯ������

Edited by

Thomas Lockhart

PostgreSQL
is Copyright © 1996-9 by the Postgres Global Development Group.

PostgreSQL
���Ǹ� © 1996-9 �� Postgres �������Х볫ȯ���롼�פ˵�°���ޤ���


Table of Contents
�ޤȤ�
1. �Ϥ����
�꥽����
Terminology
ɽ��
2000ǯ����
Copyrights and Trademarks
2. �������ƥ�����
Postgres�������ƥ�����γ�ǰ
3. SQL �γ�ĥ: ����
�ɤΤ褦�˳�ĥ��ǽ��ư���Τ�
Postgres �η������ƥ�
Postgres �����ƥ५�������ˤĤ���
4. SQL �γ�ĥ: �ؿ�
��礻���� (SQL) �ؿ�
���ܷ���Ȥä� SQL �ؿ�
ʣ�緿��Ȥä� SQL �ؿ�
�ץ�����ߥ󥰸���ؿ�
���ܷ�����Ѥ����ץ�����ߥ󥰸���ؿ�
ʣ�緿����Ѥ����ץ�����ߥ󥰸���ؿ�
����
5. SQL�γ�ĥ: ��
�桼�������
�桼���������ɬ�פʴؿ�
�顼�����֥�������
6. SQL �γ�ĥ: �黻��
�黻�Һ�Ŭ���˴ؤ������
COMMUTATOR
NEGATOR
RESTRICT
JOIN
HASHES
SORT1 and SORT2
7. SQL�γ�ĥ: ����
8. Postgres �Υ롼�륷���ƥ�
��礻�ĥ꡼�ˤĤ���
��礻�ĥ꡼�Υѡ���
�ӥ塼�ȥ롼�륷���ƥ�
Postgres �ˤ�����ӥ塼�μ���
SELECT �롼���ư��
�� SELECT ʸ�Υӥ塼�롼��
Postgres �ˤ����� View ��ǽ��
�����ˤ��������
INSERT�� UPDATE ����� DELETE �ˤĤ��ƤΥ롼��
�ӥ塼�롼����Ф��Ƥκ���
�����Υ롼���ư��k
�ӥ塼�Ȥζ�Ĵ
�롼��ȥѡ��ߥå����
�롼���Хȥꥬ
9. ����ǥå�����ĥ��ǽ�ؤΥ��󥿡��ե�����
10. GiST ����ǥå���
11. ��³������
��³������Υ��󥹥ȡ���
PL/pgSQL
����
����
��
PL/Tcl
����
����
12. ưŪ�����ɴؿ��Υ��
ULTRIX
DEC OSF/1
SunOS 4.x, Solaris 2.x and HP-UX
13. Triggers
�ȥꥬ��������
�ȥꥬ���ޥ͡�����Ȥδط�
�ǡ����ѹ����βĻ���
��
14. �����Хץ�����೫ȯ�ѥ��󥿥ե�����
���󥿥ե������ؿ�
SPI_connect — Connects your procedure to the SPI manager. �ϥ桼������Υץ���������� SPI �ޥ͡��������³���ޤ���
SPI_finish — Disconnects your procedure from the SPI manager. �桼������Υץ���������� SPI �ޥ͡����㤫�����Ǥ��ޤ���
SPI_exec — Creates an execution plan (parser+planner+optimizer) and executes a query. �¹Էײ�ʥѡ���+�ץ���+���ץƥ��ޥ����ˤ����������䤤��碌�� �¹Ԥ��ޤ���
SPI_prepare — Connects your procedure to the SPI manager. �桼������Υץ����������SPI�ޥ͡��������³���ޤ���
SPI_saveplan — Saves a passed plan �Ϥ��줿�ײ����¸���ޤ���
SPI_execp — Executes a plan from SPI_saveplan SPI_saveplan �ˤ�ä�������ײ��¹Ԥ��ޤ���
���ݡ��ȴؿ��Υ��󥿥ե�����
SPI_copytuple — Makes copy of tuple in upper Executor context ��̥��������塼���Υ���ƥ�������Υ��ץ�Υ��ԡ���������ޤ���
SPI_modifytuple — Modifies tuple of relation ��졼�������Υ��ץ���ѹ����ޤ���
SPI_fnumber — Finds the attribute number for specified attribute ����°����°���ֹ�򸡺����ޤ���
SPI_fname — Finds the attribute name for the specified attribute ����°����°��̾�򸡺����ޤ���
SPI_getvalue — Returns the string value of the specified attribute ����°�����ͤ�ʸ����Ȥ����֤��ޤ���
SPI_getbinval — Returns the binary value of the specified attribute ����°���ΥХ��ʥ��ͤ��֤��ޤ���
SPI_gettype — Returns the type name of the specified attribute ����°���η�̾���֤��ޤ���
SPI_gettypeid — Returns the type OID of the specified attribute ����°���� OID �����֤��ޤ���
SPI_getrelname — Returns the name of the specified relation �����졼������̾�����֤��ޤ���
SPI_palloc — Allocates memory in upper Executor context ��̥��������塼���Υ���ƥ�������˥���������Ƥޤ���
SPI_repalloc — Re-allocates memory in upper Executor context ��̥��������塼����Υ���κƳ�����Ƥ�Ԥʤ��ޤ���
SPI_pfree — Frees memory from upper Executor context ��̥��������塼���Υ���ƥ����ȤΥ���������ޤ���
�������
�ǡ����ѹ��βĻ���
��
15. �顼�����֥�������
��������
ž�֥顼�����֥�������
�顼�����֥������ȡ����󥿥ե�����
�顼�����֥������Ȥκ���
�顼�����֥������ȤΥ���ݡ���
�顼�����֥������ȤΥ������ݡ���
��¸�顼�����֥������Ȥ򳫤�
�顼�����֥������Ȥ˥ǡ������
�顼�����֥������ȤΥ�����
�顼�����֥������ȵ��һҤ��Ĥ���
�Ȥ߹��ߺѤߤ���Ͽ���줿�ؿ�
LIBPQ ����Υ顼�����֥������ȤؤΥ�������
����ץ�ץ������
16. libpq
�ǡ����١�����³�ؿ�
�䤤��碌�¹Դؿ�
��Ʊ���䤤��碌����
��ƻ
��Ʊ������
COPY ���ޥ�ɤ˴�Ϣ�����ؿ�
libpq �ȥ졼���ؿ�
libpq ����ؿ�
�桼��ǧ�ڴؿ�
�Ķ��ѿ�
������
����ץ�ץ������
����ץ�ץ������ 1
����ץ�ץ������ 2
����ץ�ץ������ 3
17. libpq C++ �Х���ǥ���
����Ƚ����
�Ķ��ѿ�
libpq++ �Υ��饹
���ͥ�����󥯥饹�� PgConnection
�ǡ����١������饹�� PgDatabase
�ǡ����١�����³�ؿ�
�䤤��碌�¹Դؿ�
��Ʊ������
COPY ���ޥ�ɤ˴�Ϣ�����ؿ�
������
18. pgtcl
���ޥ��
��
pgtcl ���ޥ�ɥ�ե���󥹾���
pg_connect — �Хå�����ɥ����ФȤ���³�򳫤��ޤ���
pg_disconnect — closes a connection to the backend server�Хå�����ɥ����ФȤ���³���Ĥ��ޤ���
pg_conndefaults — obtain information about default connection parameters�ǥե���Ȥ���³�ѥ�᡼���ˤĤ��Ƥξ�������ꤷ�ޤ���
pg_exec — send a query string to the backend �Хå�����ɤ��䤤��碌���������ޤ���
pg_result — get information about a query result�䤤��碌��̤ˤĤ��Ƥξ�������ޤ���
pg_select — loop over the result of a SELECT statementSELECT ʸ�η�̤򷫤��֤��������ޤ���
pg_listen — sets or changes a callback for asynchronous NOTIFY messages��Ʊ�� NOTIFY ��å������ѤΥ�����Хå�������ޤ����ѹ����ޤ���
pg_lo_creat — create a large object�顼�����֥������Ȥ�������ޤ���
pg_lo_open — open a large object�顼�����֥������Ȥ򳫤��ޤ���
pg_lo_close — close a large object�顼�����֥������Ȥ��Ĥ��ޤ���
pg_lo_read — read a large object�顼�����֥������Ȥ��ɤ߹��ߤޤ���
pg_lo_write — write a large object�顼�����֥������Ȥ˽񤭹��ߤޤ���
pg_lo_lseek — seek to a position in a large object�顼�����֥������Ȥΰ��֤򥷡������ޤ���
pg_lo_tell — return the current seek position of a large object���ߤΥ顼�����֥������ȤΥ��������֤��֤��ޤ�
pg_lo_unlink — delete a large object�顼�����֥������Ȥ������ޤ���
pg_lo_import — import a large object from a Unix fileUnix �ե����뤫��顼�����֥������Ȥ򥤥�ݡ��Ȥ��ޤ���
pg_lo_export — export a large object to a Unix file�顼�����֥������Ȥ� Unix �ե�����˥������ݡ��Ȥ��ޤ���
19. ecpg - C ����ؤ� SQL ��������
�ʤ������� SQL �ʤΤ���
���󥻥ץ�
ecpg �λȤ���
�ץ�ץ����å�
�饤�֥��
���顼����
���»���
¾�� RDBMS �ѥå���������ΰܿ�
���󥹥ȡ���
��ȯ�Ԥ����Τ����
���夷�ʤ���Фʤ�ʤ�����
�ץ�ץ����å�
������
�饤�֥��
20. ODBC ���󥿡��ե�����
�ط�
Windows ���ץꥱ�������
���ץꥱ�������κ���
Unix �ؤΥ��󥹥ȡ���
�ɥ饤�Фι���
����ե�����졼����� �ե�����
ApplixWare
����
�褯��������
ApplixWare ODBC ��³�ΥǥХå���
ApplixWare �ǥ�μ¹�
�����ʥޥ���
���ݡ��ȺѤߥץ�åȥۡ���
21. JDBC ���󥿥ե�����
JDBC ���󥿥ե������ι���
�ɥ饤�ФΥ���ѥ���
�ɥ饤�ФΥ��󥹥ȡ���
JDBC �Τ���Υǡ����١����ν���
�ɥ饤�Фλ���
JDBC �� ����ݡ���
�ɥ饤�Ф��ɤ߹���
�ǡ����١����ؤ���³
�䤤��碌��ȯ�ԡ��ڤӡ���̤ν���
Statement ���󥿥ե������λ���
ResultSet ���󥿥ե������λ���
��������
��³���Ĥ���
�顼�����֥������Ȥλ���
Postgres �� JDBC API �ؤγ�ĥ
������ɤ�٤����
22. PostgreSQL ������¤�γ���
��礻�Υѥ�
��³�γ�Ω
�ѡ������ơ���
�ѡ���
�Ѵ��ץ�����
Postgres �� rule �����ƥ�
�񤭴��������ƥ�
�ץ���/���ץƥ��ޥ���
��ǽ���Τ���ץ�������
�ץ��Υǡ�����¤
���������塼��
23. pg_options
24. �ǡ����١��������ƥ�ˤ��������Ū�䤤��碌��Ŭ��
ʣ���ʺ�Ŭ������Ȥ��Ƥ��䤤��碌��������
����Ū���르�ꥺ�� (GA)
Postgres �ˤ��������Ū�䤤��碌��Ŭ����GEQO��
Postgres GEQO �ˤ��� �뺣��μ������
����Ū�ʲ���
���ͻ���
25. �ե���ȥ����/�Хå������ �ץ��ȥ���
����
�ץ��ȥ���
����
�䤤��碌
�ؿ��ƤӽФ�
�����
������ꥯ�����Ȥμ��
��λ
��å������Υǡ�����
����������
26. Postgres �Υ����ʥ�
27. gcc �Υǥե�����ͤκ�Ŭ��
28. �Хå�����ɥ��󥿡��ե�����
BKI �ե�����ե����ޥå�
���ѥ��ޥ��
�ޥ������ޥ��
�ǥХå�̿��
��
29. �ڡ����ե�����
�ڡ�����¤
�ե�����
������
DG1. The CVS ��ݥ��ȥ���֤�����
CVS �Υĥ꡼��¤
ƿ̾(anonymous) CVS ���̤��ƥ� �������������
CVSup ��ͳ�ǥ��������äƤ���
CVSup ���饤����ȥ����ƥ�� ����
CVSup ���饤����Ȥ�ư����
CVSup �򥤥󥹥ȡ��뤹��
����������Υ��󥹥ȡ���
DG2. ʸ��
ʸ�񲽤˴ؤ�������ɥޥå�
ʸ�񲽥ץ���������
ʸ���ѥ�����
ʸ��ι�¤
ʸ���ѥե�����
ʸ����Ѵ�
��������ȵ���
SGML �����ѥġ���
ʸ��ι���
�ޥ˥奢��ڡ���
�С������ 6.5 �Ѥΰ���ʪ������
�ƥ����ȷ����ΰ���ʪ
�ݥ��ȥ�����ץȷ����ΰ���ʪ
�ġ��륻�å�
Linux �Ǥ� RPM ��Ȥä����󥹥ȡ���
�ġ���Υޥ˥奢�륤�󥹥ȡ���
�̤Υġ��륭�å�
Bibliography
Title information 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:"./reference.ced" sgml-exposed-tags:nil sgml-local-catalogs:"/usr/lib/sgml/CATALOG" sgml-local-ecat-files:nil End: Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:nil 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:"./reference.ced" sgml-exposed-tags:nil sgml-local-catalogs:"/usr/lib/sgml/catalog" sgml-local-ecat-files:nil End: