From: jerch (@jerch) <noreply+jerch@github.com>
To: psycopg/psycopg <noreply+psycopg-psycopg@github.com>
Subject: Re: [psycopg/psycopg] PR #1324: Faster C Load Sequence
Date: Sat, 13 Jun 2026 21:01:36 +0000
Message-ID: <gh-psycopg-psycopg-1324-rc3408603272@github.com> (raw)
In-Reply-To: <gh-psycopg-psycopg-1324@github.com>
References: <gh-psycopg-psycopg-1324@github.com>
(on psycopg_c/psycopg_c/_psycopg/copy.pyx)
This code looks wrong to me - `scratch` gets initialized as NULL, but only set to a valid pointer behind this condition. The block afterwards uses it in any case as `tgt`.