Received: from sss.pgh.pa.us (sss.pgh.pa.us [209.114.132.154]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f1JG9Ax78252 for ; Mon, 19 Feb 2001 11:09:10 -0500 (EST) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.1/8.11.1) with ESMTP id f1JG90925096; Mon, 19 Feb 2001 11:09:00 -0500 (EST) To: Ines.Klimann@liafa.jussieu.fr cc: pgsql-sql@postgresql.org Subject: Re: How to insert values with a new type ? In-reply-to: <20010219152037.A12963@liafa0.liafa.jussieu.fr> References: <20010219152037.A12963@liafa0.liafa.jussieu.fr> Comments: In-reply-to Ines.Klimann@liafa.jussieu.fr message dated "Mon, 19 Feb 2001 15:20:37 +0100" Date: Mon, 19 Feb 2001 11:09:00 -0500 Message-ID: <25093.982598940@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200102/306 X-Sequence-Number: 1502 Ines.Klimann@liafa.jussieu.fr writes: > complexe * complex_in(float x, float y) > { > complexe *result; > result = (complexe *)palloc(sizeof(complexe)); > result->x = x; > result->y = y; > return (result); > } A datatype's input routine has to accept a string (char *). regards, tom lane