Re: How to access the extension's operator installed with schema ?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: xoip <sorin(dot)mircioiu(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: How to access the extension's operator installed with schema ?
Date: 2012-09-14 19:36:19
Message-ID: 19830.1347651379@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

xoip <sorin(dot)mircioiu(at)gmail(dot)com> writes:
> CREATE SCHEMA inty AUTHORIZATION psql_user;
> CREATE EXTENSION intarray SCHEMA inty;
> SELECT inty.uniq(ARRAY[1,2,3]); --> OK, result: {1,2,3}

> How can I access the operator with inty schema?

The easy way is to change your search_path to include inty.
If you really don't want to do that, you can write
OPERATOR(inty.+)
but that's pretty inconvenient.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Paul Jungwirth 2012-09-14 19:51:02 Re: See the WHERE clause of a partial index
Previous Message Tom Lane 2012-09-14 19:18:43 Re: See the WHERE clause of a partial index