pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Ensure extension exists
3+ messages / 3 participants
[nested] [flat]

* Ensure extension exists
@ 2018-02-02 00:47 Geoffrey Hoffman <geoffrey.hoffman@gmail.com>
  2018-02-02 19:38 ` Re: Ensure extension exists Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Geoffrey Hoffman @ 2018-02-02 00:47 UTC (permalink / raw)
  To: pgsql-general

I want to use the pgcrypto extension with a particular database. Does it exist permanently and survive a server reboot? Or if not, how do you ensure it runs when the server restarts?

I ask because in my Docker development environment I have to run it every time I restart the container, and just want to be prepared for production in AWS Aurora.

Thanks,
Geoff



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Ensure extension exists
  2018-02-02 00:47 Ensure extension exists Geoffrey Hoffman <geoffrey.hoffman@gmail.com>
@ 2018-02-02 19:38 ` Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
  2018-02-02 19:40   ` Re: Ensure extension exists geoff hoffman <geoff@rxmg.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Peter Eisentraut @ 2018-02-02 19:38 UTC (permalink / raw)
  To: Geoffrey Hoffman <geoffrey.hoffman@gmail.com>; pgsql-general

On 2/1/18 19:47, Geoffrey Hoffman wrote:
> I want to use the pgcrypto extension with a particular database. Does it exist permanently and survive a server reboot? Or if not, how do you ensure it runs when the server restarts?

Once an extension is installed, it stays installed, just like any other
permanent database object such as tables and functions.

> I ask because in my Docker development environment I have to run it every time I restart the container, and just want to be prepared for production in AWS Aurora.

Maybe you have your development environment set up in a way that it
blows away your database on each run.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Ensure extension exists
  2018-02-02 00:47 Ensure extension exists Geoffrey Hoffman <geoffrey.hoffman@gmail.com>
  2018-02-02 19:38 ` Re: Ensure extension exists Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
@ 2018-02-02 19:40   ` geoff hoffman <geoff@rxmg.com>
  0 siblings, 0 replies; 3+ messages in thread

From: geoff hoffman @ 2018-02-02 19:40 UTC (permalink / raw)
  To: pgsql-general

On Feb 2, 2018, at 12:38 PM, Peter Eisentraut <peter.eisentraut@2ndquadrant.com> wrote:
> 
> On 2/1/18 19:47, Geoffrey Hoffman wrote:
>> I want to use the pgcrypto extension with a particular database. Does it exist permanently and survive a server reboot? Or if not, how do you ensure it runs when the server restarts?
> 
> Once an extension is installed, it stays installed, just like any other
> permanent database object such as tables and functions.
> 
>> I ask because in my Docker development environment I have to run it every time I restart the container, and just want to be prepared for production in AWS Aurora.
> 
> Maybe you have your development environment set up in a way that it
> blows away your database on each run.
> 

Yep, ok thanks for confirming!





^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2018-02-02 19:40 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-02-02 00:47 Ensure extension exists Geoffrey Hoffman <geoffrey.hoffman@gmail.com>
2018-02-02 19:38 ` Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
2018-02-02 19:40   ` geoff hoffman <geoff@rxmg.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox