Re: is prefix pg_ reservated ? - Mailing list pgsql-hackers

From Robert Haas
Subject Re: is prefix pg_ reservated ?
Date
Msg-id CA+TgmoaZY=ymr9_KcDkQd_SD3-F9bo_HSq7_qPogJJYpLchSPw@mail.gmail.com
Whole thread Raw
In response to is prefix pg_ reservated ?  (Pavel Stehule <pavel.stehule@gmail.com>)
List pgsql-hackers
On Tue, Aug 7, 2012 at 7:16 AM, Pavel Stehule <pavel.stehule@gmail.com> wrote:
> Hello all
>
> I found strange behave of postgresql. I would to use name
> pg_stat_get_some for custom function. Probably it is not smart from
> me, because I found so functions that has prefix pg are not searched
> via search_path.
>
> postgres=# select public.pg_stat_get_creation_time('xxx'::regclass);
>    pg_stat_get_creation_time
> -------------------------------
>  2012-08-07 12:43:25.592137+02
> (1 row)
>
> postgres=# select pg_stat_get_creation_time('xxx'::regclass);
> ERROR:  internal function "pg_stat_get_creation_time" is not in
> internal lookup table
>
> It is expected and desired behave?

That error message has nothing to do with a pg_ prefix, as you would
find out yourself if you grepped for it.  It means you created the
functional using language "internal", when you probably should have
used "c".

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: [PATCH] Docs: Make notes on sequences and rollback more obvious
Next
From: Robert Haas
Date:
Subject: Re: WIP Patch: Use sortedness of CSV foreign tables for query planning