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 |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
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
From | Date | Subject | |
---|---|---|---|
Next Message | Boszormenyi Laszlo | 2000-08-11 13:57:22 | Pic in a database |
Previous Message | luc00 | 2000-08-09 13:31:59 | any tool "return query results to a grid " |