Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bF9Sa-00073Z-JY for pgsql-docs@arkaria.postgresql.org; Tue, 21 Jun 2016 00:22:32 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bF9Sa-0002UM-1M for pgsql-docs@arkaria.postgresql.org; Tue, 21 Jun 2016 00:22:32 +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 1bF9SC-00025x-OO for pgsql-docs@postgresql.org; Tue, 21 Jun 2016 00:22:08 +0000 Received: from mail-vk0-x235.google.com ([2607:f8b0:400c:c05::235]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bF9S5-0003JH-8z for pgsql-docs@postgresql.org; Tue, 21 Jun 2016 00:22:07 +0000 Received: by mail-vk0-x235.google.com with SMTP id d185so714294vkg.0 for ; Mon, 20 Jun 2016 17:22:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=9v5tx8G6FbRUAIQKxxYl6FeHro4mKMqwZ3s7SIEPgpo=; b=f/mSZt+2qOhjWmK8273IBeAAML7CMYUUusaOTEio7Djo/y5MxP1vj4cVxWhzye/kV6 xN6Rxq04NnpnXSyCODAIlj3EGrt/sg4cvVoKNxhkUHcB8UO0xvNZupNu5/2nsmc+uuQC 85R7qXIrggqmNxVyODbgN1N5s0I9cAwG3XAIWqN+wbbk5PYlLY3PViG/eyOxzQuW9W02 ASlR1IjaJXjDfxxMr9brPspc/gaS5g5VuwWhtX0aI1+U4rasnoWNTc5bgjaZ5f7Njjfs +fahuk2J5L3cFAq59i9yz+/3jpBWDOouub9qUwvftvDF2TS0UtqlFCxXSfKf+K06gkI3 5GVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=9v5tx8G6FbRUAIQKxxYl6FeHro4mKMqwZ3s7SIEPgpo=; b=mp61iYr4F2pfzSiA4wP/KjVqtLD2NyTex0RV6MqEU0QWcVmA/Kf1oCD31l4tiDxLPB bkQQti/wRFqDHrZ+GPHqsbnEJoaJZCggmw20VoY5mKuFYEtnU1p70Z1jky/tiF8l5pHB x5KpQ5awhcUSn2ieYhd7gjLaiE0jS7ih9R0020xbXD0w0MtSSyJMqq2cUJaQaIPgLPpL WKSWhPs6yCqoDvrh6zYnCfMIqM3wPGAcdFCbo487kdJvXLd9AD6fr//amAzG/WAkpjlI IuvpMNG9AbwpEeMeGt4zIISrAMAzSkwRMuyqlrVTTn4LHW+BKN12lnDsDta3U65UI+j/ aWkQ== X-Gm-Message-State: ALyK8tKKAzJs9+OnZScJ0gVul3fs6ryEDSPo+fNqNUJMVAt698wA/hHBnoYUAnV0ouqbNv+p6frh7oAKzNNtlg== X-Received: by 10.31.199.6 with SMTP id x6mr8451480vkf.17.1466468520164; Mon, 20 Jun 2016 17:22:00 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.127.77 with HTTP; Mon, 20 Jun 2016 17:21:59 -0700 (PDT) In-Reply-To: <20160620160047.5792.49827@wrigleys.postgresql.org> References: <20160620160047.5792.49827@wrigleys.postgresql.org> From: Michael Paquier Date: Tue, 21 Jun 2016 09:21:59 +0900 Message-ID: Subject: Re: DROP EXTENSION To: mschwan@opentext.com Cc: pgsql-docs@postgresql.org Content-Type: text/plain; charset=UTF-8 X-Pg-Spam-Score: -1.2 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org On Tue, Jun 21, 2016 at 1:00 AM, wrote: > Page: https://www.postgresql.org/docs/9.5/static/sql-dropextension.html > Description: > I dropped an extension in my database with a function dependency. The > function was dropped (without messages of dependencies) and leaving the > function intact. > The lines "DROP EXTENSION removes extensions from the database. Dropping an > extension causes its component objects to be dropped as well." is not clear. > It should be stated that by default the dependencies remain intact after > the drop. I am not following here. If an extension is dropped, so are its dependencies. See that for example: =# create extension pg_trgm; CREATE EXTENSION Time: 27.978 ms =# \dx+ pg_trgm Objects in extension "pg_trgm" Object Description -------------------------------------------------------------------------------------------------- function gin_extract_query_trgm(text,internal,smallint,internal,internal,internal,internal) function gin_extract_value_trgm(text,internal) [... lots of objects, including functions ...] =# DROP EXTENSION pg_trgm; DROP EXTENSION =# \df gin_extract_query_trgm List of functions Schema | Name | Result data type | Argument data types | Type --------+------+------------------+---------------------+------ (0 rows) -- Michael -- Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs