pgsql: Change ginMergeItemPointers to return a palloc'd array.

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Change ginMergeItemPointers to return a palloc'd array.
Date: 2014-03-24 16:44:53
Message-ID: E1WS7zZ-0003ab-Go@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Change ginMergeItemPointers to return a palloc'd array.

That seems nicer than making it the caller's responsibility to pass a
suitable-sized array. All the callers were just palloc'ing an array anyway.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/bb42e21be274a71f6868ce2fc8fae2c15c3ecf66

Modified Files
--------------
src/backend/access/gin/gindatapage.c | 7 +++---
src/backend/access/gin/gininsert.c | 9 +++----
src/backend/access/gin/ginpostinglist.c | 40 ++++++++++++++++---------------
src/include/access/gin_private.h | 6 ++---
4 files changed, 30 insertions(+), 32 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2014-03-24 18:37:19 pgsql: Fix ts_rank_cd() to ignore stripped lexemes
Previous Message Andrew Dunstan 2014-03-24 14:42:01 Re: pgsql: Introduce jsonb, a structured format for storing json.