Re: creating extension including dependencies

From: Petr Jelinek <petr(at)2ndquadrant(dot)com>
To: Jeff Janes <jeff(dot)janes(at)gmail(dot)com>
Cc: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, Andres Freund <andres(at)anarazel(dot)de>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Robert Haas <robertmhaas(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: creating extension including dependencies
Date: 2015-09-18 02:52:45
Message-ID: 55FB7C7D.30305@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2015-09-17 17:31, Jeff Janes wrote:
>
> If I fail to specify CASCADE and get an ERROR, I think there should be a
> HINT which suggests the use of CASCADE.
>
>
> create extension earthdistance ;
> ERROR: required extension "cube" is not installed
>
> (no hint)
>
> There is a HINT on the reverse operation:
> drop extension cube;
> ERROR: cannot drop extension cube because other objects depend on it
> DETAIL: extension earthdistance depends on extension cube
> HINT: Use DROP ... CASCADE to drop the dependent objects too.

Makes sense.

>
> Also, It would be nice to have psql tab complete the word CASCADE.
>

Hmm, it already does?

--
Petr Jelinek http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Kyotaro HORIGUCHI 2015-09-18 02:58:26 Re: extend pgbench expressions with functions
Previous Message James Sewell 2015-09-18 02:27:09 Streaming Replication clusters and load balancing