Re: citext, actually probably using extensions

From: Rob Sargent <robjsargent(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: stan <stanb(at)panix(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: citext, actually probably using extensions
Date: 2019-09-21 04:59:54
Message-ID: 503294F3-9916-4DAF-AEC5-EAB919D126C5@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> On Sep 20, 2019, at 1:12 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>
> stan <stanb(at)panix(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Morris de Oryx 2019-09-21 06:01:03 Re: citext, actually probably using extensions
Previous Message Tom Lane 2019-09-20 19:12:02 Re: citext, actually probably using extensions