pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew@dunslane.net>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Revert "make immutability tests in to_json and to_jsonb complete
Date: Fri, 06 Nov 2026 19:49:12 +0000
Message-ID: <E1xPPw0-00000000VYA-3Gem@gemulon.postgresql.org> (raw)

Revert "make immutability tests in to_json and to_jsonb complete"

This reverts commit ecd9288624a.

Expression indexes, generated columns and partition keys created with
the reverted patch in place that depend on its behavior are not
removed, but a dump and restore or a pg_upgrade will now fail to
recreate them.  They need to be dropped or redefined before upgrading.

Discussion: https://postgr.es/m/179372513496.2500379.6217138376932454060@gmail.com
Discussion: https://postgr.es/m/CA+TgmoaiothgQrw9OtgsMzBUCnqJ2jdaGTbS6o3fkjCd+LfzWw@mail.gmail.com
Backpatch-through: 19

Branch
------
master

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

Modified Files
--------------
src/backend/utils/adt/json.c          |  38 +++++++-
src/backend/utils/adt/jsonb.c         |  38 +++++++-
src/backend/utils/adt/jsonfuncs.c     | 105 ----------------------
src/include/utils/jsonfuncs.h         |   2 -
src/test/regress/expected/sqljson.out | 165 ----------------------------------
src/test/regress/sql/sqljson.sql      |  89 ------------------
6 files changed, 70 insertions(+), 367 deletions(-)



view thread (2+ messages)  latest in thread

Message-ID: <E1xPPw0-00000000VYA-3Gem@gemulon.postgresql.org>
Permalink:  ../E1xPPw0-00000000VYA-3Gem@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1xPPw0-00000000VYA-3Gem@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: andrew@dunslane.net
  Subject: Re: pgsql: Revert "make immutability tests in to_json and to_jsonb complete
  In-Reply-To: <E1xPPw0-00000000VYA-3Gem@gemulon.postgresql.org>
  References: <E1xPPw0-00000000VYA-3Gem@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox