Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hla2r-0002tH-8K for pgsql-general@arkaria.postgresql.org; Thu, 11 Jul 2019 14:27:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hla2o-000442-Dv for pgsql-general@arkaria.postgresql.org; Thu, 11 Jul 2019 14:27:34 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hla2m-00043o-Dz for pgsql-general@lists.postgresql.org; Thu, 11 Jul 2019 14:27:33 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hla2f-0000UY-GC for pgsql-general@lists.postgresql.org; Thu, 11 Jul 2019 14:27:31 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id AB70A21F2E; Thu, 11 Jul 2019 10:27:24 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Thu, 11 Jul 2019 10:27:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=P Jy1akbDk34Cl1pQOUCvizmikRGrKzroeC+S3aThRgw=; b=lFHa0W1GNWGVJ9FsP DmAbjDG0hM2WfHOoN3X4CyfRrQuaEUPxz4J1q8mzl6JK+p1xN05LKKi1XBlMJKx1 jqweufioD1Q6RyBFAyMJF5slPpq9wHmbjpgOLOASF9Ru7x1cKdOaWNGguF8vhaK3 F9BIQJwFtM1VsyKCt8zu3RgvlihX0Md7EntJNz7QZ69gh4XhdEgOjjkkypVJEzM9 6xUWUVFGDPZEXclRgZZKi0o9Iguvm8hfWU6DGZcH+/6JlCGfpz9yQiXYFsFmEdKU 9+91HuQopRq1afpzkY54RyhtuTYTpv6M98cTwjKZWWheM9o0sv+7LtvHPHjhVrc6 MsdPQ== 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-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=PJy1akbDk34Cl1pQOUCvizmikRGrKzroeC+S3aThR gw=; b=t7Jhiv5gtUrzPVUZNhVPPoZJMbpOJUIOcvma3G5nZD3nkbdJyj7qb8M+/ IVVOy3uyKtLUN07cnEnoWRGsf47auwgvtum7qsKF8oPB3wl4hoSX4XJiZKnc05pD 8axarR5/eaL86Us+xhyTZqifO0b/0z7t7MxdJ21axapbGX+PuiVMjlnHCGIa/IKZ A/sqkFBbDNzDg5Tpa+TIxv9SySdL2HGrRh9q/N5K5cFz5AgRsED7Xn89CfBHVjUw gNYIa19+lSrLX6w+gS+4TiBC6LNFThxLa0/wXrBaFC2z5oqw00kGg3i1nmxU1aj9 GoWYhKbDsX9kul5mm+K6qKw32Ux6g== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrgeekgdejkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthekre dttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhl rghvvghrsegrkhhlrghvvghrrdgtohhmqeenucfkphepjedurddvuddvrdduhedtrddvtd dvnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhl rghvvghrrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from [192.168.1.4] (unknown [71.212.150.202]) by mail.messagingengine.com (Postfix) with ESMTPA id EFCE8380075; Thu, 11 Jul 2019 10:27:23 -0400 (EDT) Subject: Re: Extensions To: bhargav kamineni , pgsql-general@lists.postgresql.org References: From: Adrian Klaver Message-ID: <1dfd02cf-ca53-22d9-d2fd-98c7bf75e12a@aklaver.com> Date: Thu, 11 Jul 2019 07:27:23 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 7/11/19 6:54 AM, bhargav kamineni wrote: > Hi Team, > > I have a doubt regarding the extensions.My db has these many extensions >         Name > ------------------- >  adminpack >  btree_gist >  dblink >  file_fdw >  fuzzystrmatch >  hstore >  insert_username >  intarray >  pageinspect >  pg_buffercache >  pg_freespacemap >  pg_repack >  pg_stat_statements >  pg_trgm >  pgcrypto >  plpgsql >  unaccent I'm assuming the above came from using \dx in psql. > > > How can i figure out what all extensions are being used ? is there any way ? One quick and dirty way I know is: test=# begin ; BEGIN test=# drop extension plpgsql ; ERROR: cannot drop extension plpgsql because other objects depend on it DETAIL: function upgrade_serial_to_identity(regclass,name) depends on language plpgsql function fizzbuzz(integer,integer) depends on language plpgsql function child_fnc() depends on language plpgsql function child_fnc(character varying) depends on language plpgsql function parent_fnc() depends on language plpgsql ... rollback; > > Thanks, > Bhargav -- Adrian Klaver adrian.klaver@aklaver.com