System:
* openSuse 11 64bit (Installed with postgres during set-up)
* uuid-1.6.2.tar.gz into /usr/share/postgresql/contrib/uuid-ossp/
o tar xvzf uuid….
o cd uuid…
o ./configure –with-pgsql
o make
o make install
At this point everything is successful.
Now I add this:
/usr/bin/psql -d postgres -U postgres -f /usr/share/postgresql/contrib/uuid-ossp/uuid-1.6.2/pgsql/uuid.sql
Basically it fails.
When I look at the script the functions are already in postgres when I look through it in pgAdmin.
So I’m assuming I can skip that part??
Now for the fun part……
I’m a Windows guy and for me to get this to work was easy. In the ../share/contib folder I ran the file uuid-ossp.sql file and ran the script. All the uuid functions work perfectly!
They have functions written in there like this:
– Adjust this setting to control where the objects get created.
SET search_path = public;
CREATE OR REPLACE FUNCTION uuid_nil()
RETURNS uuid
AS ‘$libdir/uuid-ossp’, ‘uuid_nil’
IMMUTABLE STRICT LANGUAGE C;
I try running the same script and:
ERROR: could not access file “$libdir/uuid-ossp”: No such file or directory
Of course this script was for a windows box and I’m sure the linux version will look a little different.
Got any ideas?