Re: pg_stat_statements: remove redundant function call in pg_stat_statements_internal
Julien Rouhaud <rjuju123@gmail.com>
From: Julien Rouhaud <rjuju123@gmail.com>
To: Dong Wook Lee <sh95119@gmail.com>
Cc: pgsql-hackers@postgresql.org
Date: 2022-02-27T11:55:26Z
Lists: pgsql-hackers
Hi, On Sun, Feb 27, 2022 at 08:45:13PM +0900, Dong Wook Lee wrote: > > I found some redundant function calls in > pg_stat_statements.c/pg_stat_statements_internal(), > There is no need to call GetUserId() again because the value was > previously obtained. Indeed. I doubt it will make any real difference but it doesn't hurt to fix it. Patch looks good to me.
Commits
-
pg_stat_statements: Remove unnecessary call to GetUserId()
- 667726fbe50f 15.0 landed