Re: [GENERAL] Backup/Restore bytea data

2013-01-14 Thread Richard Huxton
On 14/01/13 01:13, sub3 wrote: Hi, I am having an issue upgrading a really old 8.2 db up to 9.2.2. One of the tables contains a bytea field. When I backup& restore using pgadmin from my 9.2.2 install, it doesn't convert this field correctly. Could this be due to your bytea_output setting? h

Re: [GENERAL] Backup & Restore a database in PostgreSQL

2011-08-08 Thread Albe Laurenz
Siva Palanisamy wrote: > However, I get the same list of errors as below. The weird thing is, it appears to be working fine. I > could not able to comprehend the error list! I don't have any clue about it! > > For your information, I don't think am running using the superuser account! But just seem

Re: [GENERAL] Backup & Restore a database in PostgreSQL

2011-08-08 Thread Greg Williamson
Siva -- > > Thanks a lot for your reply. As usual Backup worked perfectly. When I tried > restore using the command you provided, I got the below list of errors! > Please help me > out on this. > > pg_restore: [archiver (db)] Error while PROCESSING TOC: > pg_restore: [archiver (db)] Error fro

Re: [GENERAL] Backup & Restore a database in PostgreSQL

2011-08-08 Thread Siva Palanisamy
o:amitabhk...@gmail.com] Sent: Monday, August 08, 2011 2:42 PM To: Siva Palanisamy Cc: John R Pierce; pgsql-general@postgresql.org Subject: Re: [GENERAL] Backup & Restore a database in PostgreSQL Hi Siva Not sure if it would help, but try passing -O in your pg_restore command. Amitabh On Mon, Aug 8, 2

Re: [GENERAL] Backup & Restore a database in PostgreSQL

2011-08-08 Thread Amitabh Kant
Original Message- > From: pgsql-general-ow...@postgresql.org [mailto: > pgsql-general-ow...@postgresql.org] On Behalf Of John R Pierce > Sent: Monday, August 08, 2011 1:45 PM > To: pgsql-general@postgresql.org > Subject: Re: [GENERAL] Backup & Restore a database in PostgreSQL &g

Re: [GENERAL] Backup & Restore a database in PostgreSQL

2011-08-08 Thread Siva Palanisamy
stgresql.org] On Behalf Of John R Pierce Sent: Monday, August 08, 2011 1:45 PM To: pgsql-general@postgresql.org Subject: Re: [GENERAL] Backup & Restore a database in PostgreSQL On 08/08/11 1:01 AM, Siva Palanisamy wrote: > > Hi All, > > I am also a newbie here! I need to backup a

Re: [GENERAL] Backup & Restore a database in PostgreSQL

2011-08-08 Thread John R Pierce
On 08/08/11 1:01 AM, Siva Palanisamy wrote: Hi All, I am also a newbie here! I need to backup a database and restore it into the target machine where the database may already present or might not. If it exists, I want the "restore" command to overwrite, otherwise, just create a new one. I

Re: [GENERAL] Backup/Restore Needed for Upgrade from 9.0beta4?

2011-02-10 Thread Adrian Klaver
On Tuesday, February 08, 2011 10:41:15 am Lee Hughes wrote: > From section 15.4 of the manual: > > "If you are upgrading from PostgreSQL "9.0.x", the new version can use > your current data files so you should skip the backup and restore steps" > > Is 9.0beta4 considered a 9.0.x version, or do I

Re: [GENERAL] Backup/Restore of single table in multi TB database

2008-07-19 Thread Simon Riggs
On Fri, 2008-07-18 at 20:25 -0400, Francisco Reyes wrote: > Does pg_snapclone works mostly on large rows or will it also be faster > than pg_dump for narrow tables? It allows you to run your dump in multiple pieces. Thats got nothing to do with narrow or wide. -- Simon Riggs www.2n

Re: [GENERAL] Backup/Restore of single table in multi TB database

2008-07-18 Thread Francisco Reyes
Simon Riggs wrote: Have a look at pg_snapclone. It's specifically designed to significantly improve dump times for very large objects. http://pgfoundry.org/projects/snapclone/ Also, in case the original poster is not aware, by default pg_dump allows to backup single tables. Just add -t .

Re: [GENERAL] Backup/Restore of single table in multi TB database

2008-05-07 Thread Simon Riggs
On Wed, 2008-05-07 at 15:24 -0700, John Smith wrote: > Actually, I forgot to mention one more detail in my original post. > For the table that we're looking to backup, we also want to be able to > do incremental backups. pg_dump will cause the entire table to be > dumped out each time it is invok

Re: [GENERAL] Backup/Restore of single table in multi TB database

2008-05-07 Thread John Smith
Hi Tom, Actually, I forgot to mention one more detail in my original post. For the table that we're looking to backup, we also want to be able to do incremental backups. pg_dump will cause the entire table to be dumped out each time it is invoked. With the pg_{start,stop}_backup approach, increm

Re: [GENERAL] Backup/Restore of single table in multi TB database

2008-05-07 Thread Tom Lane
"John Smith" <[EMAIL PROTECTED]> writes: > After reading the documentation, it seems like the following might > work. Suppose the database has two tables foo and bar, and we're only > interested in backing up table foo: > 1. Call pg_start_backup > 2. Use the pg_class table in the catalog to get

Re: [GENERAL] Backup/Restore of single table in multi TB database

2008-05-07 Thread Simon Riggs
On Wed, 2008-05-07 at 13:02 -0700, John Smith wrote: > I have a large database (multiple TBs) where I'd like to be able to do > a backup/restore of just a particular table (call it foo). Because > the database is large, the time for a full backup would be > prohibitive. Also, whatever backup mec

Re: [GENERAL] Backup/Restore of single table in multi TB database

2008-05-07 Thread Joshua D. Drake
On Wed, 7 May 2008 16:09:45 -0400 "David Wilson" <[EMAIL PROTECTED]> wrote: > I'm fairly certain that you have to be very careful about doing simple > file copies while the system is running, as the files may end up out > of sync based on when each individual one is copied. I haven't done it > mys

Re: [GENERAL] Backup/Restore of single table in multi TB database

2008-05-07 Thread Joshua D. Drake
On Wed, 7 May 2008 13:02:57 -0700 "John Smith" <[EMAIL PROTECTED]> wrote: > Hi, > > I have a large database (multiple TBs) where I'd like to be able to do > a backup/restore of just a particular table (call it foo). Because > the database is large, the time for a full backup would be > prohibiti

Re: [GENERAL] Backup/Restore of single table in multi TB database

2008-05-07 Thread David Wilson
On Wed, May 7, 2008 at 4:02 PM, John Smith <[EMAIL PROTECTED]> wrote: > Does anyone see a problem with this approach (e.g., correctness, > performance, etc.)? Or is there perhaps an alternative approach using > some other postgresql mechanism that I'm not aware of? Did you already look at and

Re: [GENERAL] Backup Restore

2007-01-04 Thread Richard Huxton
Bob Pawley wrote: Found it in template 1. This seems strange as both servers and pgadmins are the same version and I haven't opened the template until today. The only thing I can think of is that you accidentally restored into template1. Probably easier to do with pgadmin than from the command

Re: [GENERAL] Backup Restore

2007-01-03 Thread Bob Pawley
<[EMAIL PROTECTED]>; "Shoaib Mir" <[EMAIL PROTECTED]>; "Postgresql" Sent: Wednesday, January 03, 2007 10:44 AM Subject: Re: [GENERAL] Backup Restore Bob Pawley wrote: Looking through PGAdmin where would I find the spatial references that the errror message refer

Re: [GENERAL] Backup Restore

2007-01-03 Thread Richard Huxton
Bob Pawley wrote: Looking through PGAdmin where would I find the spatial references that the errror message references? Bob Pawley wrote: Following is the error message on pg_restore:- "pg_restore: ERROR: duplicate key violates unique constraint "spatial_ref_sys_pkey" CONTEXT: COPY spatia

Re: [GENERAL] Backup Restore

2007-01-03 Thread Bob Pawley
Mir" <[EMAIL PROTECTED]>; "Postgresql" Sent: Tuesday, January 02, 2007 2:00 AM Subject: Re: [GENERAL] Backup Restore Bob Pawley wrote: Following is the error message on pg_restore:- "pg_restore: ERROR: duplicate key violates unique constraint "spatial_ref_sys_

Re: [GENERAL] Backup Restore

2007-01-02 Thread Bob Pawley
he error. Any thoughts?? Bob - Original Message - From: "Dave Page" <[EMAIL PROTECTED]> To: "Bob Pawley" <[EMAIL PROTECTED]> Cc: "Shoaib Mir" <[EMAIL PROTECTED]>; "Postgresql" Sent: Friday, December 29, 2006 12:10 AM Subject: Re: [G

Re: [GENERAL] Backup Restore

2007-01-02 Thread Richard Huxton
Bob Pawley wrote: Following is the error message on pg_restore:- "pg_restore: ERROR: duplicate key violates unique constraint "spatial_ref_sys_pkey" CONTEXT: COPY spatial_ref_sys, line 1: "2000 EPSG 2000 PROJCS["Anguilla 1957 / British West Indies Grid",GEOGCS["Anguilla 1957",DATUM["Angui...

Re: [GENERAL] Backup Restore

2006-12-29 Thread Bob Pawley
iginal Message - From: "Dave Page" <[EMAIL PROTECTED]> To: "Bob Pawley" <[EMAIL PROTECTED]> Cc: "Shoaib Mir" <[EMAIL PROTECTED]>; "Postgresql" Sent: Friday, December 29, 2006 10:57 AM Subject: Re: [GENERAL] Backup Restore Bob Pawle

Re: [GENERAL] Backup Restore

2006-12-29 Thread Dave Page
Bob Pawley wrote: Hi Dave I can get the restore working if I dump the project spelling out "*.backup" and not relying on the default. However the restore is being aborted due to a pk error for the spatial coordinates. I've removed the gis feature from both applications but still get the er

Re: [GENERAL] Backup Restore

2006-12-29 Thread Dave Page
Bob Pawley wrote: When I change it to view "all files" it's there - but it won't do anything. So I assume you've used a different extension than the one the dialogue is expecting by default? When you say "it won't do anything." do you mean you cannot select the file, or that nothing happens

Re: [GENERAL] Backup Restore

2006-12-28 Thread Bob Pawley
uot;Postgresql" Sent: Thursday, December 28, 2006 12:06 PM Subject: Re: [GENERAL] Backup Restore Bob Pawley wrote: I'm not getting an error message. The restore utility just doesn't see the backup file. It's looking for a file *.backup which is there but noot seen. It

Re: [GENERAL] Backup Restore

2006-12-28 Thread Dave Page
Bob Pawley wrote: I'm not getting an error message. The restore utility just doesn't see the backup file. It's looking for a file *.backup which is there but noot seen. It's a standard file dialogue as provided by your operating system. I can't think of any reason it wouldn't see the file unl

Re: [GENERAL] Backup Restore

2006-12-28 Thread Bob Pawley
sing an earlier version?? Bob - Original Message - From: "Dave Page" <[EMAIL PROTECTED]> To: "Shoaib Mir" <[EMAIL PROTECTED]> Cc: "Bob Pawley" <[EMAIL PROTECTED]>; "Postgresql" Sent: Thursday, December 28, 2006 11:30 AM Subj

Re: [GENERAL] Backup Restore

2006-12-28 Thread Dave Page
Shoaib Mir wrote: Well I haven't use much of PGAdmin but I will always be using pg_dump and pg_restore for that as they are really easy to use. You can find help on backup and restore at --> http://www.postgresql.org/docs/8.2/static/backup.html pgAdmin is just a frontend to pg_dump/pg_restor

Re: [GENERAL] Backup Restore

2006-12-28 Thread Shoaib Mir
Well I haven't use much of PGAdmin but I will always be using pg_dump and pg_restore for that as they are really easy to use. You can find help on backup and restore at --> http://www.postgresql.org/docs/8.2/static/backup.html Shoaib Mir EnterpriseDB (www.enterprisedb.com)

Re: [GENERAL] Backup restore does not work

2005-02-08 Thread Joshua D. Drake
Art Fore wrote: Using PGadminIII, I backup my database on linux machine, and try to restore it on the windows machine. Alway comes up with duplicate key on the first item. I drop all views and the only table in the database and try again. Still same thing. I do a refrresh, none of the views or