pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedDatabase information
2+ messages / 2 participants
[nested] [flat]
* Database information
@ 2006-02-27 16:07 E.Karystinakis@Bradford.ac.uk
0 siblings, 1 reply; 2+ messages in thread
From: E.Karystinakis@Bradford.ac.uk @ 2006-02-27 16:07 UTC (permalink / raw)
To: pgsql-admin
Hello,
I am a student at the university of Bradfordat the department of Computing. In
the labs we use postgeSQL. If it is possible can you please inform me how I can
create .dat files with the information of the tables of the existing database
and a .sql file which will have the tables that are created? I would appreciate
your help.
Thank you in advance,
Karystinakis Evangelos
------------------------------------------------------------
This mail sent through IMP: http://webmail.brad.ac.uk
To report misuse from this email address forward the message
and full headers to misuse@bradford.ac.uk
------------------------------------------------------------
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Database information
@ 2006-03-01 09:15 Gourish Singbal <gourish@gmail.com>
parent: E.Karystinakis@Bradford.ac.uk
0 siblings, 0 replies; 2+ messages in thread
From: Gourish Singbal @ 2006-03-01 09:15 UTC (permalink / raw)
To: E.Karystinakis@bradford.ac.uk <E.Karystinakis@bradford.ac.uk>; +Cc: pgsql-admin
Use the pg_dump utility in postgresql.
1. to export the database data use .
/usr/local/pgsql/bin/pg_dump [database_name] > filename.dat
2. to export only the schema of the database .
/usr/local/pgsql/bin/pg_dump -s [database_name] > schema_filename.sql
NOTE:
/usr/local/pgsql/bin/pg_dump --help
is ur friend.
On 2/27/06, E.Karystinakis@bradford.ac.uk <E.Karystinakis@bradford.ac.uk>
wrote:
>
> Hello,
>
> I am a student at the university of Bradfordat the department of
> Computing. In
> the labs we use postgeSQL. If it is possible can you please inform me how
> I can
> create .dat files with the information of the tables of the existing
> database
> and a .sql file which will have the tables that are created? I would
> appreciate
> your help.
>
> Thank you in advance,
>
> Karystinakis Evangelos
>
>
> ------------------------------------------------------------
> This mail sent through IMP: http://webmail.brad.ac.uk
> To report misuse from this email address forward the message
> and full headers to misuse@bradford.ac.uk
> ------------------------------------------------------------
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings
>
--
Best,
Gourish Singbal
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2006-03-01 09:15 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-02-27 16:07 Database information E.Karystinakis@Bradford.ac.uk
2006-03-01 09:15 ` Gourish Singbal <gourish@gmail.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