Commit 18245cb
Nikita Malakhov
Default TOAST re-implemented using TOAST API.
Default TOAST mechanics extracted from Heap AM Core and
re-implemented using Pluggable TOAST API as 'Default Toaster'.
Default toaster is added as initial entry in PG_TOASTER table,
with Toaster name 'deftoaster' and still is part of PostgreSQL
core.
Overall TOAST mechanics is kept the same, the difference is
that from now on TOAST table initialization is done within
Generic Toaster "init" functions, toast and detoast functions
are called as Toaster with DEFAULT_TOASTER_OID via TOAST API.
Default Toaster is attached to TOASTable column by default if
not stated otherwise (by CREATE or ALTERD TABLE command option
SET TOASTER). Default Toaster could be replaced with custom
toaster by SET TOASTER clause in CREATE TABLE or ALTER TABLE
command.
Author: Teodor Sigaev <teodor@sigaev.ru>
Author: Oleg Bartunov <obartunov@postgrespro.ru>
Author: Nikita Glukhov <n.gluhov@postgrespro.ru>
Author: Nikita Malakhov <n.malakhov@postgrespro.ru>
Discussion: https://www.postgresql.org/message-id/flat/224711f9-83b7-a307-b17f-4457ab73aa0a@sigaev.ru1 parent e5adf3b commit 18245cb
File tree
46 files changed
+1670
-1185
lines changed- contrib/amcheck
- src
- backend
- access
- brin
- common
- heap
- index
- table
- toast
- catalog
- commands
- executor
- parser
- replication/logical
- statistics
- storage/large_object
- utils
- adt
- fmgr
- bin/psql
- include
- access
- catalog
- pl/plpgsql/src
- test/regress
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
46 files changed
+1670
-1185
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
| |||
0 commit comments