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 1ehhCq-0000uC-03 for pgsql-general@arkaria.postgresql.org; Fri, 02 Feb 2018 19:41:04 +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 1ehhCp-0008Ou-1u for pgsql-general@arkaria.postgresql.org; Fri, 02 Feb 2018 19:41:03 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ehhCo-0008Oj-KJ for pgsql-general@lists.postgresql.org; Fri, 02 Feb 2018 19:41:02 +0000 Received: from mail-pg0-x22d.google.com ([2607:f8b0:400e:c05::22d]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ehhCk-0001qG-TE for pgsql-general@postgresql.org; Fri, 02 Feb 2018 19:41:02 +0000 Received: by mail-pg0-x22d.google.com with SMTP id m20so14512647pgc.11 for ; Fri, 02 Feb 2018 11:40:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rxmg-com.20150623.gappssmtp.com; s=20150623; h=from:content-transfer-encoding:mime-version:subject:date:references :to:in-reply-to:message-id; bh=1XiUYyC1OAjIRjjldbrhR4e0FyjI+5PJB3zZj/aCn2A=; b=xEX34WBRxCIECCK2iCkAMby3Qzdh0lp9XFV89YS/KCPUUG1cCTLQEiubhn760Jbp4r bcKiyJWrdXtPeE3fICpql2mythgReIdm4JGTJkH4bu+Ek6DoRaV40nQYHgLno1DPS7ye dFS9MEHKDR+drERSp6bAl8QlTlG55FY8Y4ZRyBeFCVJxRQ0/PsNYzpZWczEqPkUj2lmV 2T143rTv/eZ47iaz+LVKpmDCpYEqWwwxRnVQs+T/EtLqYZ1WD6tYpQCWNQr9tUSyx0DT VQu0/YdvaAaOiE6YvyqP2gewnbupgyDN0X+BbsPo6GZTr5CI7fNT0z5U2256bvuKRczt 3Irg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:date:references:to:in-reply-to:message-id; bh=1XiUYyC1OAjIRjjldbrhR4e0FyjI+5PJB3zZj/aCn2A=; b=MR46Ofzb2POgW631r5kDdsVBOA6fvP+ZpeLbZhtzfMrhS4YZsK5/KVEckYC/0CThmw wqGbkDRltB4jn1Xz11UCnulSp7c8J2ROKoU4hOJCaE3FsCtkvO+BRidLJcbjNh7q4oYr bDmnbfle4KKccwUBiOfqDLXXv5r6eOLVdvG42g4f7QGTSLuL6KiTEVXV0Ssc/IJPITuv VzgMX/N4CBfkLUHdI/AlTIdMY771j2PiZlDsa2kwMjDhOcMD6yuNSf3wI+131ExyzHh/ vcYjhCyAEe2G2WwclnPWmTZl443QJGfli49c9alzTJ9JC2IqVowf6anvEo6pcvtp8iMI gkgA== X-Gm-Message-State: AKwxytfBbTusds8uVJdGmdZvY+vXPRzg7m1Xk3cqiOsKxKWlX8pIPS7u xFQvbaWRPzyNLnidj8GYDWDzucp09dA= X-Google-Smtp-Source: AH8x224UDTC7aAAXFDX6uxXkFOISRS20l4G+TtzEXDLkjT899mL/aC+d3g/4dX6bQ58HTDOluDghGQ== X-Received: by 10.98.216.2 with SMTP id e2mr40810318pfg.151.1517600455771; Fri, 02 Feb 2018 11:40:55 -0800 (PST) Received: from [192.168.222.7] (ec2-34-216-35-238.us-west-2.compute.amazonaws.com. [34.216.35.238]) by smtp.gmail.com with ESMTPSA id o25sm3709832pgc.75.2018.02.02.11.40.54 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Feb 2018 11:40:55 -0800 (PST) From: geoff hoffman Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\)) Subject: Re: Ensure extension exists Date: Fri, 2 Feb 2018 12:40:53 -0700 References: <67cf532f-f608-a94e-757e-8a1ba928d0bd@2ndquadrant.com> To: pgsql-general@postgresql.org In-Reply-To: <67cf532f-f608-a94e-757e-8a1ba928d0bd@2ndquadrant.com> Message-Id: X-Mailer: Apple Mail (2.3445.5.20) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Feb 2, 2018, at 12:38 PM, Peter Eisentraut = wrote: >=20 > 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? >=20 > Once an extension is installed, it stays installed, just like any = other > permanent database object such as tables and functions. >=20 >> 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. >=20 > Maybe you have your development environment set up in a way that it > blows away your database on each run. >=20 Yep, ok thanks for confirming!