Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 77A98EDF36F for ; Tue, 22 May 2012 12:03:35 -0300 (ADT) Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SWqcY-000718-Gt for pgsql-bugs@postgresql.org; Tue, 22 May 2012 15:03:34 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id q4MF3Lgm000440; Tue, 22 May 2012 11:03:21 -0400 (EDT) To: Chaitany Kulkarni cc: pgsql-bugs@postgresql.org Subject: Re: BUG #6660: losing schema name in pg_dump In-reply-to: References: <28522.1337693945@sss.pgh.pa.us> Comments: In-reply-to Chaitany Kulkarni message dated "Tue, 22 May 2012 19:57:15 +0530" Date: Tue, 22 May 2012 11:03:21 -0400 Message-ID: <439.1337699001@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201205/143 X-Sequence-Number: 33114 Chaitany Kulkarni 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