Re: Avoid repeated PQfnumber() in pg_dump

From: Justin Pryzby <pryzby(at)telsasoft(dot)com>
To: "houzj(dot)fnst(at)fujitsu(dot)com" <houzj(dot)fnst(at)fujitsu(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Avoid repeated PQfnumber() in pg_dump
Date: 2021-07-14 15:21:35
Message-ID: 20210714152135.GC20208@telsasoft.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Jul 14, 2021 at 08:54:32AM +0000, houzj(dot)fnst(at)fujitsu(dot)com wrote:
> Since PQfnumber() is not a cheap function, I think we'd better invoke
> PQfnumber() out of the loop like the attatched patch.

+1

Please add to the next CF

--
Justin

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2021-07-14 15:26:13 Re: ResourceOwner refactoring
Previous Message Zhihong Yu 2021-07-14 15:18:52 Re: ResourceOwner refactoring