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

From: ChristophSchmidt <cs(dot)hilzingen(at)swol(dot)de>
To: pgsql-novice(at)postgresql(dot)org
Subject:
Date: 2000-08-09 13:51:39
Message-ID: 00080915560500.01430@nasen2 (view raw or flat)
Thread:
Lists: pgsql-novice
Hi,
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("192.168.001.199");
        con = connect(ipFD, &soaddr,sizeof(soaddr));
        elog(ERROR,"con = %d\n",con);
this is from psql not to see        elog(NOTICE,"send \n");
send(ipFD,nachricht,strlen(nachricht)+1,0x1);
.....

cs

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-2014 The PostgreSQL Global Development Group