Re: Function written in C, hangs on one machine and not another...

From: Douglas McNaught <doug(at)mcnaught(dot)org>
To: cgg007(at)yahoo(dot)com
Cc: Martijn van Oosterhout <kleptog(at)svana(dot)org>, pgsql-general(at)postgresql(dot)org
Subject: Re: Function written in C, hangs on one machine and not another...
Date: 2005-10-28 14:39:22
Message-ID: m2wtjxiu3p.fsf@Douglas-McNaughts-Powerbook.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

CG <cgg007(at)yahoo(dot)com> writes:

> Does this give you any more insight into an alternate method of getting this
> thing done?

I would fork(), set up file descriptors appropriately, then have the
child call the Adobe library and the parent feed the data to it.
Once the document is loaded in the child, do whatever processing you
need to, then pass the results back to the parent via stdout or a
temporary file.

Ugly, but probably the most robust way to do it. Make sure you don't
call any PG-internal functions in the child process, as that will
confuse things badly.

-Doug

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message hubert depesz lubaczewski 2005-10-28 14:41:33 Re: serial number in output
Previous Message Martijn van Oosterhout 2005-10-28 14:38:49 Re: Function written in C, hangs on one machine and not another...