Re: example program bug?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Gavin Sherry <swm(at)linuxworld(dot)com(dot)au>
Cc: Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: example program bug?
Date: 2001-08-13 13:47:09
Message-ID: 16617.997710429@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jan Wieck 2001-08-13 13:55:59 Re: Re: [PATCHES] Select parser at runtime
Previous Message Tom Lane 2001-08-13 13:38:40 Re: PL/pgSQL bug?