Solved

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

Posted on 2009-07-15
5
553 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hallo! I guess almost every Windows Administrator must have got stumped with this question "Where does WINDOWS store a users cached credentials? Every user who had once logged onto a Server/Desktop while it was connected to the domain could sti…
Ever notice how you can't use a new drive in Windows without having Windows assigning a Disk Signature?  Ever have a signature collision problem (especially with Virtual Machines?)  This article is intended to help you understand what's going on and…
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…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …

751 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