Re: libpq: PQfnumber overload for not null-terminated strings - Mailing list pgsql-hackers

From Tom Lane
Subject Re: libpq: PQfnumber overload for not null-terminated strings
Date
Msg-id 1504058.1708879566@sss.pgh.pa.us
Whole thread Raw
In response to libpq: PQfnumber overload for not null-terminated strings  (Ivan Trofimov <i.trofimow@yandex.ru>)
Responses Re: libpq: PQfnumber overload for not null-terminated strings
List pgsql-hackers
Ivan Trofimov <i.trofimow@yandex.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



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Preserve subscription OIDs during pg_upgrade
Next
From: "David E. Wheeler"
Date:
Subject: Re: Patch: Add parse_type Function