pg_dump/pg_dumpall do not correctly dump search_path

From: "Ben Trewern" <ben_trewern(at)hotmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: pg_dump/pg_dumpall do not correctly dump search_path
Date: 2004-09-09 12:59:50
Message-ID: BAY8-F40GU1s4RmUBdi00006b03@hotmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

All,

There seems to be a bug in pg_dumpall:

For one of my dbs I've done:

ALTER DATABASE dbname SET search_path = mw, public;

If I do a pg_dumpall I get a line like:

ALTER DATABASE dbname SET search_path TO 'mw, public';

note the 's. It's also in a place in the dump before the mw schema is
created. It's not a big problem but it makes dumps less automatic.

BTW If I do a pg_dump dbname I get a dump which does not reference the
search_path change. I'm not sure if this is by design or it is just
missing.

I'm using PostgreSQL 7.4.5 on linux

Thanks for any help.

Ben

_________________________________________________________________
Stay in touch with absent friends - get MSN Messenger
http://www.msn.co.uk/messenger

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2004-09-09 13:20:38 Re: Display of text fields
Previous Message Phil Endecott 2004-09-09 12:57:28 MOVE doesn't return number of rows