forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit04a942e
committed
Split up wal-logging items:
< * Allow control over which tables are WAL-logged [walcontrol]> * Allow WAL logging to be turned off for a table, but the table> might be dropped or truncated during crash recovery [walcontrol]< commit. To do this, only a single writer can modify the table, and< writes must happen only on new pages. Readers can continue accessing< the table. This would affect COPY, and perhaps INSERT/UPDATE too.< Another option is to avoid transaction logging entirely and truncate< or drop the table on crash recovery. These should be implemented< using ALTER TABLE, e.g. ALTER TABLE PERSISTENCE [ DROP | TRUNCATE |< STABLE | DEFAULT ]. Tables using non-default logging should not use< referential integrity with default-logging tables, and tables using< stable logging probably can not have indexes. One complexity is< the handling of indexes on TOAST tables.> commit. This should be implemented using ALTER TABLE, e.g. ALTER> TABLE PERSISTENCE [ DROP | TRUNCATE | DEFAULT ]. Tables using> non-default logging should not use referential integrity with> default-logging tables. A table without dirty buffers during a> crash could perhaps avoid the drop/truncate.>> * Allow WAL logging to be turned off for a table, but the table would> avoid being truncated/dropped [walcontrol]>> To do this, only a single writer can modify the table, and writes> must happen only on new pages so the new pages can be removed during> crash recovery. Readers can continue accessing the table. Such> tables probably cannot have indexes. One complexity is the handling> of indexes on TOAST tables.1 parent8bf47f4 commit04a942e
2 files changed
+36
-27
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
1024 | 1024 | | |
1025 | 1025 | | |
1026 | 1026 | | |
1027 | | - | |
| 1027 | + | |
| 1028 | + | |
1028 | 1029 | | |
1029 | 1030 | | |
1030 | | - | |
1031 | | - | |
1032 | | - | |
1033 | | - | |
1034 | | - | |
1035 | | - | |
1036 | | - | |
1037 | | - | |
1038 | | - | |
1039 | | - | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
1040 | 1045 | | |
1041 | 1046 | | |
1042 | 1047 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | | - | |
| 82 | + | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| |||
928 | 928 | | |
929 | 929 | | |
930 | 930 | | |
931 | | - | |
| 931 | + | |
| 932 | + | |
932 | 933 | | |
933 | | - | |
934 | | - | |
935 | | - | |
936 | | - | |
937 | | - | |
938 | | - | |
939 | | - | |
940 | | - | |
941 | | - | |
942 | | - | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
943 | 947 | | |
944 | 948 | | |
945 | 949 | | |
| |||
0 commit comments
Comments
(0)