pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rob Sargent <robjsargent@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: stan <stanb@panix.com>
Cc: pgsql-general@postgresql.org
Subject: Re: citext, actually probably using extensions
Date: Fri, 20 Sep 2019 22:59:54 -0600
Message-ID: <503294F3-9916-4DAF-AEC5-EAB919D126C5@gmail.com> (raw)
In-Reply-To: <24494.1569006722@sss.pgh.pa.us>
References: <20190920181324.GA17323@panix.com>
	<24494.1569006722@sss.pgh.pa.us>



> On Sep 20, 2019, at 1:12 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> 
> stan <stanb@panix.com> writes:
>> But I must be doing something wrong. As the PG superuser, I did this:
>> postgres=# CREATE EXTENSION IF NOT EXISTS citext WITH SCHEMA public;
>> CREATE EXTENSION
> 
>> and as the superuser it shows up in the \dx display
> 
>> BUT as a normal user:
> 
>> stan=> \dx
>> List of installed extensions
>> Name   | Version |   Schema   |         Description
>                      
>> ---------+---------+------------+------------------------------
>> plpgsql | 1.0     | pg_catalog | PL/pgSQL procedural
>>                   language
>> (1 row)
> 
>> It does not.
> 
> Judging from the prompts you show, you installed the extension
> in the "postgres" database, but you need it in the "stan" database.
> 
>            regards, tom lane
> 
> 
And if you install the extension in the template1 db it will be included in ‘create database’ calls. Rather than having to add it by hand each time 




view thread (5+ messages)  latest in thread

Message-ID: <503294F3-9916-4DAF-AEC5-EAB919D126C5@gmail.com>
Permalink:  ../503294F3-9916-4DAF-AEC5-EAB919D126C5@gmail.com/
Also on:    postgresql.org/message-id/503294F3-9916-4DAF-AEC5-EAB919D126C5@gmail.com

 · 

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: robjsargent@gmail.com, tgl@sss.pgh.pa.us, stanb@panix.com
  Subject: Re: citext, actually probably using extensions
  In-Reply-To: <503294F3-9916-4DAF-AEC5-EAB919D126C5@gmail.com>
  References: <20190920181324.GA17323@panix.com> <24494.1569006722@sss.pgh.pa.us> <503294F3-9916-4DAF-AEC5-EAB919D126C5@gmail.com>

* 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