Re: [HACKERS] utils/misc: Simplify search of end of argv in save_ps_display_args()

2016-03-10 Thread Alvaro Herrera
Alexander Kuleshov wrote: > Hello, > > Attached patch provides trivial simplification of the search of end of > the argv[] area by replacing for() loop with calculation based on > argc. Uhm. Doesn't this break the very same thing that the comment explains it's doing? -- Álvaro Herrera

[HACKERS] utils/misc: Simplify search of end of argv in save_ps_display_args()

2016-03-10 Thread Alexander Kuleshov
Hello, Attached patch provides trivial simplification of the search of end of the argv[] area by replacing for() loop with calculation based on argc. diff --git a/src/backend/utils/misc/ps_status.c b/src/backend/utils/misc/ps_status.c index 892a810..d8f2105 100644 --- a/src/backend/utils/misc/ps_s