Skip site navigation (1) Skip section navigation (2)

Re: [GENERAL] Shared Objects (Dynamic loading)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Jasbinder Bali" <jsbali(at)gmail(dot)com>
Cc: "Michael Fuhr" <mike(at)fuhr(dot)org>, pgsql-novice(at)postgresql(dot)org
Subject: Re: [GENERAL] Shared Objects (Dynamic loading)
Date: 2006-08-28 16:45:06
Message-ID: 6020.1156783506@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-generalpgsql-novice
"Jasbinder Bali" <jsbali(at)gmail(dot)com> writes:
> Also, when i say LOAD 'parser' where parser.so is the shared object i've
> loaded dynamically
> using CREATE FUNCTION, its says
> ERROR:  could not access file "parser": No such file or directory
> Why would it give me this error?

Probably because you didn't give it a path to the file.  You need either
an absolute path or something involving the special symbol $libdir.
This is not different from what's required in CREATE FUNCTION.

			regards, tom lane

In response to

pgsql-novice by date

Next:From: Richmond DyesDate: 2006-08-28 19:04:26
Subject: Difference between char and varchar
Previous:From: Jasbinder BaliDate: 2006-08-28 15:52:26
Subject: Re: [GENERAL] Shared Objects (Dynamic loading)

pgsql-general by date

Next:From: Harpreet DhaliwalDate: 2006-08-28 17:27:04
Subject: Re: Perl language creation failed
Previous:From: Jorge GodoyDate: 2006-08-28 16:37:59
Subject: Re: Perl language creation failed

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group