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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
|
<appendix id="glossary">
<title>Glossary</title>
<para>
This is a list of terms and their meaning in the context of
<productname>PostgreSQL</productname> and relational database
systems in general.
</para>
<glosslist>
<glossentry id="glossary-acid">
<glossterm>ACID</glossterm>
<glossdef>
<para>
<glossterm linkend="glossary-atomicity">Atomicity</glossterm>,
<glossterm linkend="glossary-consistency">Consistency</glossterm>,
<glossterm linkend="glossary-isolation">Isolation</glossterm>, and
<glossterm linkend="glossary-durability">Durability</glossterm>.
This set of properties of database transactions is intended to
guarantee validity in concurrent operation and even in event of
errors, power failures, etc.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-aggregate">
<glossterm>Aggregate function (routine)</glossterm>
<glossdef>
<para>
A <glossterm linkend="glossary-function">function</glossterm> that
combines (<firstterm>aggregates</firstterm>) multiple input values,
for example by counting, averaging or adding,
yielding a single output value.
</para>
<para>
For more information, see
<xref linkend="functions-aggregate"/>.
</para>
<glossseealso otherterm="glossary-window-function" />
</glossdef>
</glossentry>
<glossentry>
<glossterm>Analytic function</glossterm>
<glosssee otherterm="glossary-window-function" />
</glossentry>
<glossentry id="glossary-analyze">
<glossterm>Analyze (operation)</glossterm>
<glossdef>
<para>
The act of collecting statistics from data in
<glossterm linkend="glossary-table">tables</glossterm>
and other <glossterm linkend="glossary-relation">relations</glossterm>
to help the <glossterm linkend="glossary-planner">query planner</glossterm>
to make decisions about how to execute
<glossterm linkend="glossary-query">queries</glossterm>.
</para>
<para>
(Don't confuse this term with the <literal>ANALYZE</literal> option
to the <xref linkend="sql-explain"/> command.)
</para>
<para>
For more information, see
<xref linkend="sql-analyze"/>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-atomic">
<glossterm>Atomic</glossterm>
<glossdef>
<para>
In reference to a <glossterm linkend="glossary-datum">datum</glossterm>:
the fact that its value cannot be broken down into smaller
components.
</para>
</glossdef>
<glossdef>
<para>
In reference to a
<glossterm linkend="glossary-transaction">database transaction</glossterm>:
see <glossterm linkend="glossary-atomicity">atomicity</glossterm>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-atomicity">
<glossterm>Atomicity</glossterm>
<glossdef>
<para>
The property of a <glossterm linkend="glossary-transaction">transaction</glossterm>
that either all its operations complete as a single unit or none do.
In addition, if a system failure occurs during the execution of a
transaction, no partial results are visible after recovery.
This is one of the <acronym>ACID</acronym> properties.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-attribute">
<glossterm>Attribute</glossterm>
<glossdef>
<para>
An element with a certain name and data type found within a
<glossterm linkend="glossary-tuple">tuple</glossterm>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-autovacuum">
<glossterm>Autovacuum (process)</glossterm>
<glossdef>
<para>
A set of background processes that routinely perform
<glossterm linkend="glossary-vacuum">vacuum</glossterm>
and <glossterm linkend="glossary-analyze">analyze</glossterm> operations.
The <glossterm linkend="glossary-auxiliary-proc">auxiliary process</glossterm>
that coordinates the work and is always present (unless autovacuum
is disabled) is known as the <firstterm>autovacuum launcher</firstterm>,
and the processes that carry out the tasks are known as the
<firstterm>autovacuum workers</firstterm>.
</para>
<para>
For more information, see
<xref linkend="autovacuum"/>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-auxiliary-proc">
<glossterm>Auxiliary process</glossterm>
<glossdef>
<para>
A process within an <glossterm linkend="glossary-instance">instance</glossterm>
that is in charge of some specific background task for the instance.
The auxiliary processes consist of <!-- in alphabetical order -->
<!-- NB: In the code, the autovac launcher doesn't use the auxiliary
process scaffolding; however it does behave as one so we list it
here anyway. In addition, logger isn't connected to shared memory so
most code outside postmaster.c doesn't even consider it a "proc" in
the first place.
-->
the <glossterm linkend="glossary-autovacuum">autovacuum launcher</glossterm>
(but not the autovacuum workers),
the <glossterm linkend="glossary-background-writer">background writer</glossterm>,
the <glossterm linkend="glossary-checkpointer">checkpointer</glossterm>,
the <glossterm linkend="glossary-logger">logger</glossterm>,
the <glossterm linkend="glossary-startup-process">startup process</glossterm>,
the <glossterm linkend="glossary-wal-archiver">WAL archiver</glossterm>,
the <glossterm linkend="glossary-wal-receiver">WAL receiver</glossterm>
(but not the <glossterm linkend="glossary-wal-sender">WAL senders</glossterm>),
and the <glossterm linkend="glossary-wal-writer">WAL writer</glossterm>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-backend">
<glossterm>Backend (process)</glossterm>
<glossdef>
<para>
Process of an <glossterm linkend="glossary-instance">instance</glossterm>
which acts on behalf of a <glossterm linkend="glossary-session">client session</glossterm>
and handles its requests.
</para>
<para>
(Don't confuse this term with the similar terms
<glossterm linkend="glossary-background-worker">Background Worker</glossterm> or
<glossterm linkend="glossary-background-writer">Background Writer</glossterm>).
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-background-worker">
<glossterm>Background worker (process)</glossterm>
<glossdef>
<para>
Process within an <glossterm linkend="glossary-instance">instance</glossterm>,
which runs system- or user-supplied code.
Serves as infrastructure for several features in
<productname>PostgreSQL</productname>, such as
<glossterm linkend="glossary-replication">logical replication</glossterm>
and <glossterm linkend="glossary-parallel-query">parallel queries</glossterm>.
In addition, <glossterm linkend="glossary-extension">Extensions</glossterm> can add
custom background worker processes.
</para>
<para>
For more information, see
<xref linkend="bgworker"/>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-background-writer">
<glossterm>Background writer (process)</glossterm>
<glossdef>
<para>
An <glossterm linkend="glossary-auxiliary-proc">auxiliary process</glossterm>
that writes dirty
<glossterm linkend="glossary-data-page">data pages</glossterm> from
<glossterm linkend="glossary-shared-memory">shared memory</glossterm> to
the file system. It wakes up periodically, but works only for a short
period in order to distribute its expensive <acronym>I/O</acronym>
activity over time to avoid generating larger
<acronym>I/O</acronym> peaks which could block other processes.
</para>
<para>
For more information, see
<xref linkend="runtime-config-resource-background-writer"/>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-basebackup">
<glossterm>Base Backup</glossterm>
<glossdef>
<para>
A binary copy of all
<glossterm linkend="glossary-db-cluster">database cluster</glossterm>
files. It is generated by the tool <xref linkend="app-pgbasebackup"/>.
In combination with WAL files it can be used as the starting point
for recovery, log shipping, or streaming replication.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-bloat">
<glossterm>Bloat</glossterm>
<glossdef>
<para>
Space in data pages which does not contain current row versions,
such as unused (free) space or outdated row versions.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-cast">
<glossterm>Cast</glossterm>
<glossdef>
<para>
A conversion of a <glossterm linkend="glossary-datum">datum</glossterm>
from its current data type to another data type.
</para>
<para>
For more information, see
<xref linkend="sql-createcast"/>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-catalog">
<glossterm>Catalog</glossterm>
<glossdef>
<para>
The <acronym>SQL</acronym> standard uses this term to
indicate what is called a
<glossterm linkend="glossary-database">database</glossterm> in
<productname>PostgreSQL</productname>'s terminology.
</para>
<para>
(Don't confuse this term with
<glossterm linkend="glossary-system-catalog">system catalog</glossterm>).
</para>
<para>
For more information, see
<xref linkend="manage-ag-overview"/>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-check-constraint">
<glossterm>Check constraint</glossterm>
<glossdef>
<para>
A type of <glossterm linkend="glossary-constraint">constraint</glossterm>
defined on a <glossterm linkend="glossary-relation">relation</glossterm>
which restricts the values allowed in one or more
<glossterm linkend="glossary-attribute">attributes</glossterm>. The
check constraint can make reference to any attribute of the same row in
the relation, but cannot reference other rows of the same relation or
other relations.
</para>
<para>
For more information, see
<xref linkend="ddl-constraints"/>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-checkpoint">
<glossterm>Checkpoint</glossterm>
<glossdef>
<para>
A point in the <glossterm linkend="glossary-wal">WAL</glossterm> sequence
at which it is guaranteed that the heap and index data files have been
updated with all information from
<glossterm linkend="glossary-shared-memory">shared memory</glossterm>
modified before that checkpoint;
a <firstterm>checkpoint record</firstterm> is written and flushed to WAL
to mark that point.
</para>
<para>
A checkpoint is also the act of carrying out all the actions that
are necessary to reach a checkpoint as defined above.
This process is initiated when predefined conditions are met,
such as a specified amount of time has passed, or a certain volume
of records has been written; or it can be invoked by the user
with the command <command>CHECKPOINT</command>.
</para>
<para>
For more information, see
<xref linkend="wal-configuration"/>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-checkpointer">
<glossterm>Checkpointer (process)</glossterm>
<glossdef>
<para>
An <glossterm linkend="glossary-auxiliary-proc">auxiliary process</glossterm>
that is responsible for executing
<glossterm linkend="glossary-checkpoint">checkpoints</glossterm>.
</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm>Class (archaic)</glossterm>
<glosssee otherterm="glossary-relation" />
</glossentry>
<glossentry id="glossary-client">
<glossterm>Client (process)</glossterm>
<glossdef>
<para>
Any process, possibly remote, that establishes a
<glossterm linkend="glossary-session">session</glossterm>
by <glossterm linkend="glossary-connection">connecting</glossterm> to an
<glossterm linkend="glossary-instance">instance</glossterm>
to interact with a <glossterm linkend="glossary-database">database</glossterm>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-column">
<glossterm>Column</glossterm>
<glossdef>
<para>
An <glossterm linkend="glossary-attribute">attribute</glossterm> found in
a <glossterm linkend="glossary-table">table</glossterm> or
<glossterm linkend="glossary-view">view</glossterm>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-commit">
<glossterm>Commit</glossterm>
<glossdef>
<para>
The act of finalizing a
<glossterm linkend="glossary-transaction">transaction</glossterm> within
the <glossterm linkend="glossary-database">database</glossterm>, which
makes it visible to other transactions and assures its
<glossterm linkend="glossary-durability">durability</glossterm>.
</para>
<para>
For more information, see
<xref linkend="sql-commit"/>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-concurrency">
<glossterm>Concurrency</glossterm>
<glossdef>
<para>
The concept that multiple independent operations happen within the
<glossterm linkend="glossary-database">database</glossterm> at the same time.
In <productname>PostgreSQL</productname>, concurrency is controlled by
the <glossterm linkend="glossary-mvcc">multiversion concurrency control</glossterm>
mechanism.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-connection">
<glossterm>Connection</glossterm>
<glossdef>
<para>
An established line of communication between a client process and a
<glossterm linkend="glossary-backend">backend</glossterm> process,
usually over a network, supporting a
<glossterm linkend="glossary-session">session</glossterm>. This term is
sometimes used as a synonym for session.
</para>
<para>
For more information, see
<xref linkend="runtime-config-connection"/>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-consistency">
<glossterm>Consistency</glossterm>
<glossdef>
<para>
The property that the data in the
<glossterm linkend="glossary-database">database</glossterm>
is always in compliance with
<glossterm linkend="glossary-constraint">integrity constraints</glossterm>.
Transactions may be allowed to violate some of the constraints
transiently before it commits, but if such violations are not resolved
by the time it commits, such a transaction is automatically
<glossterm linkend="glossary-rollback">rolled back</glossterm>.
This is one of the <acronym>ACID</acronym> properties.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-constraint">
<glossterm>Constraint</glossterm>
<glossdef>
<para>
A restriction on the values of data allowed within a
<glossterm linkend="glossary-table">table</glossterm>,
or in attributes of a
<glossterm linkend="glossary-domain">domain</glossterm>.
</para>
<para>
For more information, see
<xref linkend="ddl-constraints"/>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-cumulative-statistics">
<glossterm>Cumulative Statistics System</glossterm>
<glossdef>
<para>
A system which, if enabled, accumulates statistical information
about the <glossterm linkend="glossary-instance">instance</glossterm>'s
activities.
</para>
<para>
For more information, see
<xref linkend="monitoring-stats"/>.
</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm>Data area</glossterm>
<glosssee otherterm="glossary-data-directory" />
</glossentry>
<glossentry id="glossary-database">
<glossterm>Database</glossterm>
<glossdef>
<para>
A named collection of
<glossterm linkend="glossary-sql-object">local SQL objects</glossterm>.
</para>
<para>
For more information, see
<xref linkend="manage-ag-overview"/>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-db-cluster">
<glossterm>Database cluster</glossterm>
<glossdef>
<para>
A collection of databases and global SQL objects,
and their common static and dynamic metadata.
Sometimes referred to as a
<firstterm>cluster</firstterm>.
</para>
<para>
In <productname>PostgreSQL</productname>, the term
<firstterm>cluster</firstterm> is also sometimes used to refer to an instance.
(Don't confuse this term with the SQL command <command>CLUSTER</command>.)
</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm>Database server</glossterm>
<glosssee otherterm="glossary-instance" />
</glossentry>
<glossentry id="glossary-data-directory">
<glossterm>Data directory</glossterm>
<glossdef>
<para>
The base directory on the file system of a
<glossterm linkend="glossary-server">server</glossterm> that contains all
data files and subdirectories associated with a
<glossterm linkend="glossary-db-cluster">database cluster</glossterm>
(with the exception of
<glossterm linkend="glossary-tablespace">tablespaces</glossterm>,
and optionally <glossterm linkend="glossary-wal">WAL</glossterm>).
The environment variable <literal>PGDATA</literal> is commonly used to
refer to the data directory.
</para>
<para>
A <glossterm linkend="glossary-db-cluster">cluster</glossterm>'s storage
space comprises the data directory plus any additional tablespaces.
</para>
<para>
For more information, see
<xref linkend="storage-file-layout"/>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-data-page">
<glossterm>Data page</glossterm>
<glossdef>
<para>
The basic structure used to store relation data.
All pages are of the same size.
Data pages are typically stored on disk, each in a specific file,
and can be read to <glossterm linkend="glossary-shared-memory">shared buffers</glossterm>
where they can be modified, becoming
<firstterm>dirty</firstterm>. They become clean when written
to disk. New pages, which initially exist in memory only, are also
dirty until written.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-datum">
<glossterm>Datum</glossterm>
<glossdef>
<para>
The internal representation of one value of an <acronym>SQL</acronym>
data type.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-delete">
<glossterm>Delete</glossterm>
<glossdef>
<para>
An <acronym>SQL</acronym> command which removes
<glossterm linkend="glossary-tuple">rows</glossterm> from a given
<glossterm linkend="glossary-table">table</glossterm>
or <glossterm linkend="glossary-relation">relation</glossterm>.
</para>
<para>
For more information, see
<xref linkend="sql-delete"/>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-domain">
<glossterm>Domain</glossterm>
<glossdef>
<para>
A user-defined data type that is based on another underlying data type.
It acts the same as the underlying type except for possibly restricting
the set of allowed values.
</para>
<para>
For more information, see <xref linkend="domains"/>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-durability">
<glossterm>Durability</glossterm>
<glossdef>
<para>
The assurance that once a
<glossterm linkend="glossary-transaction">transaction</glossterm> has
been <glossterm linkend="glossary-commit">committed</glossterm>, the
changes remain even after a system failure or crash.
This is one of the <acronym>ACID</acronym> properties.
</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm>Epoch</glossterm>
<glosssee otherterm="glossary-xid" />
</glossentry>
<glossentry id="glossary-extension">
<glossterm>Extension</glossterm>
<glossdef>
<para>
A software add-on package that can be installed on an
<glossterm linkend="glossary-instance">instance</glossterm> to
get extra features.
</para>
<para>
For more information, see
<xref linkend="extend-extensions" />.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-file-segment">
<glossterm>File segment</glossterm>
<glossdef>
<para>
A physical file which stores data for a given
<glossterm linkend="glossary-relation">relation</glossterm>.
File segments are limited in size by a configuration value
(typically 1 gigabyte),
so if a relation exceeds that size, it is split into multiple segments.
</para>
<para>
For more information, see
<xref linkend="storage-file-layout"/>.
</para>
<para>
(Don't confuse this term with the similar term
<glossterm linkend="glossary-wal-file">WAL segment</glossterm>).
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-foreign-data-wrapper">
<glossterm>Foreign data wrapper</glossterm>
<glossdef>
<para>
A means of representing data that is not contained in the local
<glossterm linkend="glossary-database">database</glossterm> so that it appears as if were in local
<glossterm linkend="glossary-table">table(s)</glossterm>. With a foreign data wrapper it is
possible to define a <glossterm linkend="glossary-foreign-server">foreign server</glossterm> and
<glossterm linkend="glossary-foreign-table">foreign tables</glossterm>.
</para>
<para>
For more information, see
<xref linkend="sql-createforeigndatawrapper"/>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-foreign-key">
<glossterm>Foreign key</glossterm>
<glossdef>
<para>
A type of <glossterm linkend="glossary-constraint">constraint</glossterm>
defined on one or more <glossterm linkend="glossary-column">columns</glossterm>
in a <glossterm linkend="glossary-table">table</glossterm> which
requires the value(s) in those <glossterm linkend="glossary-column">columns</glossterm> to
identify zero or one <glossterm linkend="glossary-tuple">row</glossterm>
in another (or, infrequently, the same)
<glossterm linkend="glossary-table">table</glossterm>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-foreign-server">
<glossterm>Foreign server</glossterm>
<glossdef>
<para>
A named collection of
<glossterm linkend="glossary-foreign-table">foreign tables</glossterm> which
all use the same
<glossterm linkend="glossary-foreign-data-wrapper">foreign data wrapper</glossterm>
and have other configuration values in common.
</para>
<para>
For more information, see
<xref linkend="sql-createserver"/>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-foreign-table">
<glossterm>Foreign table (relation)</glossterm>
<glossdef>
<para>
A <glossterm linkend="glossary-relation">relation</glossterm> which appears to have
<glossterm linkend="glossary-tuple">rows</glossterm> and
<glossterm linkend="glossary-column">columns</glossterm> similar to a
regular <glossterm linkend="glossary-table">table</glossterm>, but will forward
requests for data through its
<glossterm linkend="glossary-foreign-data-wrapper">foreign data wrapper</glossterm>,
which will return <glossterm linkend="glossary-result-set">result sets</glossterm>
structured according to the definition of the
<glossterm linkend="glossary-foreign-table">foreign table</glossterm>.
</para>
<para>
For more information, see
<xref linkend="sql-createforeigntable"/>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-fork">
<glossterm>Fork</glossterm>
<glossdef>
<para>
Each of the separate segmented file sets in which a relation is stored.
The <firstterm>main fork</firstterm> is where the actual data resides.
There also exist two secondary forks for metadata:
the <glossterm linkend="glossary-fsm">free space map</glossterm>
and the <glossterm linkend="glossary-vm">visibility map</glossterm>.
<glossterm linkend="glossary-unlogged">Unlogged relations</glossterm>
also have an <firstterm>init fork</firstterm>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-fsm">
<glossterm>Free space map (fork)</glossterm>
<glossdef>
<para>
A storage structure that keeps metadata about each data page of a table's
main fork. The free space map entry for each page stores the
amount of free space that's available for future tuples, and is structured
to be efficiently searched for available space for a new tuple of a given
size.
</para>
<para>
For more information, see
<xref linkend="storage-fsm"/>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-function">
<glossterm>Function (routine)</glossterm>
<glossdef>
<para>
A type of routine that receives zero or more arguments, returns zero or more
output values, and is constrained to run within one transaction.
Functions are invoked as part of a query, for example via
<command>SELECT</command>.
Certain functions can return
<glossterm linkend="glossary-result-set">sets</glossterm>; those are
called <firstterm>set-returning functions</firstterm>.
</para>
<para>
Functions can also be used for
<glossterm linkend="glossary-trigger">triggers</glossterm> to invoke.
</para>
<para>
For more information, see
<xref linkend="sql-createfunction"/>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-grant">
<glossterm>Grant</glossterm>
<glossdef>
<para>
An <acronym>SQL</acronym> command that is used to allow a
<glossterm linkend="glossary-user">user</glossterm> or
<glossterm linkend="glossary-role">role</glossterm> to access
specific objects within the <glossterm linkend="glossary-database">database</glossterm>.
</para>
<para>
For more information, see
<xref linkend="sql-grant"/>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-heap">
<glossterm>Heap</glossterm>
<glossdef>
<para>
Contains the values of <glossterm linkend="glossary-tuple">row</glossterm>
attributes (i.e., the data) for a
<glossterm linkend="glossary-relation">relation</glossterm>.
The heap is realized within one or more
<glossterm linkend="glossary-file-segment">file segments</glossterm>
in the relation's <glossterm linkend="glossary-fork">main fork</glossterm>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-host">
<glossterm>Host</glossterm>
<glossdef>
<para>
A computer that communicates with other computers over a network.
This is sometimes used as a synonym for
<glossterm linkend="glossary-server">server</glossterm>.
It is also used to refer to a computer where
<glossterm linkend="glossary-client">client processes</glossterm> run.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-index">
<glossterm>Index (relation)</glossterm>
<glossdef>
<para>
A <glossterm linkend="glossary-relation">relation</glossterm> that contains
data derived from a <glossterm linkend="glossary-table">table</glossterm>
or <glossterm linkend="glossary-materialized-view">materialized view</glossterm>.
Its internal structure supports fast retrieval of and access to the original
data.
</para>
<para>
For more information, see
<xref linkend="sql-createindex"/>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-insert">
<glossterm>Insert</glossterm>
<glossdef>
<para>
An <acronym>SQL</acronym> command used to add new data into a
<glossterm linkend="glossary-table">table</glossterm>.
</para>
<para>
For more information, see
<xref linkend="sql-insert"/>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-instance">
<glossterm>Instance</glossterm>
<glossdef>
<para>
A group of <glossterm linkend="glossary-backend">backend</glossterm> and
<glossterm linkend="glossary-auxiliary-proc">auxiliary processes</glossterm>
that communicate using a common shared memory area. One
<glossterm linkend="glossary-postmaster">postmaster process</glossterm>
manages the instance; one instance manages exactly one
<glossterm linkend="glossary-db-cluster">database cluster</glossterm>
with all its databases. Many instances can run on the same
<glossterm linkend="glossary-server">server</glossterm>
as long as their <acronym>TCP</acronym> ports do not conflict.
</para>
<para>
The instance handles all key features of a <acronym>DBMS</acronym>:
read and write access to files and shared memory,
assurance of the <acronym>ACID</acronym> properties,
<glossterm linkend="glossary-connection">connections</glossterm> to
<glossterm linkend="glossary-client">client processes</glossterm>,
privilege verification, crash recovery, replication, etc.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-isolation">
<glossterm>Isolation</glossterm>
<glossdef>
<para>
The property that the effects of a transaction are not visible to
<glossterm linkend="glossary-concurrency">concurrent transactions</glossterm>
before it commits.
This is one of the <acronym>ACID</acronym> properties.
</para>
<para>
For more information, see <xref linkend="transaction-iso" />.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-join">
<glossterm>Join</glossterm>
<glossdef>
<para>
An operation and <acronym>SQL</acronym> keyword used in
<glossterm linkend="glossary-query">queries</glossterm>
for combining data from multiple
<glossterm linkend="glossary-relation">relations</glossterm>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-key">
<glossterm>Key</glossterm>
<glossdef>
<para>
A means of identifying a <glossterm linkend="glossary-tuple">row</glossterm> within a
<glossterm linkend="glossary-table">table</glossterm> or
other <glossterm linkend="glossary-relation">relation</glossterm> by
values contained within one or more
<glossterm linkend="glossary-attribute">attributes</glossterm>
in that relation.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-lock">
<glossterm>Lock</glossterm>
<glossdef>
<para>
A mechanism that allows a process to limit or prevent simultaneous
access to a resource.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-log-file">
<glossterm>Log file</glossterm>
<glossdef>
<para>
Log files contain human-readable text lines about events.
Examples include login failures, long-running queries, etc.
</para>
<para>
For more information, see
<xref linkend="logfile-maintenance"/>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-logged">
<glossterm>Logged</glossterm>
<glossdef>
<para>
A <glossterm linkend="glossary-table">table</glossterm> is considered
<glossterm linkend="glossary-logged">logged</glossterm> if changes to it are sent to the
<glossterm linkend="glossary-wal">WAL</glossterm>. By default, all regular
tables are logged. A table can be specified as
<glossterm linkend="glossary-unlogged">unlogged</glossterm> either at
creation time or via the <command>ALTER TABLE</command> command.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-logger">
<glossterm>Logger (process)</glossterm>
<glossdef>
<para>
An <glossterm linkend="glossary-auxiliary-proc">auxiliary process</glossterm>
which, if enabled, writes information about database events into the current
<glossterm linkend="glossary-log-file">log file</glossterm>.
When reaching certain time- or
volume-dependent criteria, a new log file is created.
Also called <firstterm>syslogger</firstterm>.
</para>
<para>
For more information, see
<xref linkend="runtime-config-logging"/>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-log-record">
<glossterm>Log record</glossterm>
<glossdef>
<para>
Archaic term for a <glossterm linkend="glossary-wal-record">WAL record</glossterm>.
</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm>Master (server)</glossterm>
<glosssee otherterm="glossary-primary-server" />
</glossentry>
<glossentry id="glossary-materialized">
<glossterm>Materialized</glossterm>
<glossdef>
<para>
The property that some information has been pre-computed and stored
for later use, rather than computing it on-the-fly.
</para>
<para>
This term is used in
<glossterm linkend="glossary-materialized-view">materialized view</glossterm>,
to mean that the data derived from the view's query is stored on
disk separately from the sources of that data.
</para>
<para>
This term is also used to refer to some multi-step queries to mean that
the data resulting from executing a given step is stored in memory
(with the possibility of spilling to disk), so that it can be read multiple
times by another step.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-materialized-view">
<glossterm>Materialized view (relation)</glossterm>
<glossdef>
<para>
A <glossterm linkend="glossary-relation">relation</glossterm> that is
defined by a <command>SELECT</command> statement
(just like a <glossterm linkend="glossary-view">view</glossterm>),
but stores data in the same way that a
<glossterm linkend="glossary-table">table</glossterm> does. It cannot be
modified via <command>INSERT</command>, <command>UPDATE</command>,
<command>DELETE</command>, or <command>MERGE</command> operations.
</para>
<para>
For more information, see
<xref linkend="sql-creatematerializedview"/>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-merge">
<glossterm>Merge</glossterm>
<glossdef>
<para>
An <acronym>SQL</acronym> command used to conditionally add, modify,
or remove <glossterm linkend="glossary-tuple">rows</glossterm>
in a given <glossterm linkend="glossary-table">table</glossterm>,
using data from a source
<glossterm linkend="glossary-relation">relation</glossterm>.
</para>
<para>
For more information, see
<xref linkend="sql-merge"/>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-mvcc">
<glossterm>Multi-version concurrency control (MVCC)</glossterm>
<glossdef>
<para>
A mechanism designed to allow several
<glossterm linkend="glossary-transaction">transactions</glossterm> to be
reading and writing the same rows without one process causing other
processes to stall.
In <productname>PostgreSQL</productname>, MVCC is implemented by
creating copies (<firstterm>versions</firstterm>) of
<glossterm linkend="glossary-tuple">tuples</glossterm> as they are
modified; after transactions that can see the old versions terminate,
those old versions need to be removed.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-null">
<glossterm>Null</glossterm>
<glossdef>
<para>
A concept of non-existence that is a central tenet of relational
database theory. It represents the absence of a definite value.
</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm>Optimizer</glossterm>
<glosssee otherterm="glossary-planner" />
</glossentry>
<glossentry id="glossary-parallel-query">
<glossterm>Parallel query</glossterm>
<glossdef>
<para>
The ability to handle parts of executing a
<glossterm linkend="glossary-query">query</glossterm> to take advantage
of parallel processes on servers with multiple <acronym>CPU</acronym>s.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-partition">
<glossterm>Partition</glossterm>
<glossdef>
<para>
One of several disjoint (not overlapping) subsets of a larger set.
</para>
</glossdef>
<glossdef>
<para>
In reference to a
<glossterm linkend="glossary-partitioned-table">partitioned table</glossterm>:
One of the tables that each contain part of the data of the partitioned table,
which is said to be the <firstterm>parent</firstterm>.
The partition is itself a table, so it can also be queried directly;
at the same time, a partition can sometimes be a partitioned table,
allowing hierarchies to be created.
</para>
</glossdef>
<glossdef>
<para>
In reference to a <glossterm linkend="glossary-window-function">window function</glossterm>
in a <glossterm linkend="glossary-query">query</glossterm>,
a partition is a user-defined criterion that identifies which neighboring
<glossterm linkend="glossary-tuple">rows</glossterm>
of the <glossterm linkend="glossary-result-set">query's result set</glossterm>
can be considered by the function.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-partitioned-table">
<glossterm>Partitioned table (relation)</glossterm>
<glossdef>
<para>
A <glossterm linkend="glossary-relation">relation</glossterm> that is
in semantic terms the same as a <glossterm linkend="glossary-table">table</glossterm>,
but whose storage is distributed across several
<glossterm linkend="glossary-partition">partitions</glossterm>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-postmaster">
<glossterm>Postmaster (process)</glossterm>
<glossdef>
<para>
The very first process of an <glossterm linkend="glossary-instance">instance</glossterm>.
It starts and manages the
<glossterm linkend="glossary-auxiliary-proc">auxiliary processes</glossterm>
and creates <glossterm linkend="glossary-backend">backend processes</glossterm>
on demand.
</para>
<para>
For more information, see
<xref linkend="server-start"/>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-primary-key">
<glossterm>Primary key</glossterm>
<glossdef>
<para>
A special case of a
<glossterm linkend="glossary-unique-constraint">unique constraint</glossterm>
defined on a
<glossterm linkend="glossary-table">table</glossterm> or other
<glossterm linkend="glossary-relation">relation</glossterm> that also
guarantees that all of the
<glossterm linkend="glossary-attribute">attributes</glossterm>
within the <glossterm linkend="glossary-primary-key">primary key</glossterm>
do not have <glossterm linkend="glossary-null">null</glossterm> values.
As the name implies, there can be only one
primary key per table, though it is possible to have multiple unique
constraints that also have no null-capable attributes.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-primary-server">
<glossterm>Primary (server)</glossterm>
<glossdef>
<para>
When two or more <glossterm linkend="glossary-database">databases</glossterm>
are linked via <glossterm linkend="glossary-replication">replication</glossterm>,
the <glossterm linkend="glossary-server">server</glossterm>
that is considered the authoritative source of information is called
the <firstterm>primary</firstterm>,
also known as a <firstterm>master</firstterm>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-procedure">
<glossterm>Procedure (routine)</glossterm>
<glossdef>
<para>
A type of routine.
Their distinctive qualities are that they do not return values,
and that they are allowed to make transactional statements such
as <command>COMMIT</command> and <command>ROLLBACK</command>.
They are invoked via the <command>CALL</command> command.
</para>
<para>
For more information, see
<xref linkend="sql-createprocedure"/>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-query">
<glossterm>Query</glossterm>
<glossdef>
<para>
A request sent by a client to a <glossterm linkend="glossary-backend">backend</glossterm>,
usually to return results or to modify data on the database.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-planner">
<glossterm>Query planner</glossterm>
<glossdef>
<para>
The part of <productname>PostgreSQL</productname> that is devoted to
determining (<firstterm>planning</firstterm>) the most efficient way to
execute <glossterm linkend="glossary-query">queries</glossterm>.
Also known as <firstterm>query optimizer</firstterm>,
<firstterm>optimizer</firstterm>, or simply <firstterm>planner</firstterm>.
</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm>Record</glossterm>
<glosssee otherterm="glossary-tuple" />
</glossentry>
<glossentry>
<glossterm>Recycling</glossterm>
<glosssee otherterm="glossary-wal-file" />
</glossentry>
<glossentry id="glossary-referential-integrity">
<glossterm>Referential integrity</glossterm>
<glossdef>
<para>
A means of restricting data in one <glossterm linkend="glossary-relation">relation</glossterm>
by a <glossterm linkend="glossary-foreign-key">foreign key</glossterm>
so that it must have matching data in another
<glossterm linkend="glossary-relation">relation</glossterm>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-relation">
<glossterm>Relation</glossterm>
<glossdef>
<para>
The generic term for all objects in a
<glossterm linkend="glossary-database">database</glossterm>
that have a name and a list of
<glossterm linkend="glossary-attribute">attributes</glossterm>
defined in a specific order.
<glossterm linkend="glossary-table">Tables</glossterm>,
<glossterm linkend="glossary-sequence">sequences</glossterm>,
<glossterm linkend="glossary-view">views</glossterm>,
<glossterm linkend="glossary-foreign-table">foreign tables</glossterm>,
<glossterm linkend="glossary-materialized-view">materialized views</glossterm>,
composite types, and
<glossterm linkend="glossary-index">indexes</glossterm> are all relations.
</para>
<para>
More generically, a relation is a set of tuples; for example,
the result of a query is also a relation.
</para>
<para>
In <productname>PostgreSQL</productname>,
<firstterm>Class</firstterm> is an archaic synonym for
<firstterm>relation</firstterm>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-replica">
<glossterm>Replica (server)</glossterm>
<glossdef>
<para>
A <glossterm linkend="glossary-database">database</glossterm> that is paired
with a <glossterm linkend="glossary-primary-server">primary</glossterm>
database and is maintaining a copy of some or all of the primary database's
data. The foremost reasons for doing this are to allow for greater access
to that data, and to maintain availability of the data in the event that
the <glossterm linkend="glossary-primary-server">primary</glossterm>
becomes unavailable.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-replication">
<glossterm>Replication</glossterm>
<glossdef>
<para>
The act of reproducing data on one
<glossterm linkend="glossary-server">server</glossterm> onto another
server called a <glossterm linkend="glossary-replica">replica</glossterm>.
This can take the form of <firstterm>physical replication</firstterm>,
where all file changes from one server are copied verbatim,
or <firstterm>logical replication</firstterm> where a defined subset
of data changes are conveyed using a higher-level representation.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-result-set">
<glossterm>Result set</glossterm>
<glossdef>
<para>
A <glossterm linkend="glossary-relation">relation</glossterm> transmitted
from a <glossterm linkend="glossary-backend">backend process</glossterm>
to a <glossterm linkend="glossary-client">client</glossterm> upon the
completion of an <acronym>SQL</acronym> command, usually a
<command>SELECT</command> but it can be an
<command>INSERT</command>, <command>UPDATE</command>, or
<command>DELETE</command> command if the <literal>RETURNING</literal>
clause is specified.
</para>
<para>
The fact that a result set is a relation means that a query can be used
in the definition of another query, becoming a
<firstterm>subquery</firstterm>.
</para>
</glossdef>
<glossdef>
<para>
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-revoke">
<glossterm>Revoke</glossterm>
<glossdef>
<para>
A command to prevent access to a named set of
<glossterm linkend="glossary-database">database</glossterm> objects for a
named list of <glossterm linkend="glossary-role">roles</glossterm>.
</para>
<para>
For more information, see
<xref linkend="sql-revoke"/>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-role">
<glossterm>Role</glossterm>
<glossdef>
<para>
A collection of access privileges to the
<glossterm linkend="glossary-database">instance</glossterm>.
Roles are themselves a privilege that can be granted to other roles.
This is often done for convenience or to ensure completeness
when multiple <glossterm linkend="glossary-user">users</glossterm> need
the same privileges.
</para>
<para>
For more information, see
<xref linkend="sql-createrole"/>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-rollback">
<glossterm>Rollback</glossterm>
<glossdef>
<para>
A command to undo all of the operations performed since the beginning
of a <glossterm linkend="glossary-transaction">transaction</glossterm>.
</para>
<para>
For more information, see
<xref linkend="sql-rollback"/>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-routine">
<glossterm>Routine</glossterm>
<glossdef>
<para>
A defined set of instructions stored in the database system
that can be invoked for execution.
A routine can be written in a variety of programming
languages. Routines can be
<glossterm linkend="glossary-function">functions</glossterm>
(including set-returning functions and
<glossterm linkend="glossary-trigger">trigger functions</glossterm>),
<glossterm linkend="glossary-aggregate">aggregate functions</glossterm>,
and <glossterm linkend="glossary-procedure">procedures</glossterm>.
</para>
<para>
Many routines are already defined within <productname>PostgreSQL</productname>
itself, but user-defined ones can also be added.
</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm>Row</glossterm>
<glosssee otherterm="glossary-tuple" />
</glossentry>
<glossentry id="glossary-savepoint">
<glossterm>Savepoint</glossterm>
<glossdef>
<para>
A special mark in the sequence of steps in a
<glossterm linkend="glossary-transaction">transaction</glossterm>.
Data modifications after this point in time may be reverted
to the time of the savepoint.
</para>
<para>
For more information, see
<xref linkend="sql-savepoint"/>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-schema">
<glossterm>Schema</glossterm>
<glossdef>
<para>
A schema is a namespace for
<glossterm linkend="glossary-sql-object">SQL objects</glossterm>,
which all reside in the same
<glossterm linkend="glossary-database">database</glossterm>.
Each SQL object must reside in exactly one schema.
</para>
<para>
All system-defined SQL objects reside in schema <literal>pg_catalog</literal>.
</para>
</glossdef>
<glossdef>
<para>
More generically, the term <firstterm>schema</firstterm> is used to mean
all data descriptions (<glossterm linkend="glossary-table">table</glossterm> definitions,
<glossterm linkend="glossary-constraint">constraints</glossterm>, comments, etc.)
for a given <glossterm linkend="glossary-database">database</glossterm> or
subset thereof.
</para>
<para>
For more information, see
<xref linkend="ddl-schemas"/>.
</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm>Segment</glossterm>
<glosssee otherterm="glossary-file-segment" />
</glossentry>
<glossentry id="glossary-select">
<glossterm>Select</glossterm>
<glossdef>
<para>
The <acronym>SQL</acronym> command used to request data from a
<glossterm linkend="glossary-database">database</glossterm>.
Normally, <command>SELECT</command> commands are not expected to modify the
<glossterm linkend="glossary-database">database</glossterm> in any way,
but it is possible that
<glossterm linkend="glossary-function">functions</glossterm> invoked within
the query could have side effects that do modify data.
</para>
<para>
For more information, see
<xref linkend="sql-select"/>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-sequence">
<glossterm>Sequence (relation)</glossterm>
<glossdef>
<para>
A type of relation that is used to generate values.
Typically the generated values are sequential non-repeating numbers.
They are commonly used to generate surrogate
<glossterm linkend="glossary-primary-key">primary key</glossterm>
values.
</para>
</glossdef>
</glossentry>
<!-- XXX should define all other isolation levels (and improve this definition)
<glossentry id="glossary-serializable">
<glossterm>Serializable (isolation level)</glossterm>
<glossdef>
<para>
Transactions defined as <literal>SERIALIZABLE</literal> are unable to
see changes made within other transactions. In effect, for the
initializing session the entire <glossterm linkend="glossary-database">database</glossterm>
appears to be frozen for the duration of the
<glossterm linkend="glossary-transaction">Transaction</glossterm>.
</para>
</glossdef>
</glossentry>
-->
<glossentry id="glossary-server">
<glossterm>Server</glossterm>
<glossdef>
<para>
A computer on which <productname>PostgreSQL</productname>
<glossterm linkend="glossary-instance">instances</glossterm> run.
The term <firstterm>server</firstterm> denotes real hardware, a
container, or a <firstterm>virtual machine</firstterm>.
</para>
<para>
This term is sometimes used to refer to an instance or to a host.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-session">
<glossterm>Session</glossterm>
<glossdef>
<para>
A state that allows a client and a backend to interact,
communicating over a <glossterm linkend="glossary-connection">connection</glossterm>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-shared-memory">
<glossterm>Shared memory</glossterm>
<glossdef>
<para>
<acronym>RAM</acronym> which is used by the processes common to an
<glossterm linkend="glossary-instance">instance</glossterm>.
It mirrors parts of <glossterm linkend="glossary-database">database</glossterm>
files, provides a transient area for
<glossterm linkend="glossary-wal-record">WAL records</glossterm>,
and stores additional common information.
Note that shared memory belongs to the complete instance, not to a single
database.
</para>
<para>
The largest part of shared memory is known as <firstterm>shared buffers</firstterm>
and is used to mirror part of data files, organized into pages.
When a page is modified, it is called a dirty page until it is
written back to the file system.
</para>
<para>
For more information, see
<xref linkend="runtime-config-resource-memory"/>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-sql-object">
<glossterm>SQL object</glossterm>
<glossdef>
<para>
Any object that can be created with a <command>CREATE</command>
command. Most objects are specific to one database, and are commonly
known as <firstterm>local objects</firstterm>.
</para>
<para>
Most local objects reside in a specific
<glossterm linkend="glossary-schema">schema</glossterm> in their
containing database, such as
<glossterm linkend="glossary-relation">relations</glossterm> (all types),
<glossterm linkend="glossary-function">routines</glossterm> (all types),
data types, etc.
The names of such objects of the same type in the same schema
are enforced to be unique.
</para>
<para>
There also exist local objects that do not reside in schemas; some examples are
<glossterm linkend="glossary-extension">extensions</glossterm>,
<glossterm linkend="glossary-cast">data type casts</glossterm>, and
<glossterm linkend="glossary-foreign-data-wrapper">foreign data wrappers</glossterm>.
The names of such objects of the same type are enforced to be unique
within the database.
</para>
<para>
Other object types, such as
<glossterm linkend="glossary-role">roles</glossterm>,
<glossterm linkend="glossary-tablespace">tablespaces</glossterm>,
replication origins, subscriptions for logical replication, and
databases themselves are not local SQL objects since they exist
entirely outside of any specific database;
they are called <firstterm>global objects</firstterm>.
The names of such objects are enforced to be unique within the whole
database cluster.
</para>
<para>
For more information, see
<xref linkend="manage-ag-overview"/>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-sql-standard">
<glossterm>SQL standard</glossterm>
<glossdef>
<para>
A series of documents that define the <acronym>SQL</acronym> language.
</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm>Standby (server)</glossterm>
<glosssee otherterm="glossary-replica" />
</glossentry>
<glossentry id="glossary-startup-process">
<glossterm>Startup process</glossterm>
<glossdef>
<para>
An <glossterm linkend="glossary-auxiliary-proc">auxiliary process</glossterm>
that replays WAL during crash recovery and in a
<glossterm linkend="glossary-replication">physical replica</glossterm>.
</para>
<para>
(The name is historical: the startup process was named before
replication was implemented; the name refers to its task as it
relates to the server startup following a crash.)
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-system-catalog">
<glossterm>System catalog</glossterm>
<glossdef>
<para>
A collection of <glossterm linkend="glossary-table">tables</glossterm>
which describe the structure of all
<glossterm linkend="glossary-sql-object">SQL objects</glossterm>
of the instance.
The system catalog resides in the schema <literal>pg_catalog</literal>.
These tables contain data in internal representation and are
not typically considered useful for user examination;
a number of user-friendlier <glossterm linkend="glossary-view">views</glossterm>,
also in schema <literal>pg_catalog</literal>, offer more convenient access to
some of that information, while additional tables and views
exist in schema <literal>information_schema</literal>
(see <xref linkend="information-schema" />) that expose some
of the same and additional information as mandated by the
<glossterm linkend="glossary-sql-standard">SQL standard</glossterm>.
</para>
<para>
For more information, see
<xref linkend="ddl-schemas"/>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-table">
<glossterm>Table</glossterm>
<glossdef>
<para>
A collection of <glossterm linkend="glossary-tuple">tuples</glossterm> having
a common data structure (the same number of
<glossterm linkend="glossary-attribute">attributes</glossterm>, in the same
order, having the same name and type per position).
A table is the most common form of
<glossterm linkend="glossary-relation">relation</glossterm> in
<productname>PostgreSQL</productname>.
</para>
<para>
For more information, see
<xref linkend="sql-createtable"/>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-tablespace">
<glossterm>Tablespace</glossterm>
<glossdef>
<para>
A named location on the server file system.
All <glossterm linkend="glossary-sql-object">SQL objects</glossterm>
which require storage beyond their definition in the
<glossterm linkend="glossary-system-catalog">system catalog</glossterm>
must belong to a single tablespace.
Initially, a database cluster contains a single usable tablespace which is
used as the default for all SQL objects, called <literal>pg_default</literal>.
</para>
<para>
For more information, see
<xref linkend="manage-ag-tablespaces"/>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-temporary-table">
<glossterm>Temporary table</glossterm>
<glossdef>
<para>
<glossterm linkend="glossary-table">Tables</glossterm> that exist either
for the lifetime of a
<glossterm linkend="glossary-session">session</glossterm> or a
<glossterm linkend="glossary-transaction">transaction</glossterm>, as
specified at the time of creation.
The data in them is not visible to other sessions, and is not
<glossterm linkend="glossary-logged">logged</glossterm>.
Temporary tables are often used to store intermediate data for a
multi-step operation.
</para>
<para>
For more information, see
<xref linkend="sql-createtable"/>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-toast">
<glossterm>TOAST</glossterm>
<glossdef>
<para>
A mechanism by which large attributes of table rows are split and
stored in a secondary table, called the <firstterm>TOAST table</firstterm>.
Each relation with large attributes has its own TOAST table.
</para>
<para>
For more information, see
<xref linkend="storage-toast" />.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-transaction">
<glossterm>Transaction</glossterm>
<glossdef>
<para>
A combination of commands that must act as a single
<glossterm linkend="glossary-atomic">atomic</glossterm> command: they all
succeed or all fail as a single unit, and their effects are not visible to
other <glossterm linkend="glossary-session">sessions</glossterm> until
the transaction is complete, and possibly even later, depending on the
isolation level.
</para>
<para>
For more information, see
<xref linkend="transaction-iso"/>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-xid">
<glossterm>Transaction ID</glossterm>
<glossdef>
<para>
The numerical, unique, sequentially-assigned identifier that each
transaction receives when it first causes a database modification.
Frequently abbreviated as <firstterm>xid</firstterm>.
When stored on disk, xids are only 32-bits wide, so only
approximately four billion write transaction IDs can be generated;
to permit the system to run for longer than that,
<firstterm>epochs</firstterm> are used, also 32 bits wide.
When the counter reaches the maximum xid value, it starts over at
<literal>3</literal> (values under that are reserved) and the
epoch value is incremented by one.
In some contexts, the epoch and xid values are
considered together as a single 64-bit value.
</para>
<para>
For more information, see
<xref linkend="datatype-oid"/>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-tps">
<glossterm>Transactions per second (TPS)</glossterm>
<glossdef>
<para>
Average number of transactions that are executed per second,
totaled across all sessions active for a measured run.
This is used as a measure of the performance characteristics of
an instance.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-trigger">
<glossterm>Trigger</glossterm>
<glossdef>
<para>
A <glossterm linkend="glossary-function">function</glossterm> which can
be defined to execute whenever a certain operation (<command>INSERT</command>,
<command>UPDATE</command>, <command>DELETE</command>,
<command>TRUNCATE</command>) is applied to a
<glossterm linkend="glossary-relation">relation</glossterm>.
A trigger executes within the same
<glossterm linkend="glossary-transaction">transaction</glossterm> as the
statement which invoked it, and if the function fails, then the invoking
statement also fails.
</para>
<para>
For more information, see
<xref linkend="sql-createtrigger"/>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-tuple">
<glossterm>Tuple</glossterm>
<glossdef>
<para>
A collection of <glossterm linkend="glossary-attribute">attributes</glossterm>
in a fixed order.
That order may be defined by the <glossterm linkend="glossary-table">table</glossterm>
(or other <glossterm linkend="glossary-relation">relation</glossterm>)
where the tuple is contained, in which case the tuple is often called a
<firstterm>row</firstterm>. It may also be defined by the structure of a
result set, in which case it is sometimes called a <firstterm>record</firstterm>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-unique-constraint">
<glossterm>Unique constraint</glossterm>
<glossdef>
<para>
A type of <glossterm linkend="glossary-constraint">constraint</glossterm>
defined on a <glossterm linkend="glossary-relation">relation</glossterm>
which restricts the values allowed in one or a combination of columns
so that each value or combination of values can only appear once in the
relation — that is, no other row in the relation contains values
that are equal to those.
</para>
<para>
Because <glossterm linkend="glossary-null">null values</glossterm> are
not considered equal to each other, multiple rows with null values are
allowed to exist without violating the unique constraint.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-unlogged">
<glossterm>Unlogged</glossterm>
<glossdef>
<para>
The property of certain <glossterm linkend="glossary-relation">relations</glossterm>
that the changes to them are not reflected in the
<glossterm linkend="glossary-wal">WAL</glossterm>.
This disables replication and crash recovery for these relations.
</para>
<para>
The primary use of unlogged tables is for storing
transient work data that must be shared across processes.
</para>
<para>
<glossterm linkend="glossary-temporary-table">Temporary tables</glossterm>
are always unlogged.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-update">
<glossterm>Update</glossterm>
<glossdef>
<para>
An <acronym>SQL</acronym> command used to modify
<glossterm linkend="glossary-tuple">rows</glossterm>
that may already exist in a specified <glossterm linkend="glossary-table">table</glossterm>.
It cannot create or remove rows.
</para>
<para>
For more information, see
<xref linkend="sql-update"/>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-user">
<glossterm>User</glossterm>
<glossdef>
<para>
A <glossterm linkend="glossary-role">role</glossterm> that has the
<literal>LOGIN</literal> privilege.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-user-mapping">
<glossterm>User mapping</glossterm>
<glossdef>
<para>
The translation of login credentials in the local
<glossterm linkend="glossary-database">database</glossterm> to credentials
in a remote data system defined by a
<glossterm linkend="glossary-foreign-data-wrapper">foreign data wrapper</glossterm>.
</para>
<para>
For more information, see
<xref linkend="sql-createusermapping"/>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-vacuum">
<glossterm>Vacuum</glossterm>
<glossdef>
<para>
The process of removing outdated
<glossterm linkend="glossary-tuple">tuple versions</glossterm>
from tables or materialized views, and other closely related
processing required by <productname>PostgreSQL</productname>'s
implementation of <glossterm linkend="glossary-mvcc">MVCC</glossterm>.
This can be initiated through the use of
the <command>VACUUM</command> command, but can also be handled automatically
via <glossterm linkend="glossary-autovacuum">autovacuum</glossterm> processes.
</para>
<para>
For more information, see
<xref linkend="routine-vacuuming"/> .
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-view">
<glossterm>View</glossterm>
<glossdef>
<para>
A <glossterm linkend="glossary-relation">relation</glossterm> that is defined by a
<command>SELECT</command> statement, but has no storage of its own.
Any time a query references a view, the definition of the view is
substituted into the query as if the user had typed it as a subquery
instead of the name of the view.
</para>
<para>
For more information, see
<xref linkend="sql-createview"/>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-vm">
<glossterm>Visibility map (fork)</glossterm>
<glossdef>
<para>
A storage structure that keeps metadata about each data page
of a table's main fork. The visibility map entry for
each page stores two bits: the first one
(<literal>all-visible</literal>) indicates that all tuples
in the page are visible to all transactions. The second one
(<literal>all-frozen</literal>) indicates that all tuples
in the page are marked frozen.
</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm>WAL</glossterm>
<glosssee otherterm="glossary-wal" />
</glossentry>
<glossentry id="glossary-wal-archiver">
<glossterm>WAL archiver (process)</glossterm>
<glossdef>
<para>
An <glossterm linkend="glossary-auxiliary-proc">auxiliary process</glossterm>
which, if enabled, saves copies of
<glossterm linkend="glossary-wal-file">WAL files</glossterm>
for the purpose of creating backups or keeping
<glossterm linkend="glossary-replica">replicas</glossterm> current.
</para>
<para>
For more information, see
<xref linkend="continuous-archiving"/>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-wal-file">
<glossterm>WAL file</glossterm>
<glossdef>
<para>
Also known as <firstterm>WAL segment</firstterm> or
<firstterm>WAL segment file</firstterm>.
Each of the sequentially-numbered files that provide storage space for
<glossterm linkend="glossary-wal">WAL</glossterm>.
The files are all of the same predefined size
and are written in sequential order, interspersing changes
as they occur in multiple simultaneous sessions.
If the system crashes, the files are read in order, and each of the
changes is replayed to restore the system to the state it was in
before the crash.
</para>
<para>
Each WAL file can be released after a
<glossterm linkend="glossary-checkpoint">checkpoint</glossterm>
writes all the changes in it to the corresponding data files.
Releasing the file can be done either by deleting it, or by changing its
name so that it will be used in the future, which is called
<firstterm>recycling</firstterm>.
</para>
<para>
For more information, see
<xref linkend="wal-internals"/>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-wal-record">
<glossterm>WAL record</glossterm>
<glossdef>
<para>
A low-level description of an individual data change.
It contains sufficient information for the data change to be
re-executed (<firstterm>replayed</firstterm>) in case a system failure
causes the change to be lost.
WAL records use a non-printable binary format.
</para>
<para>
For more information, see
<xref linkend="wal-internals"/>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-wal-receiver">
<glossterm>WAL receiver (process)</glossterm>
<glossdef>
<para>
An <glossterm linkend="glossary-auxiliary-proc">auxiliary process</glossterm>
that runs on a <glossterm linkend="glossary-replica">replica</glossterm>
to receive WAL from the
<glossterm linkend="glossary-primary-server">primary server</glossterm>
for replay by the
<glossterm linkend="glossary-startup-process">startup process</glossterm>.
</para>
<para>
For more information, see
<xref linkend="warm-standby"/>.
</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm>WAL segment</glossterm>
<glosssee otherterm="glossary-wal-file" />
</glossentry>
<glossentry id="glossary-wal-sender">
<glossterm>WAL sender (process)</glossterm>
<glossdef>
<para>
A special <glossterm linkend="glossary-backend">backend process</glossterm>
that streams WAL over a network. The receiving end can be a
<glossterm linkend="glossary-wal-receiver">WAL receiver</glossterm>
in a <glossterm linkend="glossary-replica">replica</glossterm>,
<xref linkend="app-pgreceivewal"/>, or any other client program
that speaks the replication protocol.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-wal-writer">
<glossterm>WAL writer (process)</glossterm>
<glossdef>
<para>
A process that writes <glossterm linkend="glossary-wal-record">WAL records</glossterm>
from <glossterm linkend="glossary-shared-memory">shared memory</glossterm> to
<glossterm linkend="glossary-wal-file">WAL files</glossterm>.
</para>
<para>
For more information, see
<xref linkend="runtime-config-wal"/>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-window-function">
<glossterm>Window function (routine)</glossterm>
<glossdef>
<para>
A type of <glossterm linkend="glossary-function">function</glossterm>
used in a <glossterm linkend="glossary-query">query</glossterm>
that applies to a <glossterm linkend="glossary-partition">partition</glossterm>
of the query's <glossterm linkend="glossary-result-set">result set</glossterm>;
the function's result is based on values found in
<glossterm linkend="glossary-tuple">rows</glossterm> of the same partition or frame.
</para>
<para>
All <glossterm linkend="glossary-aggregate">aggregate functions</glossterm>
can be used as window functions, but window functions can also be
used to, for example, give ranks to each of the rows in the partition.
Also known as <firstterm>analytic functions</firstterm>.
</para>
<para>
For more information, see
<xref linkend="tutorial-window"/>.
</para>
</glossdef>
</glossentry>
<glossentry id="glossary-wal">
<glossterm>Write-ahead log</glossterm>
<glossdef>
<para>
The journal that keeps track of the changes in the
<glossterm linkend="glossary-db-cluster">database cluster</glossterm>
as user- and system-invoked operations take place.
It comprises many individual
<glossterm linkend="glossary-wal-record">WAL records</glossterm> written
sequentially to <glossterm linkend="glossary-wal-file">WAL files</glossterm>.
</para>
</glossdef>
</glossentry>
</glosslist>
</appendix>
|