Solved

How do I run a dumpall in PostgreSQL in PSQL on Windows Server 2003?

Posted on 2009-07-15
5
545 Views
Last Modified: 2012-05-07
Hello,

I am new to PostgreSQL and I need to move the databases from one server to another? I have read about a dumpall feature that will allow me to do this.. However, when I type in the command to the PSQL shell nothing happens. I am sure that the credentials are correct. Can anyone help?
0
Comment
Question by:Lanyelle
  • 3
  • 2
5 Comments
 
LVL 3

Expert Comment

by:a_didit_m
ID: 24900926
dumpall feature in PostgreSQL is a executable program that run from windows Command Prompt. Locate the file pg_dumpall.exe in your PostgreSQL Installation directory (usually in C:\Program Files\PostgreSQL\8.1\bin>)

And then run with help argument :

C:\Program Files\PostgreSQL\8.1\bin>pg_dumpall --help

to learn about using.

Hope help


Didit
0
 
LVL 3

Expert Comment

by:a_didit_m
ID: 24900940
I'm sorry, I mean, usually the file pg_dumpall.exe reside in (usually in C:\Program Files\PostgreSQL\8.X\bin>) depend on the version of the PostgreSQL.
0
 

Author Comment

by:Lanyelle
ID: 24906497
Thanks, the main problem was that I was running it in PSQL shell with no results. You can run the pgdumpall in the WIndows Command Prompt?
0
 
LVL 3

Accepted Solution

by:
a_didit_m earned 500 total points
ID: 24909801
>Thanks, the main problem was that I was running it in PSQL shell with no results.
There is no dumpall command in PostgreSQL shell or in SQL language.


>You can run the pgdumpall in the WIndows Command Prompt?
Yes, here the example :


C:\Program Files\PostgreSQL\8.3\bin>pg_dumpall --help

pg_dumpall extracts a PostgreSQL database cluster into an SQL script file.
 

Usage:

  pg_dumpall [OPTION]...
 

General options:

  -f, --file=FILENAME      output file name

  -i, --ignore-version     proceed even when server version mismatches

                           pg_dumpall version

  --help                   show this help, then exit

  --version                output version information, then exit

---------------------cut-----------------------------------------

Open in new window

0
 

Author Comment

by:Lanyelle
ID: 24910008
OK Ima give it a try tonight, I appreciate  your help!!!!!!!!!!!!!!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

by Nathan Brom/Bromy2004 Introduction There are numerous websites out there for any different type of program you can imagine.  Of those, you'll need to decide which ones are legitimate and aren't trying to steal your money or infect your comput…
Log files are useful in diagnosing and repairing problems.  This is a list of common log files and their standard locations that I've compiled.   While this is not exhaustive, it is a pretty good list that I've found to be useful.  I may update it f…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now