Обсуждение: pgsql: Create stub functions to support pg_upgrade of old contrib/tsear

Поиск
Список
Период
Сортировка

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

От
Tom Lane
Дата:
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(-)