pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedpg_dumps
4+ messages / 3 participants
[nested] [flat]
* pg_dumps
@ 2003-10-09 22:12 Pichelman, Scott <scott.pichelman@berbee.com>
0 siblings, 1 reply; 4+ messages in thread
From: Pichelman, Scott @ 2003-10-09 22:12 UTC (permalink / raw)
To: pgsql-admin
Hi,
I was wondering how to use pg_dump, been having problems no matter what
I use for options.
[admin@holt /root]$ pg_dump -h 127.0.0.1 -p 5432 admin -f
holt_admin_db.dump
Connection to database 'admin' failed.
FATAL 1: Database "admin" does not exist in the system catalog.
[admin@holt /root]$ pg_dump -h 127.0.0.1 -p 5432 ADMIN -f
holt_admin_db.dump
Connection to database 'ADMIN' failed.
FATAL 1: Database "ADMIN" does not exist in the system catalog.
[admin@holt /root]$ pg_dump -h 127.0.0.1 -p 5432 template0 -f
holt_admin_db.dump
Connection to database 'template0' failed.
FATAL 1: Database "template0" is not currently accepting connections
[admin@holt /root]$ pg_dump -h 127.0.0.1 -p 5432 template1 -f
holt_admin_db.dump
getAggregates(): SELECT failed. Explanation from backend: 'ERROR:
Attribute 'aggtransfn1' not found
I am the "admin" unix user and connect as pgsql user admin...
admin=> \c
You are now connected to database admin as user admin.
admin=> \l
List of databases
Database | Owner
-----------+----------
admin | postgres
template0 | postgres
template1 | postgres
test | postgres
I have tried pg_dumpall as well w/ no luck.
Please help me understand what I am doing wrong!
Any help is appreciated.
TIA!
SP
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: pg_dumps
@ 2003-10-11 21:19 Anis W. Nugroho <anis_wn@gawab.com>
0 siblings, 0 replies; 4+ messages in thread
From: Anis W. Nugroho @ 2003-10-11 21:19 UTC (permalink / raw)
To: pgsql-admin
Hi Scott,
You don't need to host and port argument because you are on the
local system. Just type
pg_dump admin > holt_admin_db.dump
If you need to use TCP/IP connection, you must ever tweak .conf
files in the directory /var/lib/pgsql/data to enable port 5432
for that purpose.
To do that you must login/su using root account.
Good luck,
Anis WN
________________________________
15 Mbytes Free Web-based and POP3
Sign up now: http://www.gawab.com
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: pg_dumps
@ 2003-10-11 21:30 Anis W. Nugroho <anis_wn@gawab.com>
0 siblings, 0 replies; 4+ messages in thread
From: Anis W. Nugroho @ 2003-10-11 21:30 UTC (permalink / raw)
To: pgsql-admin
Hi Scott,
You didn't need to use host and port argument since you are on
the
local system. So just type
pg_dump admin > holt_admin_db.dump
If insist to use TCP/IP connection, you must tweak the *.conf
files
in the directory /var/lib/pgsql/data. Use root account to do
that.
Good luck,
Anis WN
________________________________
15 Mbytes Free Web-based and POP3
Sign up now: http://www.gawab.com
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: pg_dumps
@ 2003-10-14 15:32 Tom Lane <tgl@sss.pgh.pa.us>
parent: Pichelman, Scott <scott.pichelman@berbee.com>
0 siblings, 0 replies; 4+ messages in thread
From: Tom Lane @ 2003-10-14 15:32 UTC (permalink / raw)
To: Pichelman, Scott <scott.pichelman@berbee.com>; +Cc: pgsql-admin
"Pichelman, Scott" <scott.pichelman@berbee.com> writes:
> [admin@holt /root]$ pg_dump -h 127.0.0.1 -p 5432 template1 -f
> holt_admin_db.dump
> getAggregates(): SELECT failed. Explanation from backend: 'ERROR:
> Attribute 'aggtransfn1' not found
You seem to be using a really ancient version of pg_dump there --- one
older than (and not compatible with) your server. Check your PATH ...
regards, tom lane
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2003-10-14 15:32 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-10-09 22:12 pg_dumps Pichelman, Scott <scott.pichelman@berbee.com>
2003-10-14 15:32 ` Tom Lane <tgl@sss.pgh.pa.us>
2003-10-11 21:19 Re: pg_dumps Anis W. Nugroho <anis_wn@gawab.com>
2003-10-11 21:30 Re: pg_dumps Anis W. Nugroho <anis_wn@gawab.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