Re: pg17.3 PQescapeIdentifier() ignores len - Mailing list pgsql-hackers

From Ranier Vilela
Subject Re: pg17.3 PQescapeIdentifier() ignores len
Date
Msg-id CAEudQApAqFQQ5F6uUfJ+EWn0OrRFwKpB_og2hcO4Dhh_YaeiCA@mail.gmail.com
Whole thread Raw
In response to Re: pg17.3 PQescapeIdentifier() ignores len  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Em qui., 13 de fev. de 2025 às 16:00, Tom Lane <tgl@sss.pgh.pa.us> escreveu:
Justin Pryzby <pryzby@telsasoft.com> writes:
> The fprintf suggests that since 5dc1e42b4 PQescapeIdentifier ignores its len.

Ugh, yes.  Need something like the attached.

FTR, 5dc1e42b4 et al were quite subtle patches done under extreme time
pressure.  I wonder if they have any other issues.  More eyes on those
patches would be welcome, now that they are public.
Passes on standard tests at Windows 64 bits, msvc 2022 64 bits.

best regards,
Ranier Vilela

pgsql-hackers by date:

Previous
From: Ranier Vilela
Date:
Subject: Re: Simplify the logic a bit (src/bin/scripts/reindexdb.c)
Next
From: Daniel Gustafsson
Date:
Subject: Re: BackgroundPsql swallowing errors on windows