pgsql: Teach add_json() that jsonb is of TYPCATEGORY_JSON.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Teach add_json() that jsonb is of TYPCATEGORY_JSON.
Date: 2014-05-09 13:44:18
Message-ID: E1Wil62-0007Pv-Jn@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Teach add_json() that jsonb is of TYPCATEGORY_JSON.

This code really needs to be refactored so that there aren't so many copies
that can diverge. Not to mention that this whole approach is probably
wrong. But for the moment I'll just stick my finger in the dike.
Per report from Michael Paquier.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/62e57ff040e5d0acd303b94e86fff689effc5957

Modified Files
--------------
src/backend/utils/adt/json.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2014-05-09 14:43:49 pgsql: Remove overeager assertion in logical_heap_begin_rewrite.
Previous Message Tom Lane 2014-05-09 13:26:28 pgsql: Fix typcategory labeling of jsonb.