> On 15 Jul 2021, at 04:51, houzj(dot)fnst(at)fujitsu(dot)com wrote:
> On July 15, 2021 5:35 AM Daniel Gustafsson <daniel(at)yesql(dot)se> wrote:
>> Out of curiosity, how many columns are "many columns"?
>
> I tried dump 10 table definitions while each table has 1000 columns
> (maybe not real world case).
While unlikely to be common, very wide tables aren’t unheard of. Either way, I
think it has merit to pull out the PQfnumber before the loop even if it’s a
wash performance wise for many users, as it’s a pattern used elsewhere in
pg_dump.
--
Daniel Gustafsson https://vmware.com/