pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedDump Schema?
4+ messages / 3 participants
[nested] [flat]
* Dump Schema?
@ 2001-07-27 13:55 Chris Ruprecht <chrup999@yahoo.com>
2001-07-27 14:10 ` Re: Dump Schema? George Lewis <schvin@schvin.net>
2001-07-27 14:18 ` Re: Dump Schema? Karel Zak <zakkr@zf.jcu.cz>
2001-07-27 14:38 ` Re: Dump Schema? Chris Ruprecht <chrup999@yahoo.com>
0 siblings, 3 replies; 4+ messages in thread
From: Chris Ruprecht @ 2001-07-27 13:55 UTC (permalink / raw)
To: pgsql-admin
Hi guys,
I have a database on my production machine and I want a copy of this db (9 GB) - without the data - on a development machine (notebook with about 6 GB of space).
How can I just dump the schema without the data? Is there a simple command for that?
Best regards,
Chris
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Dump Schema?
2001-07-27 13:55 Dump Schema? Chris Ruprecht <chrup999@yahoo.com>
@ 2001-07-27 14:10 ` George Lewis <schvin@schvin.net>
2 siblings, 0 replies; 4+ messages in thread
From: George Lewis @ 2001-07-27 14:10 UTC (permalink / raw)
To: Chris Ruprecht <chrup999@yahoo.com>; +Cc: pgsql-admin
pg_dump -s dbname
Chris Ruprecht (chrup999@yahoo.com) wrote:
> Hi guys,
>
> I have a database on my production machine and I want a copy of this db (9 GB) - without the data - on a development machine (notebook with about 6 GB of space).
> How can I just dump the schema without the data? Is there a simple command for that?
>
> Best regards,
> Chris
>
--
http://schvin.net/
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Dump Schema?
2001-07-27 13:55 Dump Schema? Chris Ruprecht <chrup999@yahoo.com>
@ 2001-07-27 14:18 ` Karel Zak <zakkr@zf.jcu.cz>
2 siblings, 0 replies; 4+ messages in thread
From: Karel Zak @ 2001-07-27 14:18 UTC (permalink / raw)
To: Chris Ruprecht <chrup999@yahoo.com>; +Cc: pgsql-admin
On Fri, Jul 27, 2001 at 08:55:05AM -0500, Chris Ruprecht wrote:
> Hi guys,
>
> I have a database on my production machine and I want a copy of this db (9 GB) - without the data - on a development machine (notebook with about 6 GB of space).
> How can I just dump the schema without the data? Is there a simple command for that?
>
pg_dump
-s, --schema-only dump out only the schema, no data
Something is bad on docs or pg_dump --help? :-)
Karel
--
Karel Zak <zakkr@zf.jcu.cz>
http://home.zf.jcu.cz/~zakkr/
C, PostgreSQL, PHP, WWW, http://docs.linux.cz, http://mape.jcu.cz
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Dump Schema?
2001-07-27 13:55 Dump Schema? Chris Ruprecht <chrup999@yahoo.com>
@ 2001-07-27 14:38 ` Chris Ruprecht <chrup999@yahoo.com>
2 siblings, 0 replies; 4+ messages in thread
From: Chris Ruprecht @ 2001-07-27 14:38 UTC (permalink / raw)
To: pgsql-admin
Thanks all who responded, I got that working just fine ;-). I should read the manual some time ...
To my surprise, I saw my Pl/PGSQL procedures (functions) dumped there as well. Is there any way to 'encode' them so that the end user is not able to read them in clear text and (heavens forbid) change them?
Best regards,
Chris
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2001-07-27 14:38 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-07-27 13:55 Dump Schema? Chris Ruprecht <chrup999@yahoo.com>
2001-07-27 14:10 ` George Lewis <schvin@schvin.net>
2001-07-27 14:18 ` Karel Zak <zakkr@zf.jcu.cz>
2001-07-27 14:38 ` Chris Ruprecht <chrup999@yahoo.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox