pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@postgresql.org
Subject: pgsql: Fix portability breakage in pg_dump.
Date: Sun, 11 Jan 2015 18:28:32 +0000
Message-ID: <E1YANFY-0002at-Cj@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Fix portability breakage in pg_dump.

Commit 0eea8047bf0e15b402b951e383e39236bdfe57d5 introduced some overly
optimistic assumptions about what could be in a local struct variable's
initializer.  (This might in fact be valid code according to C99, but I've
got at least one pre-C99 compiler that falls over on those nonconstant
address expressions.)  There is no reason whatsoever for main()'s workspace
to not be static, so revert long_options[] to a static and make the
DumpOptions struct static as well.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/44096f1c6644a97c92da6c96dc1d8d4e200d4a38

Modified Files
--------------
src/bin/pg_dump/pg_backup.h          |    1 +
src/bin/pg_dump/pg_backup_archiver.c |   20 +++--
src/bin/pg_dump/pg_dump.c            |  154 +++++++++++++++++-----------------
3 files changed, 91 insertions(+), 84 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


Message-ID: <E1YANFY-0002at-Cj@gemulon.postgresql.org>
Permalink:  ../E1YANFY-0002at-Cj@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1YANFY-0002at-Cj@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Fix portability breakage in pg_dump.
  In-Reply-To: <E1YANFY-0002at-Cj@gemulon.postgresql.org>
  References: <E1YANFY-0002at-Cj@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox