Skip site navigation (1) Skip section navigation (2)

pgsql: Get rid of useless global variable in pg_upgrade.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Get rid of useless global variable in pg_upgrade.
Date: 2012-07-18 05:23:25
Message-ID: E1SrMjN-0006F2-M0@gemulon.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Get rid of useless global variable in pg_upgrade.

Since the scandir() emulation was taken out of pg_upgrade, there's
no longer any need for scandir_file_pattern to exist as a global
variable.  Replace it with a local in the one remaining function
that was making use of it.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/faf26bf1175530cc97ce3e804ff10dc2be7026d3

Modified Files
--------------
contrib/pg_upgrade/pg_upgrade.h  |    1 -
contrib/pg_upgrade/relfilenode.c |   19 +++++++++----------
2 files changed, 9 insertions(+), 11 deletions(-)

pgsql-committers by date

Next:From: Robert HaasDate: 2012-07-18 14:22:45
Subject: pgsql: Syntax support and documentation for event triggers.
Previous:From: Tom LaneDate: 2012-07-18 05:13:38
Subject: pgsql: Improve pg_upgrade's load_directory() function.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group