Dump Customizing

Started by Yudha Setiawanover 22 years ago4 messagesgeneral
Jump to latest
#1Yudha Setiawan
inas_husband@bonbon.net

Dear expert,

It's Urgent.....
How do I dump just for
- Table Structure
- Index
- Constraint
- Type
- Function.
Without
- Create Trigger.
- Data.
i've tried with -X option, but it didn't works
"pg_dump -Upostgres test_yudha1 -fyudha1 -v -s -R -X disable-triggers;"
Thank's for your attention.

GOD Bless You All.

#2Stephan Szabo
sszabo@megazone23.bigpanda.com
In reply to: Yudha Setiawan (#1)
Re: Dump Customizing

On Tue, 5 Aug 2003, Yudha Setiawan wrote:

Dear expert,

It's Urgent.....
How do I dump just for
- Table Structure
- Index
- Constraint
- Type
- Function.
Without
- Create Trigger.
- Data.
i've tried with -X option, but it didn't works
"pg_dump -Upostgres test_yudha1 -fyudha1 -v -s -R -X disable-triggers;"
Thank's for your attention.

I don't think there is one that'll drop the create trigger statements
so you'll probably need to do some post-processing on a schema only dump
to get it.

#3Dennis Gearon
gearond@cvc.net
In reply to: Stephan Szabo (#2)
Re: Dump Customizing

A nice addition to the dump commands would be something like:

-scope( schema( schema_s), tables( table_1), dbases_name objects( tables, indexes, constraints, types, functions, triggers, data, etc) )

if it could be completely hierarchial, then any set of objects desired could be extracted.

Stephan Szabo wrote:

Show quoted text

On Tue, 5 Aug 2003, Yudha Setiawan wrote:

Dear expert,

It's Urgent.....
How do I dump just for
- Table Structure
- Index
- Constraint
- Type
- Function.
Without
- Create Trigger.
- Data.
i've tried with -X option, but it didn't works
"pg_dump -Upostgres test_yudha1 -fyudha1 -v -s -R -X disable-triggers;"
Thank's for your attention.

I don't think there is one that'll drop the create trigger statements
so you'll probably need to do some post-processing on a schema only dump
to get it.

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

#4Yudha Setiawan
inas_husband@bonbon.net
In reply to: Stephan Szabo (#2)
Re: Dump Customizing

Dear Szabo you're wrote;

I don't think there is one that'll drop the create trigger statements
so you'll probably need to do some post-processing on a schema only dump
to get it.

----------------------------------------------------------------------------
--
Dear Dennis Gearon you're wrote;

-scope( schema( schema_s), tables( table_1), dbases_name objects( tables,

indexes, constraints, types, functions, triggers, data, etc) )

if it could be completely hierarchial, then any set of objects desired

could be extracted.
----------------------------------------------------------------------------
--
Thank's for your attention. And i agree with Dennis idea, that would be a
good. At least we could dump with "without" objects.

GOD Bless You All.