Skip site navigation (1) Skip section navigation (2)

From: ChristophSchmidt <cs(dot)hilzingen(at)swol(dot)de>
To: pgsql-novice(at)postgresql(dot)org
Date: 2000-08-09 13:51:39
Message-ID: 00080915560500.01430@nasen2 (view raw, whole thread or download thread mbox)
Lists: pgsql-novice
im trying to write a trigger, which opens an ip-connection to a known host.
The single program works, but inside the trigger the trigger dies silently
after the connection is succsessfully opened. (con = 0)
The output with elog of the conection status is the last what is to see.
here the fragment :
elog (NOTICE, "trigf (fired %s): there are %d tuples in : %s", when,i,stmp); 
        soaddr.sin_family = AF_INET;
        soaddr.sin_port = htons(1111);
        soaddr.sin_addr.s_addr = inet_addr("");
        con = connect(ipFD, &soaddr,sizeof(soaddr));
        elog(ERROR,"con = %d\n",con);
this is from psql not to see        elog(NOTICE,"send \n");


pgsql-novice by date

Next:From: Boszormenyi LaszloDate: 2000-08-11 13:57:22
Subject: Pic in a database
Previous:From: luc00Date: 2000-08-09 13:31:59
Subject: any tool "return query results to a grid "

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group