| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | Tomáš Uko <uko(at)avast(dot)com> |
| Cc: | pgsql-admin(at)postgresql(dot)org |
| Subject: | Re: Problem with extension |
| Date: | 2016-09-22 11:36:59 |
| Message-ID: | 14201.1474544219@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-admin |
=?UTF-8?B?VG9tw6HFoSBVa28=?= <uko(at)avast(dot)com> writes:
> Recreating extension again via CREATE EXTENSION doesnt work
> XY=# CREATE EXTENSION hstore SCHEMA public;
> ERROR: type "hstore" already exists
> XY=# CREATE EXTENSION hstore;
> ERROR: type "hstore" already exists
Perhaps what you've got there is an hstore installation from before
extensions existed? Try "create extension hstore from unpackaged"
to update it.
> Another thing, when we try to add extesion with insert to pg_extension it
> gets OID far greater than any other:
> XY=# select *,pg_extension.oid from pg_extension;
When you don't know what you are doing, trying to fix it with manual
surgery on the system catalogs is a good way to make things worse.
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tomáš Uko | 2016-09-22 12:09:01 | Re: Problem with extension |
| Previous Message | Tomáš Uko | 2016-09-22 11:10:09 | Re: Problem with extension |