需要将旧版扩展的库文件复制到旧版 PostgreSQL lib 目录下:
cp /usr/lib/postgresql/pgroonga* /opt/pgsql-13/lib
reindex index index_name;