Re: libpq: PQfnumber overload for not null-terminated strings

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ivan Trofimov <i(dot)trofimow(at)yandex(dot)ru>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: libpq: PQfnumber overload for not null-terminated strings
Date: 2024-02-25 16:46:06
Message-ID: 1504058.1708879566@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Ivan Trofimov <i(dot)trofimow(at)yandex(dot)ru> writes:
> Would you be willing to review a patch that adds an `PQfnumber` overload
> that takes a `field_name` size as well?

I'm a little skeptical of this idea. If you need counted strings
for PQfnumber, wouldn't you need them for every single other
string-based API in libpq as well? That's not a lift that I think
we'd want to undertake.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David E. Wheeler 2024-02-25 18:00:24 Re: Patch: Add parse_type Function
Previous Message Tom Lane 2024-02-25 16:34:35 Re: Preserve subscription OIDs during pg_upgrade