tableam: Allow choice of toast AM.
authorRobert Haas <rhaas@postgresql.org>
Tue, 7 Jan 2020 19:23:25 +0000 (14:23 -0500)
committerRobert Haas <rhaas@postgresql.org>
Tue, 7 Jan 2020 19:23:25 +0000 (14:23 -0500)
commit83322e38da1aa054e1b144cb37e6074a86854199
tree5237d3c2080280646d010936d816fc586be72311
parent814727858918154bdde9dbdfb99c544b52eb8818
tableam: Allow choice of toast AM.

Previously, the toast table had to be implemented by the same AM that
was used for the main table, which was bad, because the detoasting
code won't work with anything but heap. This commit doesn't fix the
latter problem, although there's another patch coming which does,
but it does let you pick something that works (i.e. heap, right now).

Patch by me, reviewed by Andres Freund.

Discussion: http://postgr.es/m/CA+TgmoZv-=2iWM4jcw5ZhJeL18HF96+W1yJeYrnGMYdkFFnEpQ@mail.gmail.com
src/backend/access/heap/heapam_handler.c
src/backend/catalog/toasting.c
src/include/access/tableam.h