aboutsummaryrefslogtreecommitdiff
path: root/contrib/pgstattuple/README.pgstattuple.euc_jp
blob: 5142e9b6a923afa4630f9380f1477d292175d0d0 (plain)
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
78
79
80
81
$Id: README.pgstattuple.euc_jp,v 1.2 2001/12/20 01:56:08 ishii Exp $

pgstattuple README		2001/10/01 �а�ã��

1. pgstattuple�Ȥ�

   pgstattuple�ϡ�UPDATE��DELETE�Ǻ��줿�ơ��֥�Υ����ΰ���礭����
   �ơ��֥뼫�Τ�ʪ��Ū���礭�����Ф���ѡ�����ơ������ֵѤ��ޤ�����
   �ޤꡤ�ֵ��ͤ��礭����С�����������ߤ�¿���Τǡ�vacuum�򤫤���ɬ
   �פ�����Ȥ���Ƚ�Ǥν����ˤʤ�櫓�Ǥ���

   ��������ǤϾ����̤����ʤ��Τǡ�NOTICE��å������Ǥ�����ʾ�����
   ���Ǥ˽��Ϥ��ޤ���

test=# select pgstattuple('tellers');
NOTICE:  physical length: 0.08MB live tuples: 20 (0.00MB, 1.17%) dead tuples: 320 (0.01MB, 18.75%) free/reusable space: 0.01MB (18.06%) overhead: 62.02%
 pgstattuple 
-------------
       18.75
(1 row)

   ���μ¹���Ǥϡ�19%�ۤɤ����ߤˤʤäƤ��뤳�Ȥ��Ǥ��ޤ���NOTICE���
   �������θ�����񤤤Ƥ����ޤ���

   physical length	�ơ��֥��ʪ��Ū�ʥ�������MBñ�̤�ɽ��
   live tuples		���ߤǤϤʤ����ץ�˴ؤ�����󡥥��ץ������
			���ץ뤬�����ΰ�ι�ס��ơ��֥����Τ��Ф���
			��Ψ��ɽ�����ޤ���
   dead tuples		���ߤˤʤä����ץ�˴ؤ������
   free/reusable space	���Ѳ�ǽ��̤�����ΰ������Ѳ�ǽ�ΰ�
   overhead		�����Τ�����ΰ褬�ơ��֥����Τ�������Ψ

2. pgstattuple�Υ��󥹥ȡ���

   PostgreSQL��/usr/local/pgsql�˥��󥹥ȡ���ѤǤ��ꡤtest�ǡ����١�
   ����pgstattuple�򥤥󥹥ȡ��뤹����μ��򼨤��ޤ���

    $ make
    $ make install

    �桼������ؿ�����Ͽ���ޤ���

    $ psql -e -f /usr/local/pgsql/share/contrib/pgstattuple.sql test


3. pgstattuple�λȤ���

   pgstattuple�θƤӽФ������ϰʲ��Ǥ���

   pgstattuple(NAME) RETURNS FLOAT8

   ������: �ơ��֥�̾

   �ؿ�������UPDATE��DELETE�Ǻ��줿�ơ��֥�Υ����ΰ���礭���ǡ�
   �ơ��֥��ʪ��Ū���礭�����Ф�����(�ѡ������)���ֵѤ��ޤ���

   �ʤ���pgstattuple�ϥơ��֥��AccessShareLock���������ʤ��Τǡ�
   pgstattuple ��¹���˳����ơ��֥�˹���������ȯ������ȡ�������
   �ʤ���̤��֤���ǽ��������ޤ���

   pgstattuple�����ץ��֥��ߡפ�Ƚ�Ǥ�����ϡ�
   HeapTupleSatisfiesNow()�������֤����Ȥ��Ǥ���

4. pgstattuple�Υ饤���󥹾��ˤĤ���

   pgstattuple.c����Ƭ�˽񤤤Ƥ����̤�Ǥ����ޤ���pgstattuple �ϴ�����̵��
   �ڤǤ���pgstattuple ����Ѥ������Ȥˤ�ä������뤤���ʤ��̤˴ؤ���
   ����Ǥ���餤�ޤ���

5. ��������

   2001/12/20 Tom Lane�ˤ�뽤��

   	Fix pgstattuple to acquire a read lock on the target table.  This
	prevents embarassments such as having the table dropped or truncated
	partway through the scan.  Also, fix free space calculation to include
	pages that currently contain no tuples.

   2001/10/01 PostgreSQL 7.2 ��contrib module����Ͽ

   2001/08/30 pgstattuple �С������ 0.1��꡼��