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

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: Alexander Kuleshov <kuleshovmail(at)gmail(dot)com>
Cc: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: utils/misc: Simplify search of end of argv in save_ps_display_args()
Date: 2016-03-10 14:36:31
Message-ID: 20160310143630.GA49013@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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 http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message David Rowley 2016-03-10 14:39:29 Re: Parallel Aggregate
Previous Message Teodor Sigaev 2016-03-10 14:34:41 Re: proposal: function parse_ident