Re: UDFs

From: hubert depesz lubaczewski <depesz(at)depesz(dot)com>
To: jf <jf(at)danglingpointers(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: UDFs
Date: 2007-08-13 12:11:14
Message-ID: 20070813121114.GA23951@depesz.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Aug 13, 2007 at 07:36:41PM +0000, jf wrote:
> > usually it's in: <PREFIX>/share/postgresql/contrib/pgcrypto.sql
> > in the database you want to use pgcrypto functions, you simply run this
> > sql (as superuser), and that's all.
> theory# pwd
> /home/jf/postgresql-8.2.4
> theory# cd share
> bash: cd: share: No such file or directory
> theory# pwd
> /home/jf/postgresql-8.2.4
> theory# ls share
> ls: cannot access share: No such file or directory

share of *installed* system. if you compiled with --prefix=/usr/local,
then it would be /usr/local/share/postgresql/...

> theory# find ./ -name pgcrypto.sql
> theory# cd contrib/pgcrypto/
> theory# ls *.sql

if you didn't compile it - it is not built.
simply:
cd contrib/pgcrypto
make
make install
and you should be fine.

i usually compile postgresql in this way:
cd postgre*
./configure --.... some options
make
make install
cd contrib
make
make install

in this way i have all contrib modules compiled.

of course - you dont need all (on the other hand - i strongly suggest
that you get some familiarity with it, as there are some real gems).

depesz

--
quicksil1er: "postgres is excellent, but like any DB it requires a
highly paid DBA. here's my CV!" :)
http://www.depesz.com/ - blog dla ciebie (i moje CV)

In response to

  • Re: UDFs at 2007-08-13 19:36:41 from jf

Responses

  • Re: UDFs at 2007-08-13 19:48:02 from jf

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2007-08-13 12:14:17 Re: UDFs
Previous Message Alan J Batsford 2007-08-13 11:56:55 Problem Designing Index