Re: Easiest way to CREATE EXTENSION when upgrading from 9.0 to 9.2?

From: Joshua Boyd <JBoyd(at)nxsystemsinc(dot)com>
To: Kevin Grittner <kgrittn(at)ymail(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Easiest way to CREATE EXTENSION when upgrading from 9.0 to 9.2?
Date: 2013-11-25 21:07:21
Message-ID: E7DD98A49ADB154CA9DA5D71EBE751A23659FE3E@RAISTLIN.NXSYS.PDX
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ah - that's what unpackaged meant. I read that page, but didn’t fully understand what it was referring to. Thank you for your quick reply. :)

Josh

-----Original Message-----
From: Kevin Grittner [mailto:kgrittn(at)ymail(dot)com]
Sent: Friday, November 22, 2013 1:21 PM
To: Joshua Boyd; pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] Easiest way to CREATE EXTENSION when upgrading from 9.0 to 9.2?

Joshua Boyd <JBoyd(at)nxsystemsinc(dot)com> wrote:

> We have a pre-production environment that was running postgresql
> 9.0 and we created the extension “pgcrypto” in it by feeding psql the
> contrib/pgcrypto.sql ..  We just upgraded to 9.2 (via
> pg_upgrade) – naturally all the functions still exist, but pgcrypto is
> not a registered extension with the database, nor is it the most
> recent sql for the extension.  What would be the easiest way to both
> register and upgrade to the most recent version of pgcrypto in our new
> version? Or is running a rollback script to remove all of those and
> then running CREATE EXTENSION our only option?

http://www.postgresql.org/docs/9.2/interactive/sql-createextension.html

CREATE EXTENSION pgcrypto FROM unpackaged;

--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Browse pgsql-general by date

  From Date Subject
Next Message hamann.w 2013-11-25 21:15:28 Re: Debugging of C functions
Previous Message Jeff Janes 2013-11-25 20:47:19 Re: wiki on monitoring locks has queries that don't seem to work