agora inbox for pgsql-sql@postgresql.org
help / color / mirror / Atom feedpg_dump
14+ messages / 12 participants
[nested] [flat]
* pg_dump
@ 1999-06-15 19:21 Dipankar Chakrabarti <dipanc@yahoo.com>
1999-06-15 19:26 ` Re: [SQL] pg_dump Bruce Momjian <maillist@candle.pha.pa.us>
0 siblings, 1 reply; 14+ messages in thread
From: Dipankar Chakrabarti @ 1999-06-15 19:21 UTC (permalink / raw)
To: pgsql-sql
Is it possible to do hot backup in PostgreSQL, i.e. is
it possible to issue pg_dump or pg_dump_all when the
databse is up and databse activities are going on?
I am trying to give a facility to dbAdmin through GUI
to perform backup-recovery online.
Need info.
Dipankar
===
DIPANKAR CHAKRABARTI
Have a Nice Time............
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: [SQL] pg_dump
1999-06-15 19:21 pg_dump Dipankar Chakrabarti <dipanc@yahoo.com>
@ 1999-06-15 19:26 ` Bruce Momjian <maillist@candle.pha.pa.us>
0 siblings, 0 replies; 14+ messages in thread
From: Bruce Momjian @ 1999-06-15 19:26 UTC (permalink / raw)
To: Dipankar Chakrabarti <dipanc@yahoo.com>; +Cc: pgsql-sql
>
> Is it possible to do hot backup in PostgreSQL, i.e. is
> it possible to issue pg_dump or pg_dump_all when the
> databse is up and databse activities are going on?
>
> I am trying to give a facility to dbAdmin through GUI
> to perform backup-recovery online.
>
In 6.5, yes!
--
Bruce Momjian | http://www.op.net/~candle
maillist@candle.pha.pa.us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
^ permalink raw reply [nested|flat] 14+ messages in thread
* pg_dump
@ 2000-07-25 22:14 sathya priya <mscsathya@yahoo.com>
2000-07-25 23:05 ` Re: pg_dump Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 14+ messages in thread
From: sathya priya @ 2000-07-25 22:14 UTC (permalink / raw)
To: pgsql-sql
hai
when dump the database it throw
"getTables(): relation 'ordermaster': cannot find
function with oid 1655 for trigger
RI_ConstraintTrigger_2017354 "
any clues
thank advance
p. ashok kumar
__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail Free email you can access from anywhere!
http://mail.yahoo.com/
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: pg_dump
2000-07-25 22:14 pg_dump sathya priya <mscsathya@yahoo.com>
@ 2000-07-25 23:05 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 14+ messages in thread
From: Tom Lane @ 2000-07-25 23:05 UTC (permalink / raw)
To: sathya priya <mscsathya@yahoo.com>; +Cc: pgsql-sql
sathya priya <mscsathya@yahoo.com> writes:
> when dump the database it throw
> "getTables(): relation 'ordermaster': cannot find
> function with oid 1655 for trigger
> RI_ConstraintTrigger_2017354 "
I think this must be another variant of the
6.5-pg_dump-with-7.0-database problem. There's
no error message of that spelling in 7.0 pg_dump,
but there is in 6.5 ...
Check your PATH, or invoke pg_dump using a full path
instead of letting it default.
regards, tom lane
^ permalink raw reply [nested|flat] 14+ messages in thread
* Pg_dump
@ 2002-03-11 19:45 Hunter, Ray <rhunter@enterasys.com>
2002-03-11 21:37 ` Re: Pg_dump knut.suebert@web.de
0 siblings, 1 reply; 14+ messages in thread
From: Hunter, Ray @ 2002-03-11 19:45 UTC (permalink / raw)
To: pgsql-sql
Question:
How fast does pg_dump handle this scenario? pg_dump -h host1 dbname | psql
-h host2 dbname
What is the difference between doing the above vs. doing rsync over a secure
connections?
Thank you,
Ray Hunter
Firmware Engineer
ENTERASYS NETWORKS
Internal: 53888
External: 801 887-9888
Email: rhunter@enterasys.com <mailto:rhunter@enterasys.com>
www: www.enterasys.com <http://www.enterasys.com;
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: Pg_dump
2002-03-11 19:45 Pg_dump Hunter, Ray <rhunter@enterasys.com>
@ 2002-03-11 21:37 ` knut.suebert@web.de
0 siblings, 0 replies; 14+ messages in thread
From: knut.suebert@web.de @ 2002-03-11 21:37 UTC (permalink / raw)
To: pgsql-sql
Hunter, Ray schrieb:
> Question:
>
> How fast does pg_dump handle this scenario? pg_dump -h host1 dbname | psql
> -h host2 dbname
Depends on the speed of the network connection, I'd guess. Compression
seems to be involved by using the option "-Fc".
But I got no experience on this.
For security reasons, tunneling over ssh could be interesting.
> What is the difference between doing the above vs. doing rsync over a
> secure connections?
"rsync -e ssh -z" the dumped files? Than you got compressed security
(with some speed penalties for encryption, depending on the relation
between CPU power and network bandwidth). You have to involve remote
commands on the source host before for dumping and afterwards on the
target host to restore. If you got an older dump of the source on the
target before, that could speed up a *very* lot.
I don't know how perfect rsync is in finding very small differences in
very large data. But there are options to tune it's behavior.
If you think about "rsync /var/lib/postgres/data" of running
postmasters, that should give total trash on the target. Only an
option, if both postmasters are stopped before and all databases are
to be synced.
For me, it seems more efficent to login remotely on host1 or host2
before doing the "rsync" or "pg_dump | pgsql". It that case, the data
has to be transmitted one way host1->host2 only instead of two way
host1->host0->host2 (but that penalty could depend on the network's
configuration and maybe the programs do it better automatically).
Just my ideas about differences,
Knut Sübert
^ permalink raw reply [nested|flat] 14+ messages in thread
* pg_dump
@ 2005-11-11 23:04 Judith Altamirano Figueroa <jaltamirano@correolux.com.mx>
2005-11-15 12:01 ` Re: [SQL] pg_dump Oliver Elphick <olly@lfix.co.uk>
0 siblings, 1 reply; 14+ messages in thread
From: Judith Altamirano Figueroa @ 2005-11-11 23:04 UTC (permalink / raw)
To: pgsql-sql
Hi
how could I restore a db if I did next:
pg_dump -Z 9 soi > $DESTINO/soi.bkp
Thanks in advanced
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: [SQL] pg_dump
2005-11-11 23:04 pg_dump Judith Altamirano Figueroa <jaltamirano@correolux.com.mx>
@ 2005-11-15 12:01 ` Oliver Elphick <olly@lfix.co.uk>
0 siblings, 0 replies; 14+ messages in thread
From: Oliver Elphick @ 2005-11-15 12:01 UTC (permalink / raw)
To: Judith Altamirano Figueroa <jaltamirano@correolux.com.mx>; +Cc: pgsql-docs@postgresql.org; pgsql-sql
On Fri, 2005-11-11 at 17:04 -0600, Judith Altamirano Figueroa wrote:
> Hi
>
> how could I restore a db if I did next:
>
> pg_dump -Z 9 soi > $DESTINO/soi.bkp
Since you don't specify any dump format, your dump should be plain text
and is compressed with gzip, so the restore command is going to be:
zcat $DESTINO/soi.bkp | psql -d restore_database_name -f -
You have to create the database to restore into first.
------------------------------------------
[Note for documentation:
According to the psql man page:
-Z 0..9
--compress=0..9
Specify the compression level to use in archive formats that
support compression. (Currently only the custom archive format
supports compression.)
However using psql -Z with no format or with "-F p" in fact produces a
gzipped file.]
This might be a suitable amendment to the docs?:
$ diff -u /tmp/pg_dump.sgml.orig /tmp/pg_dump.sgml
--- /tmp/pg_dump.sgml.orig 2005-11-15 11:50:55.000000000 +0000
+++ /tmp/pg_dump.sgml 2005-11-15 11:57:38.000000000 +0000
@@ -492,8 +492,9 @@
<listitem>
<para>
Specify the compression level to use in archive formats that
- support compression. (Currently only the custom archive
- format supports compression.)
+ support compression. (Currently the tar archive
+ format does not support compression. The plain text format is
+ compressed with gzip.)
</para>
</listitem>
</varlistentry>
--
Oliver Elphick olly@lfix.co.uk
Isle of Wight http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA 92C8 39E7 280E 3631 3F0E 1EC0 5664 7A2F A543 10EA
========================================
Do you want to know God? http://www.lfix.co.uk/knowing_god.html
^ permalink raw reply [nested|flat] 14+ messages in thread
* pg_dump
@ 2006-09-05 07:22 M. Santosa <muhamad_santosa@ag.co.id>
2006-09-05 10:54 ` Re: pg_dump Andrew Sullivan <ajs@crankycanuck.ca>
2006-09-05 14:28 ` Re: pg_dump Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 2 replies; 14+ messages in thread
From: M. Santosa @ 2006-09-05 07:22 UTC (permalink / raw)
To: pgsql-sql
I've install postgres in linux.
but pg_dump its not working at all.
if i execute the pg_dump to the file like this
pg_dump -Upostgres -dpostgres > file.dmp
the file file.dmp is empty
and if i execute the psql with list database option, the result is error
-bash-3.00$ psql -l
ERROR: relation "pg_catalog.pg_user" does not exist
can any one help me
Thanx
tosa
===================================================
PT. BANK ARTHA GRAHA INTERNASIONAL TBK. DISCLAIMER:
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager. This message contains confidential information
and is intended only for the individual named. If you are not the
named addressee you should not disseminate, distribute or copy this
e-mail. Please notify the sender immediately by e-mail if you have
received this e-mail by mistake and delete this e-mail from your
system. If you are not the intended recipient you are notified that
disclosing, copying, distributing or taking any action in reliance on
the contents of this information is strictly prohibited.
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: pg_dump
2006-09-05 07:22 pg_dump M. Santosa <muhamad_santosa@ag.co.id>
@ 2006-09-05 10:54 ` Andrew Sullivan <ajs@crankycanuck.ca>
1 sibling, 0 replies; 14+ messages in thread
From: Andrew Sullivan @ 2006-09-05 10:54 UTC (permalink / raw)
To: pgsql-sql
On Tue, Sep 05, 2006 at 02:22:29PM +0700, M. Santosa wrote:
> and if i execute the psql with list database option, the result is error
>
> -bash-3.00$ psql -l
> ERROR: relation "pg_catalog.pg_user" does not exist
This looks to me like you have more than one postmaster installed,
and you've got a mismatch in versions. Be my first guess, anyway.
A
--
Andrew Sullivan | ajs@crankycanuck.ca
Users never remark, "Wow, this software may be buggy and hard
to use, but at least there is a lot of code underneath."
--Damien Katz
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: pg_dump
2006-09-05 07:22 pg_dump M. Santosa <muhamad_santosa@ag.co.id>
@ 2006-09-05 14:28 ` Tom Lane <tgl@sss.pgh.pa.us>
1 sibling, 0 replies; 14+ messages in thread
From: Tom Lane @ 2006-09-05 14:28 UTC (permalink / raw)
To: M. Santosa <muhamad_santosa@ag.co.id>; +Cc: pgsql-sql
"M. Santosa" <muhamad_santosa@ag.co.id> writes:
> I've install postgres in linux.
> but pg_dump its not working at all.
> -bash-3.00$ psql -l
> ERROR: relation "pg_catalog.pg_user" does not exist
IIRC, this is a symptom of selinux having interfered with initdb.
Get a newer copy of the selinux policy package (or turn it off
temporarily) and redo initdb. You can find more info if you search
our archives for "selinux".
regards, tom lane
^ permalink raw reply [nested|flat] 14+ messages in thread
* pg_dump?
@ 2007-05-14 22:48 Richard Dunne <richarddunne1971@yahoo.com>
2007-05-14 22:56 ` Re: pg_dump? Paul Lambert <paul.lambert@autoledgers.com.au>
2007-05-15 11:19 ` Re: pg_dump? Andrew Sullivan <ajs@crankycanuck.ca>
0 siblings, 2 replies; 14+ messages in thread
From: Richard Dunne @ 2007-05-14 22:48 UTC (permalink / raw)
To: pgsql-sql
PostgreSQL begginer. Whats the best way of exporting(dumping) a database/table/view/query to a file?
I am using PostgreSQL v 8.2. I am starting postgres server with
C:\WINDOWS\system32\net.exe start pgsql-8.2, (start service)
C:\postgresql-8.2.3-1\bin\psql.exe -h localhost -p 5432 postgres "Richard"
(psql to 'postgres')
both of which are run from shortcuts in the start menu.
my cli starts with "postgres #", then "databasename #" after connecting using \c.
Richard.
____________________________________________________________________________________Get the free Yahoo! toolbar and rest assured with the added security of spyware protection.
http://new.toolbar.yahoo.com/toolbar/features/norton/index.php
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: pg_dump?
2007-05-14 22:48 pg_dump? Richard Dunne <richarddunne1971@yahoo.com>
@ 2007-05-14 22:56 ` Paul Lambert <paul.lambert@autoledgers.com.au>
1 sibling, 0 replies; 14+ messages in thread
From: Paul Lambert @ 2007-05-14 22:56 UTC (permalink / raw)
To: pgsql-sql
Richard Dunne wrote:
> PostgreSQL begginer. Whats the best way of exporting(dumping) a database/table/view/query to a file?
> I am using PostgreSQL v 8.2. I am starting postgres server with
> C:\WINDOWS\system32\net.exe start pgsql-8.2, (start service)
> C:\postgresql-8.2.3-1\bin\psql.exe -h localhost -p 5432 postgres "Richard"
> (psql to 'postgres')
> both of which are run from shortcuts in the start menu.
> my cli starts with "postgres #", then "databasename #" after connecting using \c.
>
> Richard.
>
>
With exactly what you said in the subject... pg_dump
http://www.postgresql.org/docs/8.2/static/app-pgdump.html
Your other option would be with an SQL 'COPY'
http://www.postgresql.org/docs/8.2/static/sql-copy.html
The difference between the two is dump will give you output including
the SQL used to put it back into the database, i.e. INSERT INTO
statements whereas copy will give you a flat delimited file.
--
Paul Lambert
Database Administrator
AutoLedgers
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: pg_dump?
2007-05-14 22:48 pg_dump? Richard Dunne <richarddunne1971@yahoo.com>
@ 2007-05-15 11:19 ` Andrew Sullivan <ajs@crankycanuck.ca>
1 sibling, 0 replies; 14+ messages in thread
From: Andrew Sullivan @ 2007-05-15 11:19 UTC (permalink / raw)
To: pgsql-sql
You want to look at the pg_dump command.
A
On Mon, May 14, 2007 at 03:48:17PM -0700, Richard Dunne wrote:
> PostgreSQL begginer. Whats the best way of exporting(dumping) a database/table/view/query to a file?
> I am using PostgreSQL v 8.2. I am starting postgres server with
> C:\WINDOWS\system32\net.exe start pgsql-8.2, (start service)
> C:\postgresql-8.2.3-1\bin\psql.exe -h localhost -p 5432 postgres "Richard"
> (psql to 'postgres')
> both of which are run from shortcuts in the start menu.
> my cli starts with "postgres #", then "databasename #" after connecting using \c.
>
> Richard.
>
>
>
> ____________________________________________________________________________________Get the free Yahoo! toolbar and rest assured with the added security of spyware protection.
> http://new.toolbar.yahoo.com/toolbar/features/norton/index.php
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings
--
Andrew Sullivan | ajs@crankycanuck.ca
I remember when computers were frustrating because they *did* exactly what
you told them to. That actually seems sort of quaint now.
--J.D. Baldwin
^ permalink raw reply [nested|flat] 14+ messages in thread
end of thread, other threads:[~2007-05-15 11:19 UTC | newest]
Thread overview: 14+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1999-06-15 19:21 pg_dump Dipankar Chakrabarti <dipanc@yahoo.com>
1999-06-15 19:26 ` Bruce Momjian <maillist@candle.pha.pa.us>
2000-07-25 22:14 pg_dump sathya priya <mscsathya@yahoo.com>
2000-07-25 23:05 ` Tom Lane <tgl@sss.pgh.pa.us>
2002-03-11 19:45 Pg_dump Hunter, Ray <rhunter@enterasys.com>
2002-03-11 21:37 ` Re: Pg_dump knut.suebert@web.de
2005-11-11 23:04 pg_dump Judith Altamirano Figueroa <jaltamirano@correolux.com.mx>
2005-11-15 12:01 ` Oliver Elphick <olly@lfix.co.uk>
2006-09-05 07:22 pg_dump M. Santosa <muhamad_santosa@ag.co.id>
2006-09-05 10:54 ` Andrew Sullivan <ajs@crankycanuck.ca>
2006-09-05 14:28 ` Tom Lane <tgl@sss.pgh.pa.us>
2007-05-14 22:48 pg_dump? Richard Dunne <richarddunne1971@yahoo.com>
2007-05-14 22:56 ` Re: pg_dump? Paul Lambert <paul.lambert@autoledgers.com.au>
2007-05-15 11:19 ` Re: pg_dump? Andrew Sullivan <ajs@crankycanuck.ca>
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox