Unix Technical Forum

problem with function loading

This is a discussion on problem with function loading within the pgsql Hackers forums, part of the PostgreSQL category; --> Dear Pg hackers, After upgrading from 7.4.2 to 8.0.0 I get this message when trying to load a C ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Hackers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-11-2008, 03:50 AM
=?ISO-8859-2?Q?Ber=E9nyi_G=E1bor?=
 
Posts: n/a
Default problem with function loading

Dear Pg hackers,

After upgrading from 7.4.2 to 8.0.0 I get this message when trying to
load a C language function:

permission denied for language c

Even postgres and root gets this message. SQL functions work well.

Please, help.

With love, Gabor

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-11-2008, 03:50 AM
Michael Fuhr
 
Posts: n/a
Default Re: problem with function loading

On Wed, Feb 23, 2005 at 04:53:34PM +0100, Berényi Gábor wrote:

> After upgrading from 7.4.2 to 8.0.0 I get this message when trying to
> load a C language function:
>
> permission denied for language c
>
> Even postgres and root gets this message. SQL functions work well.


Are you sure "postgres" and "root" are database superusers? What's
the result of the following query?

SELECT usename FROM pg_user WHERE usesuper IS TRUE;

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-11-2008, 03:50 AM
=?ISO-8859-2?Q?Ber=E9nyi_G=E1bor?=
 
Posts: n/a
Default Re: problem with function loading

Dear Michael and others,

> SELECT usename FROM pg_user WHERE usesuper IS TRUE;


Result: postgres. So the problem persist.

Does it work for you? I use x86 Linux 2.4.20.

Look forward to hear of you, Gabor


Michael Fuhr <mike@fuhr.org> írta:

> On Wed, Feb 23, 2005 at 04:53:34PM +0100, Berényi Gábor wrote:
>
> > After upgrading from 7.4.2 to 8.0.0 I get this message when trying

to
> > load a C language function:
> >
> > permission denied for language c
> >
> > Even postgres and root gets this message. SQL functions work

well.
>
> Are you sure "postgres" and "root" are database superusers?

What's
> the result of the following query?
>
> SELECT usename FROM pg_user WHERE usesuper IS TRUE;
>
> --
> Michael Fuhr
> http://www.fuhr.org/~mfuhr/
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
>


---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-11-2008, 03:50 AM
Michael Fuhr
 
Posts: n/a
Default Re: problem with function loading

On Wed, Feb 23, 2005 at 11:39:19PM +0100, Berényi Gábor wrote:
>
> > SELECT usename FROM pg_user WHERE usesuper IS TRUE;

>
> Result: postgres. So the problem persist.


Please show the exact statement you're running and the exact output
(copied and pasted, not typed manually). Also the following, just
so we're all clear about what user you're running as:

SELECT * FROM pg_user WHERE usename = CURRENT_USER;

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:11 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com