pgsql: Partially flatten struct tupleDesc so that it can be used in DSM

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Partially flatten struct tupleDesc so that it can be used in DSM
Date: 2017-08-20 18:23:19
Message-ID: E1djUsZ-0000ME-2x@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Partially flatten struct tupleDesc so that it can be used in DSM.

TupleDesc's attributes were already stored in contiguous memory after the
struct. Go one step further and get rid of the array of pointers to
attributes so that they can be stored in shared memory mapped at different
addresses in each backend. This won't work for TupleDescs with contraints
and defaults, since those point to other objects, but for many purposes
only attributes are needed.

Author: Thomas Munro
Reviewed-By: Andres Freund
Discussion: https://postgr.es/m/CAEepm=0ZtQ-SpsgCyzzYpsXS6e=kZWqk3g5Ygn3MDV7A8dabUA@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/c6293249dc178f52dd508c3e6ff353af41c90b58

Modified Files
--------------
src/backend/access/common/tupdesc.c | 67 ++++++++-----------------------------
src/include/access/tupdesc.h | 8 ++---
2 files changed, 18 insertions(+), 57 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Noah Misch 2017-08-21 04:26:50 pgsql: Inject $(ICU_LIBS) regardless of platform.
Previous Message Noah Misch 2017-08-19 19:54:08 Re: [COMMITTERS] pgsql: Account for catalog snapshot in PGXACT->xmin updates.