Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ehhAi-0000eD-EN for pgsql-general@arkaria.postgresql.org; Fri, 02 Feb 2018 19:38:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ehhAg-0000Wc-2n for pgsql-general@arkaria.postgresql.org; Fri, 02 Feb 2018 19:38:50 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ehhAf-0000WS-OH for pgsql-general@lists.postgresql.org; Fri, 02 Feb 2018 19:38:49 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ehhAd-0005jb-1o for pgsql-general@postgresql.org; Fri, 02 Feb 2018 19:38:48 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 9CA9D21FB9; Fri, 2 Feb 2018 14:38:45 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute7.internal (MEProxy); Fri, 02 Feb 2018 14:38:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=osXIMV LU2wQYxJtI/mskSWodI0OwXFYQONYbxDwzB3o=; b=QyPHXwzHNbG+6z4JQYZKKR Iu5/MRsM6l8jjRfuL+LSAIdg7QD+yl4ZqP0Hx8TPqiaPkIYZfTyl6LAb2VtYxdQC Eon3FaCBLRnW/s7dYg+PpHTNWheZBdELCEkuIPBgpr24AzFYhYIQjepqYLQ9XrRh fshz0urJ5ZOA9DYoYakEqvKZPLgn7PvgyUFfvYhz+gEA2AKm9EgW/Pa2rZioBzy2 wdB3J23D6w3zUTaV/jE61g9PVFbCy6uv8rS4lSUpjlIB+82AG3YEEdQhR12xrjNp bWd5Qh33nE/pJsahK6Ub6cvBp6fA+f5DhIVNrgIf2dUdC27JpTqlAJc8cq+++Z3w == X-ME-Sender: Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id 579D824837; Fri, 2 Feb 2018 14:38:45 -0500 (EST) Subject: Re: Ensure extension exists To: Geoffrey Hoffman , pgsql-general@postgresql.org References: From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <67cf532f-f608-a94e-757e-8a1ba928d0bd@2ndquadrant.com> Date: Fri, 2 Feb 2018 14:38:45 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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