Re: set search_path in dump output considered harmful

From: "Marko Kreen" <markokr(at)gmail(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Phil Frost" <indigo(at)bitglue(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: set search_path in dump output considered harmful
Date: 2006-07-18 12:56:05
Message-ID: e51f66da0607180556j1c106b93u840f86f94c1ffec3@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 7/14/06, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

[ problems with missing schema in dump ]

> No, not one of these things can be blamed on pg_dump.

Ok, its not exactly bug but still a big annoyance that
instead dumping fully qualified names it juggles with
search path. And I'm annoyed as a user looking at the dump:

* To see what schema the function/table/type is in, I need to
carefully look several pages back until there is schema change.

* I cannot copy-paste from dump.

* The function contents must still contain fully-qualified
names, so it cannot be said that the schema is not part of
function definition in some way. Same goes for other objects.

* The name 'search_path' for picking storage is sick :)
I understand the backwards-compatibility angle, but the over-usage
in dumps makes it even more sick...

--
marko

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Joshua Reich 2006-07-18 13:45:39 Re: [PATCHES] Proposed patch for contrib/cube
Previous Message Marko Kreen 2006-07-18 12:37:52 Re: contrib promotion?