pg_dump : option --exclude-schema not recognized

Started by Arnaud Lesauvageover 19 years ago4 messagesgeneral
Jump to latest
#1Arnaud Lesauvage
thewild@freesurf.fr

Hi all !

I am trying to exclude just one schema of my dump.

pg_dump -N myschema
or
pg_dump --exclude-schema=myschema
both tell me that the option is unknown.

I am using the win32 binary distribution v8.1.4 (pg_dump
--version says 8.1.4 too).

Is this normal ?

Thanks !
--
Arnaud

#2Richard Huxton
dev@archonet.com
In reply to: Arnaud Lesauvage (#1)
Re: pg_dump : option --exclude-schema not recognized

Arnaud Lesauvage wrote:

Hi all !

I am trying to exclude just one schema of my dump.

pg_dump -N myschema
or
pg_dump --exclude-schema=myschema
both tell me that the option is unknown.

It's not in 8.1 - you must have been reading the 8.2 docs
http://www.postgresql.org/docs/8.1/static/app-pgdump.html

--
Richard Huxton
Archonet Ltd

#3Arnaud Lesauvage
thewild@freesurf.fr
In reply to: Arnaud Lesauvage (#1)
Re: pg_dump : option --exclude-schema not recognized

Richard Huxton a �crit :

Arnaud Lesauvage wrote:

Richard Huxton a �crit :

Arnaud Lesauvage wrote:

Hi all !

I am trying to exclude just one schema of my dump.

pg_dump -N myschema
or
pg_dump --exclude-schema=myschema
both tell me that the option is unknown.

It's not in 8.1 - you must have been reading the 8.2 docs
http://www.postgresql.org/docs/8.1/static/app-pgdump.html

Most probably !
Thanks for pointing this out. I'll have to be patient then !

You can always exclude individual items on restore using pg_restore's
--list / --use-list options though.

Yes, but I wanted to limit the size of the dump : I have a
schema containing a lot of spatial entities, very big and
useless in a backup.
I will keep dumping the schemas one by one for now, it's fine.

Thanks again !

#4Jim Nasby
Jim.Nasby@BlueTreble.com
In reply to: Arnaud Lesauvage (#3)
Re: pg_dump : option --exclude-schema not recognized

On Nov 17, 2006, at 5:31 AM, Arnaud Lesauvage wrote:

Richard Huxton a écrit :

Arnaud Lesauvage wrote:

Richard Huxton a écrit :

Arnaud Lesauvage wrote:

Hi all !

I am trying to exclude just one schema of my dump.

pg_dump -N myschema
or
pg_dump --exclude-schema=myschema
both tell me that the option is unknown.

It's not in 8.1 - you must have been reading the 8.2 docs
http://www.postgresql.org/docs/8.1/static/app-pgdump.html

Most probably !
Thanks for pointing this out. I'll have to be patient then !

You can always exclude individual items on restore using
pg_restore's --list / --use-list options though.

Yes, but I wanted to limit the size of the dump : I have a schema
containing a lot of spatial entities, very big and useless in a
backup.
I will keep dumping the schemas one by one for now, it's fine.

Just remember that dumping things that way means you won't have a
consistent backup of your data.
--
Jim Nasby jim.nasby@enterprisedb.com
EnterpriseDB http://enterprisedb.com 512.569.9461 (cell)