From: Bruce Momjian <bruce@momjian.us>
To: hans@matfyz.cz
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #12730: pg_dump produces trailing spaces
Date: Mon, 11 May 2015 11:46:25 -0400
Message-ID: <20150511154625.GC13052@momjian.us> (raw)
In-Reply-To: <20150428234018.GE31727@momjian.us>
References: <20150202143116.2585.12308@wrigleys.postgresql.org>
<20150428234018.GE31727@momjian.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On Tue, Apr 28, 2015 at 07:40:18PM -0400, Bruce Momjian wrote:
> > Try
> > pg_dump --format=p --schema=information_schema --schema-only --file=is.sql
> >
> > It seams there are trailing spaces in the comment line
> > -- Name: sql_implementation_info; Type: TABLE; Schema: information_schema;
> > Owner: postgres; Tablespace:
> >
> > Skip the string '; Tablespace: ' please, if there is no tablespace or put
> > '-' for the tablespace name in the same way as dash is used for Owner when
> > the option --no-owner is used.
>
> I looked into this issue and found that the pg_dump code doesn't handle
> cases where the reltablespace == 0 (default). I have modified pg_dump
> to test for a zero-length string as well, and this suppresses the
> "Tablespace:" field. Patch attached.
Patch applied.
--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ Everyone has their own god. +
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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-bugs@postgresql.org
Cc: bruce@momjian.us, hans@matfyz.cz
Subject: Re: BUG #12730: pg_dump produces trailing spaces
In-Reply-To: <20150511154625.GC13052@momjian.us>
References: <20150202143116.2585.12308@wrigleys.postgresql.org> <20150428234018.GE31727@momjian.us> <20150511154625.GC13052@momjian.us>
* 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