From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Niko Ware <nikowareinc(at)gmail(dot)com> |
Cc: | pgsql-general(at)lists(dot)postgresql(dot)org |
Subject: | Re: Example 31-2. libpq Example Program 2 |
Date: | 2021-03-11 16:04:17 |
Message-ID: | 2293594.1615478657@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Niko Ware <nikowareinc(at)gmail(dot)com> 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 example and my application core on an invalid address for "extra".
Modifying testlibpq2.c like that works for me, FWIW.
I speculate maybe you have a macro definition of "extra" that is bollixing
things somehow? Kind of a weak theory, but nothing else comes to mind.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Stacey Haysler | 2021-03-11 17:58:51 | Re: Code of Conduct Russian Translation - Revised March 5, 2021 |
Previous Message | fmartin91 | 2021-03-11 13:57:31 | Re: Logical Replication, CPU load and Locking contention |