From: Tom Lane <tgl@sss.pgh.pa.us>
To: Chaitany Kulkarni <shreeseva.it@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6660: losing schema name in pg_dump
Date: Tue, 22 May 2012 11:03:21 -0400
Message-ID: <439.1337699001@sss.pgh.pa.us> (raw)
In-Reply-To: <CAAo-8u+ca9O7GvRhNT63+Bg6QraOqsQhXKqW7cFCUN4jE+SHZA@mail.gmail.com>
References: <E1SWjRN-0006yQ-Sx@wrigleys.postgresql.org>
<28522.1337693945@sss.pgh.pa.us>
<CAAo-8u+ca9O7GvRhNT63+Bg6QraOqsQhXKqW7cFCUN4jE+SHZA@mail.gmail.com>
Chaitany Kulkarni <shreeseva.it@gmail.com> writes:
> I didn't understand when user have defined schema names explicitly in
> definition of the objects and most database developers insist on writing
> schema names explicitly, why pg_dump is not outputting it as it is.
The short answer to that is that the internal representation of views
and other objects only stores object identities, not how they were named
in the input. We don't store whitespace or layout choices either, and
there are various other ways that the output can vary from what you
typed. So really, if you're intent on that, keeping the original source
file is the way to go.
regards, tom lane
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: tgl@sss.pgh.pa.us, shreeseva.it@gmail.com
Subject: Re: BUG #6660: losing schema name in pg_dump
In-Reply-To: <439.1337699001@sss.pgh.pa.us>
References: <E1SWjRN-0006yQ-Sx@wrigleys.postgresql.org> <28522.1337693945@sss.pgh.pa.us> <CAAo-8u+ca9O7GvRhNT63+Bg6QraOqsQhXKqW7cFCUN4jE+SHZA@mail.gmail.com> <439.1337699001@sss.pgh.pa.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