pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Karsten Hilbert <Karsten.Hilbert@gmx.net>
To: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: multi-SQL command string aborts despite IF EXISTS
Date: Mon, 28 Jan 2019 15:47:07 +0100
Message-ID: <20190128144705.GE2141@hermes.hilbert.loc> (raw)
In-Reply-To: <ea7e30c91d85b10a72fb7cc05e2a6e68e5fbcf43.camel@cybertec.at>
References: <20190128112326.GB2141@hermes.hilbert.loc>
	<ea7e30c91d85b10a72fb7cc05e2a6e68e5fbcf43.camel@cybertec.at>

On Mon, Jan 28, 2019 at 03:17:47PM +0100, Laurenz Albe wrote:

> > Now, I would have thought that the "IF NOT EXISTS" part of
> > the CREATE EXTENSION would have allowed the subsequent CREATE
> > INDEX to succeed.
> > 
> > I am wrong ?
> 
> No, you are right.
>
> The "pg_trgm" extension does *not* exist in the database, and that is your problem.

Wow, I didn't realize the difference between pg_extension and
pg_available_extensions ...

> Perhaps you preinstalled the extension in the wrong database (postgres?).

It wasn't, indeed, *installed* (despite being available ;)

Thanks,
Karsten
-- 
GPG  40BE 5B0E C98E 1713 AFA6  5BC0 3BEA AC80 7D4F C89B




view thread (3+ messages)

Message-ID: <20190128144705.GE2141@hermes.hilbert.loc>
Permalink:  ../20190128144705.GE2141@hermes.hilbert.loc/
Also on:    postgresql.org/message-id/20190128144705.GE2141@hermes.hilbert.loc

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: Karsten.Hilbert@gmx.net
  Subject: Re: multi-SQL command string aborts despite IF EXISTS
  In-Reply-To: <20190128144705.GE2141@hermes.hilbert.loc>
  References: <20190128112326.GB2141@hermes.hilbert.loc> <ea7e30c91d85b10a72fb7cc05e2a6e68e5fbcf43.camel@cybertec.at> <20190128144705.GE2141@hermes.hilbert.loc>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox