pgsql: Add support for multiple kinds of external toast datums.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add support for multiple kinds of external toast datums.
Date: 2013-07-02 17:39:22
Message-ID: E1Uu4Xy-0004xY-7X@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add support for multiple kinds of external toast datums.

To that end, support tags rather than lengths for external datums.
As an example of how this can be used, add support or "indirect"
tuples which point to some externally allocated memory containing
a toast tuple. Similar infrastructure could be used for other
purposes, including, perhaps, support for alternative compression
algorithms.

Andres Freund, reviewed by Hitoshi Harada and myself

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/3682025015390a8e802e0752589162db7bd70b5d

Modified Files
--------------
src/backend/access/heap/tuptoaster.c | 110 +++++++++++++---
src/include/access/tuptoaster.h | 5 +
src/include/postgres.h | 84 ++++++++----
src/test/regress/expected/indirect_toast.out | 151 ++++++++++++++++++++++
src/test/regress/input/create_function_1.source | 5 +
src/test/regress/output/create_function_1.source | 4 +
src/test/regress/parallel_schedule | 2 +-
src/test/regress/regress.c | 92 +++++++++++++
src/test/regress/serial_schedule | 1 +
src/test/regress/sql/indirect_toast.sql | 61 +++++++++
10 files changed, 472 insertions(+), 43 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2013-07-03 00:35:10 pgsql: pg_restore: Error about incompatible options
Previous Message Alvaro Herrera 2013-07-02 17:16:12 pgsql: Mention extra_float_digits in floating point docs