From chrup999@yahoo.com Fri Jul 27 13:55:06 2001 Received: from smtp015.mail.yahoo.com (smtp015.mail.yahoo.com [216.136.173.59]) by postgresql.org (8.11.3/8.11.1) with SMTP id f6RDt6f32277 for ; Fri, 27 Jul 2001 09:55:06 -0400 (EDT) (envelope-from chrup999@yahoo.com) Received: from proxy.compucom.com (HELO Z161842) (204.214.145.2) by smtp.mail.vip.sc5.yahoo.com with SMTP; 27 Jul 2001 13:55:03 -0000 X-Apparently-From: Message-ID: <004b01c116a3$bd7c3a00$5dd26383@corp.compucom.com> From: "Chris Ruprecht" To: "p-admin" Subject: Dump Schema? Date: Fri, 27 Jul 2001 08:55:05 -0500 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0048_01C11679.D46AAFA0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Archive-Number: 200107/155 X-Sequence-Number: 1914 This is a multi-part message in MIME format. ------=_NextPart_000_0048_01C11679.D46AAFA0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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 ------=_NextPart_000_0048_01C11679.D46AAFA0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi guys,
 
I have a database on my production machine= and I=20 want a copy of this db (9 GB) - without the data - on a development machine= =20 (notebook with about 6 GB of space).
How can I just dump the schema without the= data? Is=20 there a simple command for that?
 
Best regards,
Chris
 
------=_NextPart_000_0048_01C11679.D46AAFA0-- _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From schvin@schvin.net Fri Jul 27 14:10:45 2001 Received: from thor.ghim.org (thor.ghim.org [209.249.182.115]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f6REAjf39730 for ; Fri, 27 Jul 2001 10:10:45 -0400 (EDT) (envelope-from schvin@schvin.net) Received: from electra (electra.nexus [192.168.2.128]) by thor.ghim.org (8.11.3/8.11.3) with SMTP id f6REAdG27038; Fri, 27 Jul 2001 14:10:39 GMT Received: by electra (sSMTP sendmail emulation); Fri, 27 Jul 2001 14:10:38 +0000 Date: Fri, 27 Jul 2001 14:10:38 +0000 From: George Lewis To: Chris Ruprecht Cc: p-admin Subject: Re: Dump Schema? Message-ID: <20010727141038.A20721@schvin.net> References: <004b01c116a3$bd7c3a00$5dd26383@corp.compucom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <004b01c116a3$bd7c3a00$5dd26383@corp.compucom.com>; from chrup999@yahoo.com on Fri, Jul 27, 2001 at 08:55:05AM -0500 X-PGP-Fingerprint: 3D79 875A 9E33 E7BE E868 7EFA A703 5DDA A7C0 9E2C X-Archive-Number: 200107/156 X-Sequence-Number: 1915 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/ From zakkr@zf.jcu.cz Fri Jul 27 14:18:47 2001 Received: from ara.zf.jcu.cz (ara.zf.jcu.cz [160.217.161.4]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f6REIlf43300 for ; Fri, 27 Jul 2001 10:18:47 -0400 (EDT) (envelope-from zakkr@zf.jcu.cz) Received: (from zakkr@localhost) by ara.zf.jcu.cz (8.9.3/8.9.3/Debian 8.9.3-21) id QAA05524; Fri, 27 Jul 2001 16:18:41 +0200 Date: Fri, 27 Jul 2001 16:18:41 +0200 From: Karel Zak To: Chris Ruprecht Cc: p-admin Subject: Re: Dump Schema? Message-ID: <20010727161841.A5504@ara.zf.jcu.cz> References: <004b01c116a3$bd7c3a00$5dd26383@corp.compucom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <004b01c116a3$bd7c3a00$5dd26383@corp.compucom.com>; from chrup999@yahoo.com on Fri, Jul 27, 2001 at 08:55:05AM -0500 X-Archive-Number: 200107/157 X-Sequence-Number: 1916 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 http://home.zf.jcu.cz/~zakkr/ C, PostgreSQL, PHP, WWW, http://docs.linux.cz, http://mape.jcu.cz From chrup999@yahoo.com Fri Jul 27 14:38:20 2001 Received: from smtp011.mail.yahoo.com (smtp011.mail.yahoo.com [216.136.173.31]) by postgresql.org (8.11.3/8.11.1) with SMTP id f6REcKf52500 for ; Fri, 27 Jul 2001 10:38:20 -0400 (EDT) (envelope-from chrup999@yahoo.com) Received: from proxy.compucom.com (HELO Z161842) (204.214.145.2) by smtp.mail.vip.sc5.yahoo.com with SMTP; 27 Jul 2001 14:38:16 -0000 X-Apparently-From: Message-ID: <006d01c116a9$c72ec620$5dd26383@corp.compucom.com> From: "Chris Ruprecht" To: "p-admin" References: <004b01c116a3$bd7c3a00$5dd26383@corp.compucom.com> Subject: Re: Dump Schema? Date: Fri, 27 Jul 2001 09:38:14 -0500 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0068_01C1167F.DBAA18E0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Archive-Number: 200107/158 X-Sequence-Number: 1917 This is a multi-part message in MIME format. ------=_NextPart_000_0068_01C1167F.DBAA18E0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Thanks all who responded, I got that working just fine ;-). I should read t= he manual some time ... To my surprise, I saw my Pl/PGSQL procedures (functions) dumped there as we= ll. Is there any way to 'encode' them so that the end user is not able to r= ead them in clear text and (heavens forbid) change them? Best regards, Chris ------=_NextPart_000_0068_01C1167F.DBAA18E0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Thanks all who responded, I got that worki= ng just=20 fine ;-). I should read the manual some time ...
 
To my surprise, I saw my Pl/PGSQL pr= ocedures=20 (functions) dumped there as well. Is there any way to 'encode' them so that= the=20 end user is not able to read them in clear text and (heavens forbid) change= =20 them?
 
Best regards,
Chris
 
------=_NextPart_000_0068_01C1167F.DBAA18E0-- _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com