pgsql: Create stub functions to support pg_upgrade of old contrib/tsear

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Create stub functions to support pg_upgrade of old contrib/tsear
Date: 2016-03-02 22:38:03
Message-ID: E1abFP9-0002EP-B5@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Create stub functions to support pg_upgrade of old contrib/tsearch2.

Commits 9ff60273e35cad6e and dbe2328959e12701 adjusted the declarations
of some core functions referenced by contrib/tsearch2's install script,
forgetting that in a pg_upgrade situation, we'll be trying to restore
operator class definitions that reference the old signatures. We've
hit this problem before; solve it in the same way as before, namely by
installing stub functions that have the expected signature and just
invoke the correct function. Per report from Jeff Janes.

(Someday we ought to stop supporting contrib/tsearch2, but I'm not
sure today is that day.)

Branch
------
master

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

Modified Files
--------------
src/backend/utils/adt/tsginidx.c | 20 ++++++++++++++++++++
src/backend/utils/adt/tsgistidx.c | 13 +++++++++++++
src/backend/utils/adt/tsquery_gist.c | 13 +++++++++++++
src/include/catalog/catversion.h | 2 +-
src/include/catalog/pg_proc.h | 9 +++++++++
src/include/tsearch/ts_utils.h | 4 ++++
6 files changed, 60 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2016-03-03 04:31:59 pgsql: Fix json_to_record() bug with nested objects.
Previous Message Alvaro Herrera 2016-03-02 21:23:20 pgsql: Prefix temp data dirs with the node name