Обсуждение: Creating Extension pg_trgm

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

Creating Extension pg_trgm

От
itishree sukla
Дата:
Hi all,


I need to create pg_trgm extension, however in my current DB, we have some function based on pg_trgm. when i am trying to create extension, it is asking  to drop all dependant function, is there anyway without dropping any dependency i can create this extension.

Thanks in advance...

Regards,
Itishree

Re: Creating Extension pg_trgm

От
Tom Lane
Дата:
itishree sukla <itishree.sukla@gmail.com> writes:
> I need to create pg_trgm extension, however in my current DB, we have some
> function based on pg_trgm. when i am trying to create extension, it is
> asking  to drop all dependant function, is there anyway without dropping
> any dependency i can create this extension.

It sounds like what you're really trying to do is update a pre-extensions
installation of pg_trgm into extension form.  "CREATE EXTENSION pg_trgm
FROM unpackaged" should do that.

            regards, tom lane