Re: writing custom data type

From: Michael Swierczek <mike(dot)swierczek(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Arthur Chan <achan(at)comprehend(dot)com>, PostgreSQL Novice <pgsql-novice(at)postgresql(dot)org>
Subject: Re: writing custom data type
Date: 2013-02-01 21:35:55
Message-ID: CAHp1f1MLdX+ZRxEARJN6x086EJrVBuKo-HTUqT5nhqMGevhHzA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Fri, Feb 1, 2013 at 3:58 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> Arthur Chan <achan(at)comprehend(dot)com> writes:
> > I've been having trouble writing my own custom datatype for PG. when I do
> > my `CREATE FUNCTION` call, it fails with:
>
> > resultsets=# CREATE FUNCTION fuzzytime_in(cstring)
> > RETURNS fuzzytime
> > AS 'fuzzytimetype'
> > LANGUAGE C IMMUTABLE STRICT;
> > NOTICE: return type fuzzytime is only a shell
> > ERROR: could not find function "fuzzytime_in" in file
> > "/usr/lib/postgresql/9.1/lib/fuzzytimetype.so"
>
> > now I checked my shared lib, and surely enough, it's there
>
> > $ objdump -t /usr/lib/postgresql/9.1/lib/fuzzytimetype.so
> > ...
> > 00000000000018b0 g F .text 0000000000000070 fuzzytime_in
> > ...
>
>
> I hope you are not offended if I ask the obvious question, but could it be
a permissions problem? The lib exists, but are the user or group such that
the PostgreSQL account can access it?

Good luck,
-Mike

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Arthur Chan 2013-02-01 21:59:22 Re: writing custom data type
Previous Message Tom Lane 2013-02-01 20:58:29 Re: writing custom data type