pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Pg-restore
8+ messages / 8 participants
[nested] [flat]

* Pg-restore
@ 2006-02-22 12:00 Ramzi M. Zeid <ramzi.zeid@beecell.com>
  2006-02-22 13:17 ` Re: Pg-restore Richard Huxton <dev@archonet.com>
  0 siblings, 1 reply; 8+ messages in thread

From: Ramzi M. Zeid @ 2006-02-22 12:00 UTC (permalink / raw)
  To: Andrew Nykolyn <nykolyn@ngc.com>; Andras Got <andrej1981@gmail.com>; +Cc: pgsql-bugs

Hello all, 

Is the any way or command to make a restore for a single table from a TAR
file that contains many table to another DB.

Regards

Ramzi 

^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: Pg-restore
  2006-02-22 12:00 Pg-restore Ramzi M. Zeid <ramzi.zeid@beecell.com>
@ 2006-02-22 13:17 ` Richard Huxton <dev@archonet.com>
  0 siblings, 0 replies; 8+ messages in thread

From: Richard Huxton @ 2006-02-22 13:17 UTC (permalink / raw)
  To: Ramzi M. Zeid <ramzi.zeid@beecell.com>; +Cc: Andrew Nykolyn <nykolyn@ngc.com>; Andras Got <andrej1981@gmail.com>; pgsql-bugs

Ramzi M. Zeid wrote:
> Hello all, 
> 
> Is the any way or command to make a restore for a single table from a TAR
> file that contains many table to another DB.

pg_restore -t <tablename> will work if it's a dump in the correct 
format. See the manuals for details.

If it's just a bunch of INSERTS in a file you've built yourself, then 
clearly not.

-- 
   Richard Huxton
   Archonet Ltd



^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* pg_restore
@ 2006-08-01 12:24 Jan Cruz <malebug@gmail.com>
  2006-08-08 17:27 ` Re: pg_restore Jim Nasby <jnasby@pervasive.com>
  0 siblings, 1 reply; 8+ messages in thread

From: Jan Cruz @ 2006-08-01 12:24 UTC (permalink / raw)
  To: pgsql-bugs

I am having problem with pg_restore 8.1.4

pg_restore: [custom archiver] out of memory
pg_restore: *** aborted because of error

^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: pg_restore
  2006-08-01 12:24 pg_restore Jan Cruz <malebug@gmail.com>
@ 2006-08-08 17:27 ` Jim Nasby <jnasby@pervasive.com>
  0 siblings, 0 replies; 8+ messages in thread

From: Jim Nasby @ 2006-08-08 17:27 UTC (permalink / raw)
  To: Jan Cruz <malebug@gmail.com>; +Cc: pgsql-bugs

On Aug 1, 2006, at 7:24 AM, Jan Cruz wrote:
> I am having problem with pg_restore 8.1.4
>
> pg_restore: [custom archiver] out of memory
> pg_restore: *** aborted because of error

Is that the only output you get?

What's maintenance_work_mem set to, and how much memory and swap do  
you have? Is the machine swapping when this happens?
--
Jim C. Nasby, Sr. Engineering Consultant      jnasby@pervasive.com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461





^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* pg_restore
@ 2012-12-05 12:40 Branka Stancic <brankastancic@hotmail.com>
  2012-12-08 22:39 ` Re: pg_restore John R Pierce <pierce@hogranch.com>
  0 siblings, 1 reply; 8+ messages in thread

From: Branka Stancic @ 2012-12-05 12:40 UTC (permalink / raw)
  To: pgsql-bugs



Hi,I have problem.I want to restore only data in database.In pgAdmin I was backup only data from old database and now i have  backup file backup.sql.In terminale I want restore only data in new database and I using command pg_restore -i -h localhost -p 5432 -U postgres -d payroll --data-only -v "/home/postgres/backup.sql",but i get an error:pg_restore:[archiver] input file appears to be a text format dump.Please use psql
Thanks in advance for your suggestions.

 		 	   		  =

^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: pg_restore
  2012-12-05 12:40 pg_restore Branka Stancic <brankastancic@hotmail.com>
@ 2012-12-08 22:39 ` John R Pierce <pierce@hogranch.com>
  0 siblings, 0 replies; 8+ messages in thread

From: John R Pierce @ 2012-12-08 22:39 UTC (permalink / raw)
  To: pgsql-bugs

On 12/5/2012 4:40 AM, Branka Stancic wrote:
> I have problem.
> I want to restore only data in database.
> In pgAdmin I was backup only data from old database and now i have 
>  backup file backup.sql.
> In terminale I want restore only data in new database and I using 
> command pg_restore -i -h localhost -p 5432 -U postgres -d payroll 
> --data-only -v "/home/postgres/backup.sql",
> but i get an error:
> pg_restore:[archiver] input file appears to be a text format 
> dump.Please use psql

pg_restore is only for binary dumps such as are generated by pg_dump -Fc

plain text dumps are restored with psql -f filename.sql

if you dumped just the data, then thats all it will restore (data only 
mean it won't create the tables and such),   but you probably should 
truncate the existing tables first if there's old data in them.






-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: pg_restore
@ 2012-12-08 16:40 Kevin Grittner <kgrittn@mail.com>
  0 siblings, 0 replies; 8+ messages in thread

From: Kevin Grittner @ 2012-12-08 16:40 UTC (permalink / raw)
  To: Branka Stancic <brankastancic@hotmail.com>; pgsql-bugs

Branka Stancic wrote:

> I using command pg_restore

> get an error: pg_restore: [archiver] input file appears to be a
> text format dump. Please use psql

pg_restore is not used for restoring text files; psql is. If you
want to use pg_restore you should use -Fc when you run pg_dump. At
this point, you need to run the script file in through psql. If it
contains steps you don't want to execute, you will need to copy and
edit the file to leave just the portions you want to run.

-Kevin


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* PG_restore
@ 2013-08-23 12:16 Valdas Dienas <valdas.dienas@amidus.lt>
  0 siblings, 0 replies; 8+ messages in thread

From: Valdas Dienas @ 2013-08-23 12:16 UTC (permalink / raw)
  To: pgsql-bugs

Hi

Is it possible to restore pg db with the same oids

^ permalink  raw  reply  [nested|flat] 8+ messages in thread


end of thread, other threads:[~2013-08-23 12:16 UTC | newest]

Thread overview: 8+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-02-22 12:00 Pg-restore Ramzi M. Zeid <ramzi.zeid@beecell.com>
2006-02-22 13:17 ` Richard Huxton <dev@archonet.com>
2006-08-01 12:24 pg_restore Jan Cruz <malebug@gmail.com>
2006-08-08 17:27 ` Re: pg_restore Jim Nasby <jnasby@pervasive.com>
2012-12-05 12:40 pg_restore Branka Stancic <brankastancic@hotmail.com>
2012-12-08 22:39 ` Re: pg_restore John R Pierce <pierce@hogranch.com>
2012-12-08 16:40 Re: pg_restore Kevin Grittner <kgrittn@mail.com>
2013-08-23 12:16 PG_restore Valdas Dienas <valdas.dienas@amidus.lt>

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