Re: Example 31-2. libpq Example Program 2

2021-03-11 Thread Tom Lane
Niko Ware writes: > I modified the code to include the "extra" member in the following > statement: > fprintf(stderr, > "ASYNC NOTIFY of '%s' received from backend PID %d: %s\n", > notify->relname, notify->be_pid, *notify->extra*); > Both the e

Re: Example 31-2. libpq Example Program 2

2021-03-10 Thread David G. Johnston
On Wednesday, March 10, 2021, Niko Ware wrote: > > > I modified the code to include the "extra" member in the following > statement: > > fprintf(stderr, > "ASYNC NOTIFY of '%s' received from backend PID %d: > %s\n", > notify->relname, notify->be_pid, *notif

Example 31-2. libpq Example Program 2

2021-03-10 Thread Niko Ware
I need notifications to a C application on inserts to a table. The notification funcion is listed below. My program and "Example 31-2. libpq Example Program 2" receive the notification, but the payload message in "PGnotify *notify->extra" is invalid. The example code