Return-Path: owner-postman Received: from localhost.Berkeley.EDU (localhost.Berkeley.EDU [127.0.0.1]) by nobozo.CS.Berkeley.EDU (8.6.10/8.6.3) with SMTP id HAA21804 for postgres-redist; Wed, 30 Aug 1995 07:52:35 -0700 Resent-From: POSTGRES mailing list Resent-Message-Id: <199508301452.HAA21804@nobozo.CS.Berkeley.EDU> X-Authentication-Warning: nobozo.CS.Berkeley.EDU: Host localhost.Berkeley.EDU didn't use HELO protocol Sender: owner-postman@postgres.Berkeley.EDU X-Return-Path: owner-postman Received: from sunic.sunet.se (sunic.sunet.se [192.36.125.2]) by nobozo.CS.Berkeley.EDU (8.6.10/8.6.3) with ESMTP id HAA21534 for ; Wed, 30 Aug 1995 07:52:21 -0700 Received: from cocos.fuw.edu.pl by sunic.sunet.se (8.6.8/2.03) id QAA16290; Wed, 30 Aug 1995 16:51:57 +0200 Received: from ccmj (ccmj.fuw.edu.pl) by cocos.fuw.edu.pl (4.1/SMI-4.1) id AA04282; Wed, 30 Aug 95 16:51:34 +0200 Received: by ccmj (4.1/SMI-4.1) id AA21206; Wed, 30 Aug 95 16:51:33 +0200 Date: Wed, 30 Aug 1995 16:51:33 +0200 (MET DST) From: Wojtek Bogusz X-Sender: bogusz@ccmj To: dirk@luedi.tng.oche.de Cc: postgres@postgres.Berkeley.EDU Subject: Re: different questions In-Reply-To: <5smCBOGPJAB@luedi.tng.oche.de> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Resent-To: postgres-redist@postgres.Berkeley.EDU Resent-Date: Wed, 30 Aug 95 07:52:35 -0700 Resent-XMts: smtp Hi, > But what to do if the input data to circle_in has not the correct form You can use function elog(type, format, var, ...). In order to do it #include "utils/log.h" in your C source. type can have a value (from log.h): #define NOTICE 0 /* random info - no special action */ #define WARN -1 /* Warning error - return to known state */ #define FATAL 1 /* Fatal error - abort process */ So WARN will stop inserting data to the DB and FATAL will also abort postgres backend. Arguments "format, var, ..." are similar to printf arguments. > 2.) Isn't there another possibility to create complexe user types > except converting the abstract data to a string, sending it as a String > to postgres, converting it to abstract data, and vice versa. I think it is the right and only way :-). Regards and good luck, Wojtek Bogusz +---------------------------------------------------------------------------+ | e-mail address: | Warsaw University | Hoza 69; Warszawa; Poland | | Wojtek.Bogusz@fuw.edu.pl | Physics Department | tel.(+48)(2)6283031x149 | +---------------------------------------------------------------------------+ finger -l bogusz@fizyk.fuw.edu.pl for PGP Public Key http://info.fuw.edu.pl/persons/wojtek_bogusz.html ============================================================================== To add/remove yourself to/from the POSTGRES mailing list: send mail with the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU". If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and a human will deal with it. DO NOT post to the "postgres" mailing list. ============================================================================== URL: http://s2k-ftp.CS.Berkeley.EDU:8000/postgres/