pg_dump --exclude-schema=foo

Поиск
Список
Период
Сортировка
От Chris Browne
Тема pg_dump --exclude-schema=foo
Дата
Msg-id 60d60n1cjh.fsf@dev6.int.libertyrms.info
обсуждение исходный текст
Ответы Re: pg_dump --exclude-schema=foo  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
We have discovered an interesting locking scenario with Slony-I that
is pointing to a use for the ability to exclude certain schemas from
pg_dump.

The situation is that when a "full" pg_dump kicks off, a Slony-I
"create sync" event, which expects to "LOCK slony_schema.sl_event;",
is blocked from getting the exclusive lock that it desires.
Everything else then falls behind that, as they are waiting for the
lock to get dropped off.

The solution is easy enough, in that (at present) the interesting data
is in a single database schema.  

Running...pg_dump --schema=ourdata
does the trick.

What would be nice would be the ability to consciously _exclude_
schemas, where the nice way would be --exclude-schema=_slony_schema

If someone has some "round tuits," I'll have to catch up on sleep...
-- 
(format nil "~S@~S" "cbbrowne" "ntlug.org")
http://www3.sympatico.ca/cbbrowne/languages.html
Save your burned out bulbs for me, I'm building my own dark room.


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Marc Colosimo
Дата:
Сообщение: tweaking MemSet() performance - 7.4.5
Следующее
От: Oliver Jowett
Дата:
Сообщение: Re: libpq and prepared statements progress for 8.0