agora inbox for postgres@postgres.berkeley.edu  
help / color / mirror / Atom feed
From: Wojtek Bogusz <Wojtek.Bogusz@fuw.edu.pl>
To: dirk@luedi.tng.oche.de
Cc: postgres@postgres.Berkeley.EDU
Subject: Re: different questions
Date: Wed, 30 Aug 1995 16:51:33 +0200 (MET DST)
Message-ID: <Pine.SUN.3.91.950830164049.20918E-100000@ccmj> (raw)
In-Reply-To: <5smCBOGPJAB@luedi.tng.oche.de>


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/



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 using the --to and --cc options:
  reply via email

  To: postgres@postgres.berkeley.edu
  Cc: Wojtek.Bogusz@fuw.edu.pl, dirk@luedi.tng.oche.de
  Subject: Re: different questions
  In-Reply-To: <Pine.SUN.3.91.950830164049.20918E-100000@ccmj>

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

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