Re: Override PostgreSQL internal functions

From: David Johnston <polobo(at)yahoo(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: Override PostgreSQL internal functions
Date: 2014-02-26 14:57:07
Message-ID: 1393426627566-5793703.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Sameer Kumar wrote
> Hi,
>
> Is there a way I can override (not overload) PostgreSQL internal functions
> e.g. replace()?
>
> By default replace() will replace string based on case sensitivity. I want
> to override this behavior and make it case insensitive. For Operators I
> can
> do that easily as:

Basic idea:

Create a schema called " overrides "
Put your function in " overrides "
Make sure the search path includes " overrides " before " pg_catalog "
This way lookup will always resolve to your function before it resolves to
the system supplied function.

David J.

--
View this message in context: http://postgresql.1045698.n5.nabble.com/Override-PostgreSQL-internal-functions-tp5793670p5793703.html
Sent from the PostgreSQL - novice mailing list archive at Nabble.com.

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Sameer Kumar 2014-02-27 01:29:01 Re: Override PostgreSQL internal functions
Previous Message Sameer Kumar 2014-02-26 14:03:55 Re: Override PostgreSQL internal functions