pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: abdelkrim <haj@idianet.net>
To: pgsql-interfaces@postgreSQL.org
Subject: pb when creating  user type
Date: Mon, 3 May 1999 19:46:04 +0200
Message-ID: <000401be958c$d356e540$0601a8c0@kosovo.idianet.net> (raw)

hello
I try to create a type complex, i generate a complex.so and when to insert
one complex into a table i have some problems
please help me


CREATE FUNCTION complex_out(opaque)
   RETURNS opaque
   AS '/usr/local/pgsql/complex.so'
   LANGUAGE 'c';
CREATE

CREATE TYPE complex (
   internallength = 16,
   input = complex_in,
   output = complex_out
);
CREATE


CREATE TABLE test_complex (
        a       complex,
        b       complex
);
CREATE

INSERT INTO test_complex VALUES ('(1.0, 2.5)', '(4.2, 3.55 )');
ERROR:  Can't find function complex_in in file /usr/local/pgsql/complex.so
ERROR:  Can't find function complex_in in file /usr/local/pgsql/complex.so
INSERT INTO test_complex VALUES ('(33.0, 51.4)', '(100.42, 93.55)');
ERROR:  Can't find function complex_in in file /usr/local/pgsql/complex.so
ERROR:  Can't find function complex_in in file /usr/local/pgsql/complex.so





view thread (7+ messages)  latest in thread

Message-ID: <000401be958c$d356e540$0601a8c0@kosovo.idianet.net>
Permalink:  ../000401be958c$d356e540$0601a8c0@kosovo.idianet.net/
Also on:    postgresql.org/message-id/000401be958c$d356e540$0601a8c0@kosovo.idianet.net

 · 

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-interfaces@postgresql.org
  Cc: haj@idianet.net
  Subject: Re: pb when creating  user type
  In-Reply-To: <000401be958c$d356e540$0601a8c0@kosovo.idianet.net>
  References: <000401be958c$d356e540$0601a8c0@kosovo.idianet.net>

* 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