pgsql: Fix latent bug in get_stats_option_name() - Mailing list pgsql-committers

From Heikki Linnakangas
Subject pgsql: Fix latent bug in get_stats_option_name()
Date
Msg-id E1w7Gkr-002BNh-1F@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix latent bug in get_stats_option_name()

The function is supposed to look at the passed in 'arg' argument, but
peeks at the 'optarg' global variable that's part of getopt()
instead. It happened to work anyway, because all callers passed
'optarg' as the argument.

Reviewed-by: Peter Eisentraut <peter@eisentraut.org>
Discussion: https://www.postgresql.org/message-id/d1da5f0e-0d68-47c9-a882-eb22f462752f@iki.fi

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/c5f7820e5780f5be9cb406834108576b42e568f8

Modified Files
--------------
src/backend/tcop/postgres.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)


pgsql-committers by date:

Previous
From: Melanie Plageman
Date:
Subject: pgsql: Pass down information on table modification to scan nodes
Next
From: Tom Lane
Date:
Subject: pgsql: Be more careful to preserve consistency of a tuplestore.