| From: | Fujii Masao <masao(dot)fujii(at)gmail(dot)com> |
|---|---|
| To: | Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com> |
| Cc: | Yugo Nagata <nagata(at)sraoss(dot)co(dot)jp>, Rintaro Ikeda <ikedarintarof(at)oss(dot)nttdata(dot)com>, Jakub Wartak <jakub(dot)wartak(at)enterprisedb(dot)com>, "Hayato Kuroda (Fujitsu)" <kuroda(dot)hayato(at)fujitsu(dot)com>, "slpmcf(at)gmail(dot)com" <slpmcf(at)gmail(dot)com>, "boekewurm+postgres(at)gmail(dot)com" <boekewurm+postgres(at)gmail(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>, Srinath Reddy Sadipiralla <srinath2133(at)gmail(dot)com>, Dilip Kumar <dilipbalaut(at)gmail(dot)com> |
| Subject: | Re: Suggestion to add --continue-client-on-abort option to pgbench |
| Date: | 2025-11-14 09:15:27 |
| Message-ID: | CAHGQGwFJGCeSkanLW6uNC7d6kOgSYxZvXDz1Q_nrPJ8BDo-AJQ@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Fri, Nov 14, 2025 at 4:45 PM Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com> wrote:
> ```
> + else if (received_sync && res == NULL)
> {
> - /*
> - * PGRES_PIPELINE_SYNC must be followed by another
> - * PGRES_PIPELINE_SYNC or NULL; otherwise, assert failure.
> - */
> - Assert(res == NULL);
> -
> /*
> * Reset ongoing sync count to 0 since all PGRES_PIPELINE_SYNC
> * results have been discarded.
> @@ -3601,6 +3610,15 @@ discardUntilSync(CState *st)
> PQclear(res);
> break;
> }
> ```
>
> As we now add “res==NULL” to the “else if”, once entering "else if (received_sync && res == NULL)”, res must be NULL, so "PQclear(res);” should be deleted.
OK, the PQclear() there is unnecessary, so I removed it in the patch I
posted earlier.
Regards,
--
Fujii Masao
| From | Date | Subject | |
|---|---|---|---|
| Next Message | shveta malik | 2025-11-14 09:25:20 | Re: POC: enable logical decoding when wal_level = 'replica' without a server restart |
| Previous Message | Masahiko Sawada | 2025-11-14 09:12:44 | Re: Rename sync_error_count to tbl_sync_error_count in subscription statistics |