Thread: Creating Extension pg_trgm

Creating Extension pg_trgm

From
itishree sukla
Date:
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

From
Tom Lane
Date:
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