pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Carlos Peralta Ramirez <cperalta@hera.inf.ucv.cl>
Cc: pgsql-novice <pgsql-novice@hub.org>
Cc: pgsql-sql <pgsql-sql@postgreSQL.org>
Cc: pgsql-general <pgsql-general@postgreSQL.org>
Subject: Re: [SQL] Functions for arrays !!!!
Date: Sat, 08 May 1999 10:49:18 -0400
Message-ID: <18888.926174958@sss.pgh.pa.us> (raw)
In-Reply-To: <3732FF2A.94199716@hera.inf.ucv.cl>

Carlos Peralta Ramirez <cperalta@hera.inf.ucv.cl> writes:
> I create the function in PostgreSQL ->
> dbtest=>create function tester(_int4,int4) returns bool as
> '$path/tester.so' language 'c';
> CREATE

> But when try to use it, ->
> dbtest=>select tester('{1,2,3,4}',3);
> ERROR:  stat failed on file tester.so

> I don´t know what´s happens !!!!!

Looks like Postgres couldn't find the .so file to load it.
(The error message is sadly incomplete --- maybe I'll look to see
if it can be improved.)

When you wrote '$path/tester.so' above, were you being literal or
did you mean to indicate that you filled in an appropriate path?
All the examples you might see of that notation in Postgres are
in shell scripts where a variable like $path will get expanded;
if you typed it in by hand then you have to supply the complete
path by hand.  Look at the entry for the tester function in the
pg_proc table to see what pathname the system has recorded...

			regards, tom lane



view thread (2+ messages)

Message-ID: <18888.926174958@sss.pgh.pa.us>
Permalink:  ../18888.926174958@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/18888.926174958@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, cperalta@hera.inf.ucv.cl, pgsql-novice@hub.org, pgsql-general@postgreSQL.org
  Subject: Re: [SQL] Functions for arrays !!!!
  In-Reply-To: <18888.926174958@sss.pgh.pa.us>
  References: <3732FF2A.94199716@hera.inf.ucv.cl> <18888.926174958@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox