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

From: Alexander Kuleshov <kuleshovmail(at)gmail(dot)com>
To: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: utils/misc: Simplify search of end of argv in save_ps_display_args()
Date: 2016-03-10 08:41:10
Message-ID: CANCZXo4bLiNMari5J5Wusr+9-LQjx17Lm+yLkFLa3tge78uAKg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello,

Attached patch provides trivial simplification of the search of end of
the argv[] area by replacing for() loop with calculation based on
argc.

Attachment Content-Type Size
simplify-ps-status.patch text/x-patch 583 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Munro 2016-03-10 08:49:34 Floating point timestamps
Previous Message pokurev 2016-03-10 08:21:36 Re: [PROPOSAL] VACUUM Progress Checker.