Re: example program bug? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: example program bug?
Date
Msg-id 16617.997710429@sss.pgh.pa.us
Whole thread Raw
In response to Re: example program bug?  (Gavin Sherry <swm@linuxworld.com.au>)
List pgsql-hackers
>> Included is a example program appears in our docs (libpq.sgml). 

If you're going to do any work on that example, how about transforming
it into something useful, ie, a more realistic example of using NOTIFY.
It should be using a select() to wait for input, not a sleep() loop.

As for the cleanup code, leave it in place, and make the sample program
break out of its loop when a specific NOTIFY name is received.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Justin Clift
Date:
Subject: Re: Re: [PATCHES] Select parser at runtime
Next
From: "Zeugswetter Andreas SB SD"
Date:
Subject: AW: Re: OID wraparound: summary and proposal