pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedBackup - Restore
25+ messages / 12 participants
[nested] [flat]
* Backup - Restore
@ 2001-06-22 21:14 P. Dwayne Miller <dmiller@espgroup.net>
0 siblings, 0 replies; 25+ messages in thread
From: P. Dwayne Miller @ 2001-06-22 21:14 UTC (permalink / raw)
To: pgsql-general
Where would I find documentation on the best way to back up an on-line
database on a regular basis, to include any log files, so that a
recovery operation would drop the least amount of data (if any)?
Tks
^ permalink raw reply [nested|flat] 25+ messages in thread
* Backup Restore
@ 2006-12-28 18:55 Bob Pawley <rjpawley@shaw.ca>
2006-12-28 19:08 ` Re: Backup Restore Shoaib Mir <shoaibmir@gmail.com>
0 siblings, 1 reply; 25+ messages in thread
From: Bob Pawley @ 2006-12-28 18:55 UTC (permalink / raw)
To: pgsql-general
PostgreSQL 8.1 running on Win XP. PGAdmin Version 1.6.2
When I backup my database on one computer using PG Admin 3 then attempt to open the file on a second computer - PG Admin does NOT recognize the file. The documentation isn't helpful, at least for a neophyte such as I.
Can someone point me to a simple instruction set for a backup/restore operation using the PG Admin resource??
Bob
^ permalink raw reply [nested|flat] 25+ messages in thread
* Re: Backup Restore
2006-12-28 18:55 Backup Restore Bob Pawley <rjpawley@shaw.ca>
@ 2006-12-28 19:08 ` Shoaib Mir <shoaibmir@gmail.com>
2006-12-28 19:30 ` Re: Backup Restore Dave Page <dpage@postgresql.org>
0 siblings, 1 reply; 25+ messages in thread
From: Shoaib Mir @ 2006-12-28 19:08 UTC (permalink / raw)
To: Bob Pawley <rjpawley@shaw.ca>; +Cc: pgsql-general
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)
On 12/28/06, Bob Pawley <rjpawley@shaw.ca> wrote:
>
> PostgreSQL 8.1 running on Win XP. PGAdmin Version 1.6.2
>
> When I backup my database on one computer using PG Admin 3 then attempt to
> open the file on a second computer - PG Admin does NOT recognize the file.
> The documentation isn't helpful, at least for a neophyte such as I.
>
> Can someone point me to a simple instruction set for a backup/restore
> operation using the PG Admin resource??
>
> Bob
>
^ permalink raw reply [nested|flat] 25+ messages in thread
* Re: Backup Restore
2006-12-28 18:55 Backup Restore Bob Pawley <rjpawley@shaw.ca>
2006-12-28 19:08 ` Re: Backup Restore Shoaib Mir <shoaibmir@gmail.com>
@ 2006-12-28 19:30 ` Dave Page <dpage@postgresql.org>
2006-12-28 19:44 ` Re: Backup Restore Bob Pawley <rjpawley@shaw.ca>
0 siblings, 1 reply; 25+ messages in thread
From: Dave Page @ 2006-12-28 19:30 UTC (permalink / raw)
To: Shoaib Mir <shoaibmir@gmail.com>; +Cc: Bob Pawley <rjpawley@shaw.ca>; pgsql-general
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_restore for backup purposes.
Perhaps Bob could share whatever error message he gets with us?
Oh, and there is no released 1.6.2 version of pgAdmin - that would be
head of the current stable branch.
Regards, Dave.
^ permalink raw reply [nested|flat] 25+ messages in thread
* Re: Backup Restore
2006-12-28 18:55 Backup Restore Bob Pawley <rjpawley@shaw.ca>
2006-12-28 19:08 ` Re: Backup Restore Shoaib Mir <shoaibmir@gmail.com>
2006-12-28 19:30 ` Re: Backup Restore Dave Page <dpage@postgresql.org>
@ 2006-12-28 19:44 ` Bob Pawley <rjpawley@shaw.ca>
2006-12-28 20:06 ` Re: Backup Restore Dave Page <dpage@postgresql.org>
0 siblings, 1 reply; 25+ messages in thread
From: Bob Pawley @ 2006-12-28 19:44 UTC (permalink / raw)
To: Dave Page <dpage@postgresql.org>; Shoaib Mir <shoaibmir@gmail.com>; +Cc: pgsql-general
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.
I am running a version that identifies itself as 1.6.2. I downloaded it a
few weeks ago from the official site. Should I be using an earlier version??
Bob
----- Original Message -----
From: "Dave Page" <dpage@postgresql.org>
To: "Shoaib Mir" <shoaibmir@gmail.com>
Cc: "Bob Pawley" <rjpawley@shaw.ca>; "Postgresql"
<pgsql-general@postgresql.org>
Sent: Thursday, December 28, 2006 11:30 AM
Subject: Re: [GENERAL] Backup Restore
> 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_restore for backup purposes.
> Perhaps Bob could share whatever error message he gets with us?
>
> Oh, and there is no released 1.6.2 version of pgAdmin - that would be head
> of the current stable branch.
>
> Regards, Dave.
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: In versions below 8.0, the planner will ignore your desire to
> choose an index scan if your joining column's datatypes do not
> match
>
^ permalink raw reply [nested|flat] 25+ messages in thread
* Re: Backup Restore
2006-12-28 18:55 Backup Restore Bob Pawley <rjpawley@shaw.ca>
2006-12-28 19:08 ` Re: Backup Restore Shoaib Mir <shoaibmir@gmail.com>
2006-12-28 19:30 ` Re: Backup Restore Dave Page <dpage@postgresql.org>
2006-12-28 19:44 ` Re: Backup Restore Bob Pawley <rjpawley@shaw.ca>
@ 2006-12-28 20:06 ` Dave Page <dpage@postgresql.org>
2006-12-29 01:53 ` Re: Backup Restore Bob Pawley <rjpawley@shaw.ca>
0 siblings, 1 reply; 25+ messages in thread
From: Dave Page @ 2006-12-28 20:06 UTC (permalink / raw)
To: Bob Pawley <rjpawley@shaw.ca>; +Cc: Shoaib Mir <shoaibmir@gmail.com>; pgsql-general
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 unless you are
looking in the wrong place.
> I am running a version that identifies itself as 1.6.2. I downloaded it
> a few weeks ago from the official site. Should I be using an earlier
> version??
You must have downloaded an SVN snapshot version. They are available on
the official site, but it's not easy to mistake them for actual release
versions.
Regards, Dave
^ permalink raw reply [nested|flat] 25+ messages in thread
* Re: Backup Restore
2006-12-28 18:55 Backup Restore Bob Pawley <rjpawley@shaw.ca>
2006-12-28 19:08 ` Re: Backup Restore Shoaib Mir <shoaibmir@gmail.com>
2006-12-28 19:30 ` Re: Backup Restore Dave Page <dpage@postgresql.org>
2006-12-28 19:44 ` Re: Backup Restore Bob Pawley <rjpawley@shaw.ca>
2006-12-28 20:06 ` Re: Backup Restore Dave Page <dpage@postgresql.org>
@ 2006-12-29 01:53 ` Bob Pawley <rjpawley@shaw.ca>
2006-12-29 08:10 ` Re: Backup Restore Dave Page <dpage@postgresql.org>
0 siblings, 1 reply; 25+ messages in thread
From: Bob Pawley @ 2006-12-29 01:53 UTC (permalink / raw)
To: Dave Page <dpage@postgresql.org>; +Cc: Shoaib Mir <shoaibmir@gmail.com>; pgsql-general
When I change it to view "all files" it's there - but it won't do anything.
Bob
----- Original Message -----
From: "Dave Page" <dpage@postgresql.org>
To: "Bob Pawley" <rjpawley@shaw.ca>
Cc: "Shoaib Mir" <shoaibmir@gmail.com>; "Postgresql"
<pgsql-general@postgresql.org>
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's a standard file dialogue as provided by your operating system. I
> can't think of any reason it wouldn't see the file unless you are looking
> in the wrong place.
>
>> I am running a version that identifies itself as 1.6.2. I downloaded it a
>> few weeks ago from the official site. Should I be using an earlier
>> version??
>
> You must have downloaded an SVN snapshot version. They are available on
> the official site, but it's not easy to mistake them for actual release
> versions.
>
> Regards, Dave
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
>
^ permalink raw reply [nested|flat] 25+ messages in thread
* Re: Backup Restore
2006-12-28 18:55 Backup Restore Bob Pawley <rjpawley@shaw.ca>
2006-12-28 19:08 ` Re: Backup Restore Shoaib Mir <shoaibmir@gmail.com>
2006-12-28 19:30 ` Re: Backup Restore Dave Page <dpage@postgresql.org>
2006-12-28 19:44 ` Re: Backup Restore Bob Pawley <rjpawley@shaw.ca>
2006-12-28 20:06 ` Re: Backup Restore Dave Page <dpage@postgresql.org>
2006-12-29 01:53 ` Re: Backup Restore Bob Pawley <rjpawley@shaw.ca>
@ 2006-12-29 08:10 ` Dave Page <dpage@postgresql.org>
2006-12-29 18:54 ` Re: Backup Restore Bob Pawley <rjpawley@shaw.ca>
0 siblings, 1 reply; 25+ messages in thread
From: Dave Page @ 2006-12-29 08:10 UTC (permalink / raw)
To: Bob Pawley <rjpawley@shaw.ca>; +Cc: Shoaib Mir <shoaibmir@gmail.com>; pgsql-general
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 when you select it and run the restore? If
the former, does it work if you rename the file to use the expected
extension?
Regards, Dave
^ permalink raw reply [nested|flat] 25+ messages in thread
* Re: Backup Restore
2006-12-28 18:55 Backup Restore Bob Pawley <rjpawley@shaw.ca>
2006-12-28 19:08 ` Re: Backup Restore Shoaib Mir <shoaibmir@gmail.com>
2006-12-28 19:30 ` Re: Backup Restore Dave Page <dpage@postgresql.org>
2006-12-28 19:44 ` Re: Backup Restore Bob Pawley <rjpawley@shaw.ca>
2006-12-28 20:06 ` Re: Backup Restore Dave Page <dpage@postgresql.org>
2006-12-29 01:53 ` Re: Backup Restore Bob Pawley <rjpawley@shaw.ca>
2006-12-29 08:10 ` Re: Backup Restore Dave Page <dpage@postgresql.org>
@ 2006-12-29 18:54 ` Bob Pawley <rjpawley@shaw.ca>
2006-12-29 18:57 ` Re: Backup Restore Dave Page <dpage@postgresql.org>
0 siblings, 1 reply; 25+ messages in thread
From: Bob Pawley @ 2006-12-29 18:54 UTC (permalink / raw)
To: Dave Page <dpage@postgresql.org>; +Cc: Shoaib Mir <shoaibmir@gmail.com>; pgsql-general
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 error.
Any thoughts??
Bob
----- Original Message -----
From: "Dave Page" <dpage@postgresql.org>
To: "Bob Pawley" <rjpawley@shaw.ca>
Cc: "Shoaib Mir" <shoaibmir@gmail.com>; "Postgresql"
<pgsql-general@postgresql.org>
Sent: Friday, December 29, 2006 12:10 AM
Subject: Re: [GENERAL] Backup Restore
> 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 when you select it and run the restore? If
> the former, does it work if you rename the file to use the expected
> extension?
>
> Regards, Dave
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings
>
^ permalink raw reply [nested|flat] 25+ messages in thread
* Re: Backup Restore
2006-12-28 18:55 Backup Restore Bob Pawley <rjpawley@shaw.ca>
2006-12-28 19:08 ` Re: Backup Restore Shoaib Mir <shoaibmir@gmail.com>
2006-12-28 19:30 ` Re: Backup Restore Dave Page <dpage@postgresql.org>
2006-12-28 19:44 ` Re: Backup Restore Bob Pawley <rjpawley@shaw.ca>
2006-12-28 20:06 ` Re: Backup Restore Dave Page <dpage@postgresql.org>
2006-12-29 01:53 ` Re: Backup Restore Bob Pawley <rjpawley@shaw.ca>
2006-12-29 08:10 ` Re: Backup Restore Dave Page <dpage@postgresql.org>
2006-12-29 18:54 ` Re: Backup Restore Bob Pawley <rjpawley@shaw.ca>
@ 2006-12-29 18:57 ` Dave Page <dpage@postgresql.org>
2006-12-29 19:26 ` Re: Backup Restore Bob Pawley <rjpawley@shaw.ca>
0 siblings, 1 reply; 25+ messages in thread
From: Dave Page @ 2006-12-29 18:57 UTC (permalink / raw)
To: Bob Pawley <rjpawley@shaw.ca>; +Cc: Shoaib Mir <shoaibmir@gmail.com>; pgsql-general
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 error.
>
> Any thoughts??
Nope, someone else will need to help with that I'm afraid. The exact
error message would make it infinitely easier to help you though.
Regards, Dave
^ permalink raw reply [nested|flat] 25+ messages in thread
* Re: Backup Restore
2006-12-28 18:55 Backup Restore Bob Pawley <rjpawley@shaw.ca>
2006-12-28 19:08 ` Re: Backup Restore Shoaib Mir <shoaibmir@gmail.com>
2006-12-28 19:30 ` Re: Backup Restore Dave Page <dpage@postgresql.org>
2006-12-28 19:44 ` Re: Backup Restore Bob Pawley <rjpawley@shaw.ca>
2006-12-28 20:06 ` Re: Backup Restore Dave Page <dpage@postgresql.org>
2006-12-29 01:53 ` Re: Backup Restore Bob Pawley <rjpawley@shaw.ca>
2006-12-29 08:10 ` Re: Backup Restore Dave Page <dpage@postgresql.org>
2006-12-29 18:54 ` Re: Backup Restore Bob Pawley <rjpawley@shaw.ca>
2006-12-29 18:57 ` Re: Backup Restore Dave Page <dpage@postgresql.org>
@ 2006-12-29 19:26 ` Bob Pawley <rjpawley@shaw.ca>
2007-01-02 10:00 ` Re: Backup Restore Richard Huxton <dev@archonet.com>
0 siblings, 1 reply; 25+ messages in thread
From: Bob Pawley @ 2006-12-29 19:26 UTC (permalink / raw)
To: Dave Page <dpage@postgresql.org>; +Cc: Shoaib Mir <shoaibmir@gmail.com>; pgsql-general
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..."
pg_restore: [archiver (db)] error returned by PQendcopy: 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..."
pg_restore: *** aborted because of error
Process returned exit code 1."
The GIS feature was removed from the PostgreSQL application before the
project dump.
Anyone have any thoughts on how to get around this??
Bob
----- Original Message -----
From: "Dave Page" <dpage@postgresql.org>
To: "Bob Pawley" <rjpawley@shaw.ca>
Cc: "Shoaib Mir" <shoaibmir@gmail.com>; "Postgresql"
<pgsql-general@postgresql.org>
Sent: Friday, December 29, 2006 10:57 AM
Subject: Re: [GENERAL] Backup Restore
> 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 error.
>>
>> Any thoughts??
>
> Nope, someone else will need to help with that I'm afraid. The exact error
> message would make it infinitely easier to help you though.
>
> Regards, Dave
>
^ permalink raw reply [nested|flat] 25+ messages in thread
* Re: Backup Restore
2006-12-28 18:55 Backup Restore Bob Pawley <rjpawley@shaw.ca>
2006-12-28 19:08 ` Re: Backup Restore Shoaib Mir <shoaibmir@gmail.com>
2006-12-28 19:30 ` Re: Backup Restore Dave Page <dpage@postgresql.org>
2006-12-28 19:44 ` Re: Backup Restore Bob Pawley <rjpawley@shaw.ca>
2006-12-28 20:06 ` Re: Backup Restore Dave Page <dpage@postgresql.org>
2006-12-29 01:53 ` Re: Backup Restore Bob Pawley <rjpawley@shaw.ca>
2006-12-29 08:10 ` Re: Backup Restore Dave Page <dpage@postgresql.org>
2006-12-29 18:54 ` Re: Backup Restore Bob Pawley <rjpawley@shaw.ca>
2006-12-29 18:57 ` Re: Backup Restore Dave Page <dpage@postgresql.org>
2006-12-29 19:26 ` Re: Backup Restore Bob Pawley <rjpawley@shaw.ca>
@ 2007-01-02 10:00 ` Richard Huxton <dev@archonet.com>
2007-01-03 18:07 ` Re: Backup Restore Bob Pawley <rjpawley@shaw.ca>
0 siblings, 1 reply; 25+ messages in thread
From: Richard Huxton @ 2007-01-02 10:00 UTC (permalink / raw)
To: Bob Pawley <rjpawley@shaw.ca>; +Cc: Dave Page <dpage@postgresql.org>; Shoaib Mir <shoaibmir@gmail.com>; pgsql-general
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..."
> pg_restore: [archiver (db)] error returned by PQendcopy: 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..."
> pg_restore: *** aborted because of error
>
> Process returned exit code 1."
>
> The GIS feature was removed from the PostgreSQL application before the
> project dump.
Not sure what you mean by that - you removed all GIS related types and
functions from the source database?
> Anyone have any thoughts on how to get around this??
Remove the constraint if you no longer have that requirement. It looks
like you have a primary-key defined on spatial_ref_sys and want to
remove it. See the SQL Reference section of the manuals for how to use
ALTER TABLE to drop primary keys and other constraints.
I'm curious as to how this can happen though. Are the definitions of
table spatial_ref_sys the same in the source and target database?
--
Richard Huxton
Archonet Ltd
^ permalink raw reply [nested|flat] 25+ messages in thread
* Re: Backup Restore
2006-12-28 18:55 Backup Restore Bob Pawley <rjpawley@shaw.ca>
2006-12-28 19:08 ` Re: Backup Restore Shoaib Mir <shoaibmir@gmail.com>
2006-12-28 19:30 ` Re: Backup Restore Dave Page <dpage@postgresql.org>
2006-12-28 19:44 ` Re: Backup Restore Bob Pawley <rjpawley@shaw.ca>
2006-12-28 20:06 ` Re: Backup Restore Dave Page <dpage@postgresql.org>
2006-12-29 01:53 ` Re: Backup Restore Bob Pawley <rjpawley@shaw.ca>
2006-12-29 08:10 ` Re: Backup Restore Dave Page <dpage@postgresql.org>
2006-12-29 18:54 ` Re: Backup Restore Bob Pawley <rjpawley@shaw.ca>
2006-12-29 18:57 ` Re: Backup Restore Dave Page <dpage@postgresql.org>
2006-12-29 19:26 ` Re: Backup Restore Bob Pawley <rjpawley@shaw.ca>
2007-01-02 10:00 ` Re: Backup Restore Richard Huxton <dev@archonet.com>
@ 2007-01-03 18:07 ` Bob Pawley <rjpawley@shaw.ca>
2007-01-03 18:44 ` Re: Backup Restore Richard Huxton <dev@archonet.com>
0 siblings, 1 reply; 25+ messages in thread
From: Bob Pawley @ 2007-01-03 18:07 UTC (permalink / raw)
To: Richard Huxton <dev@archonet.com>; +Cc: Dave Page <dpage@postgresql.org>; Shoaib Mir <shoaibmir@gmail.com>; pgsql-general
Looking through PGAdmin where would I find the spatial references that the
errror message references?
Bob
----- Original Message -----
From: "Richard Huxton" <dev@archonet.com>
To: "Bob Pawley" <rjpawley@shaw.ca>
Cc: "Dave Page" <dpage@postgresql.org>; "Shoaib Mir" <shoaibmir@gmail.com>;
"Postgresql" <pgsql-general@postgresql.org>
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_pkey"
>> CONTEXT: COPY spatial_ref_sys, line 1: "2000 EPSG 2000 PROJCS["Anguilla
>> 1957 / British West Indies Grid",GEOGCS["Anguilla 1957",DATUM["Angui..."
>> pg_restore: [archiver (db)] error returned by PQendcopy: 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..."
>> pg_restore: *** aborted because of error
>>
>> Process returned exit code 1."
>>
>> The GIS feature was removed from the PostgreSQL application before the
>> project dump.
>
> Not sure what you mean by that - you removed all GIS related types and
> functions from the source database?
>
>> Anyone have any thoughts on how to get around this??
>
> Remove the constraint if you no longer have that requirement. It looks
> like you have a primary-key defined on spatial_ref_sys and want to remove
> it. See the SQL Reference section of the manuals for how to use ALTER
> TABLE to drop primary keys and other constraints.
>
> I'm curious as to how this can happen though. Are the definitions of table
> spatial_ref_sys the same in the source and target database?
>
> --
> Richard Huxton
> Archonet Ltd
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
>
^ permalink raw reply [nested|flat] 25+ messages in thread
* Re: Backup Restore
2006-12-28 18:55 Backup Restore Bob Pawley <rjpawley@shaw.ca>
2006-12-28 19:08 ` Re: Backup Restore Shoaib Mir <shoaibmir@gmail.com>
2006-12-28 19:30 ` Re: Backup Restore Dave Page <dpage@postgresql.org>
2006-12-28 19:44 ` Re: Backup Restore Bob Pawley <rjpawley@shaw.ca>
2006-12-28 20:06 ` Re: Backup Restore Dave Page <dpage@postgresql.org>
2006-12-29 01:53 ` Re: Backup Restore Bob Pawley <rjpawley@shaw.ca>
2006-12-29 08:10 ` Re: Backup Restore Dave Page <dpage@postgresql.org>
2006-12-29 18:54 ` Re: Backup Restore Bob Pawley <rjpawley@shaw.ca>
2006-12-29 18:57 ` Re: Backup Restore Dave Page <dpage@postgresql.org>
2006-12-29 19:26 ` Re: Backup Restore Bob Pawley <rjpawley@shaw.ca>
2007-01-02 10:00 ` Re: Backup Restore Richard Huxton <dev@archonet.com>
2007-01-03 18:07 ` Re: Backup Restore Bob Pawley <rjpawley@shaw.ca>
@ 2007-01-03 18:44 ` Richard Huxton <dev@archonet.com>
2007-01-03 19:26 ` Re: Backup Restore Bob Pawley <rjpawley@shaw.ca>
0 siblings, 1 reply; 25+ messages in thread
From: Richard Huxton @ 2007-01-03 18:44 UTC (permalink / raw)
To: Bob Pawley <rjpawley@shaw.ca>; +Cc: Dave Page <dpage@postgresql.org>; Shoaib Mir <shoaibmir@gmail.com>; pgsql-general
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 spatial_ref_sys, line 1: "2000 EPSG 2000
>>> PROJCS["Anguilla 1957 / British West Indies Grid",GEOGCS["Anguilla
>>> 1957",DATUM["Angui..."
Looking at this, you should have a table "spatial_ref_sys" with a
primary key constraint "spatial_ref_sys_pkey"
Find the table via the left-hand tree conrol and its details should be
listed on the right-hand side. The primary key will be detailed at the
top and bottom
--
Richard Huxton
Archonet Ltd
^ permalink raw reply [nested|flat] 25+ messages in thread
* Re: Backup Restore
2006-12-28 18:55 Backup Restore Bob Pawley <rjpawley@shaw.ca>
2006-12-28 19:08 ` Re: Backup Restore Shoaib Mir <shoaibmir@gmail.com>
2006-12-28 19:30 ` Re: Backup Restore Dave Page <dpage@postgresql.org>
2006-12-28 19:44 ` Re: Backup Restore Bob Pawley <rjpawley@shaw.ca>
2006-12-28 20:06 ` Re: Backup Restore Dave Page <dpage@postgresql.org>
2006-12-29 01:53 ` Re: Backup Restore Bob Pawley <rjpawley@shaw.ca>
2006-12-29 08:10 ` Re: Backup Restore Dave Page <dpage@postgresql.org>
2006-12-29 18:54 ` Re: Backup Restore Bob Pawley <rjpawley@shaw.ca>
2006-12-29 18:57 ` Re: Backup Restore Dave Page <dpage@postgresql.org>
2006-12-29 19:26 ` Re: Backup Restore Bob Pawley <rjpawley@shaw.ca>
2007-01-02 10:00 ` Re: Backup Restore Richard Huxton <dev@archonet.com>
2007-01-03 18:07 ` Re: Backup Restore Bob Pawley <rjpawley@shaw.ca>
2007-01-03 18:44 ` Re: Backup Restore Richard Huxton <dev@archonet.com>
@ 2007-01-03 19:26 ` Bob Pawley <rjpawley@shaw.ca>
2007-01-04 09:19 ` Re: Backup Restore Richard Huxton <dev@archonet.com>
0 siblings, 1 reply; 25+ messages in thread
From: Bob Pawley @ 2007-01-03 19:26 UTC (permalink / raw)
To: Richard Huxton <dev@archonet.com>; +Cc: Dave Page <dpage@postgresql.org>; Shoaib Mir <shoaibmir@gmail.com>; pgsql-general
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.
Bob
----- Original Message -----
From: "Richard Huxton" <dev@archonet.com>
To: "Bob Pawley" <rjpawley@shaw.ca>
Cc: "Dave Page" <dpage@postgresql.org>; "Shoaib Mir" <shoaibmir@gmail.com>;
"Postgresql" <pgsql-general@postgresql.org>
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 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 spatial_ref_sys, line 1: "2000 EPSG 2000
>>>> PROJCS["Anguilla 1957 / British West Indies Grid",GEOGCS["Anguilla
>>>> 1957",DATUM["Angui..."
>
> Looking at this, you should have a table "spatial_ref_sys" with a primary
> key constraint "spatial_ref_sys_pkey"
>
> Find the table via the left-hand tree conrol and its details should be
> listed on the right-hand side. The primary key will be detailed at the top
> and bottom
>
> --
> Richard Huxton
> Archonet Ltd
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
>
^ permalink raw reply [nested|flat] 25+ messages in thread
* Re: Backup Restore
2006-12-28 18:55 Backup Restore Bob Pawley <rjpawley@shaw.ca>
2006-12-28 19:08 ` Re: Backup Restore Shoaib Mir <shoaibmir@gmail.com>
2006-12-28 19:30 ` Re: Backup Restore Dave Page <dpage@postgresql.org>
2006-12-28 19:44 ` Re: Backup Restore Bob Pawley <rjpawley@shaw.ca>
2006-12-28 20:06 ` Re: Backup Restore Dave Page <dpage@postgresql.org>
2006-12-29 01:53 ` Re: Backup Restore Bob Pawley <rjpawley@shaw.ca>
2006-12-29 08:10 ` Re: Backup Restore Dave Page <dpage@postgresql.org>
2006-12-29 18:54 ` Re: Backup Restore Bob Pawley <rjpawley@shaw.ca>
2006-12-29 18:57 ` Re: Backup Restore Dave Page <dpage@postgresql.org>
2006-12-29 19:26 ` Re: Backup Restore Bob Pawley <rjpawley@shaw.ca>
2007-01-02 10:00 ` Re: Backup Restore Richard Huxton <dev@archonet.com>
2007-01-03 18:07 ` Re: Backup Restore Bob Pawley <rjpawley@shaw.ca>
2007-01-03 18:44 ` Re: Backup Restore Richard Huxton <dev@archonet.com>
2007-01-03 19:26 ` Re: Backup Restore Bob Pawley <rjpawley@shaw.ca>
@ 2007-01-04 09:19 ` Richard Huxton <dev@archonet.com>
0 siblings, 0 replies; 25+ messages in thread
From: Richard Huxton @ 2007-01-04 09:19 UTC (permalink / raw)
To: Bob Pawley <rjpawley@shaw.ca>; +Cc: Dave Page <dpage@postgresql.org>; Shoaib Mir <shoaibmir@gmail.com>; pgsql-general
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-line.
--
Richard Huxton
Archonet Ltd
^ permalink raw reply [nested|flat] 25+ messages in thread
* Backup & Restore
@ 2007-08-06 14:35 Charlie Clark <charlie@begeistert.org>
0 siblings, 0 replies; 25+ messages in thread
From: Charlie Clark @ 2007-08-06 14:35 UTC (permalink / raw)
To: pgsql-general
Hi,
I have a simple question that I can't find the answer to in the
documentation: how do I backup & restore a single database, ie. when
going from one cluster to another? I'm fairly comfortable with the
command line so I can create and restore backups but things do not
always work as expected.
pg_dump -U postgres -f my_database.dmp -F c my_database
now I want to restore this database to another system where a
database with the same name already exists (from production to
development):
According to the documentation the options -c and -a can be set on
pg_restore
ie.,
pg_restore -U postgres -c -d psytec psytec.dmp
should drop all the tables before recreating them but I get a load of
errors:
pg_restore: [archiver (db)] Error from TOC entry 1949; 2620 297386
TRIGGER RI_ConstraintTrigger_297386 postgres
using -a to restore data only means fewer errors as pg_restore exits
on the first error
Is the only way to drop the target database and recreate an empty
one? Or am I simply misreading the docs?
Thanks very much for any help.
Charlie
--
Charlie Clark
Helmholtzstr. 20
Düsseldorf
D- 40215
Tel: +49-211-938-5360
GSM: +49-178-782-6226
^ permalink raw reply [nested|flat] 25+ messages in thread
* Backup & Restore
@ 2020-02-24 08:18 Dor Ben Dov <dor.ben-dov@amdocs.com>
2020-02-24 19:54 ` Re: Backup & Restore Andreas Kretschmer <andreas@a-kretschmer.de>
2020-02-24 20:16 ` Re: Backup & Restore Stephen Frost <sfrost@snowman.net>
2020-02-26 05:57 ` Re: Backup & Restore Adrian Ho <ml+postgresql@03s.net>
0 siblings, 3 replies; 25+ messages in thread
From: Dor Ben Dov @ 2020-02-24 08:18 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Hi All,
What is your backup and restore solution in production when working with Postgres ?
(+ if you can say few words why you picked this X solution instead of others)
Regards,
Dor
This email and the information contained herein is proprietary and confidential and subject to the Amdocs Email Terms of Service, which you may review at https://www.amdocs.com/about/email-terms-of-service <https://www.amdocs.com/about/email-terms-of-service;
^ permalink raw reply [nested|flat] 25+ messages in thread
* Re: Backup & Restore
2020-02-24 08:18 Backup & Restore Dor Ben Dov <dor.ben-dov@amdocs.com>
@ 2020-02-24 19:54 ` Andreas Kretschmer <andreas@a-kretschmer.de>
2 siblings, 0 replies; 25+ messages in thread
From: Andreas Kretschmer @ 2020-02-24 19:54 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
Am 24.02.20 um 09:18 schrieb Dor Ben Dov:
>
> Hi All,
>
> What is your backup and restore solution in production when working
> with Postgres ?
>
most of our customers using Barman: https://www.pgbarman.org/
Regards, Andreas
--
2ndQuadrant - The PostgreSQL Support Company.
www.2ndQuadrant.com
^ permalink raw reply [nested|flat] 25+ messages in thread
* Re: Backup & Restore
2020-02-24 08:18 Backup & Restore Dor Ben Dov <dor.ben-dov@amdocs.com>
@ 2020-02-24 20:16 ` Stephen Frost <sfrost@snowman.net>
2020-02-25 01:55 ` Re: Backup & Restore sivapostgres@yahoo.com <sivapostgres@yahoo.com>
2 siblings, 1 reply; 25+ messages in thread
From: Stephen Frost @ 2020-02-24 20:16 UTC (permalink / raw)
To: Dor Ben Dov <dor.ben-dov@amdocs.com>; +Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Greetings,
* Dor Ben Dov (dor.ben-dov@amdocs.com) wrote:
> What is your backup and restore solution in production when working with Postgres ?
> (+ if you can say few words why you picked this X solution instead of others)
I'd recommend pgbackrest- https://www.pgbackrest.org, it's got lots of
great features including parallel backup, incremental and differential
backups, compression, encryption, and all of those can be used together.
pgbackrest also can parallelize WAL shipping if you're writing lots of
data.
There's other options out there, of course. In any case, I strongly
recommend that you use one of the existing solutions and don't try to
roll your own.
Just to be clear- I'm also involved in the project (though not the
primary developer, that's David, who you'll also see on this list and on
the -hackers list contributing things to PostgreSQL).
Thanks!
Stephen
Attachments:
signature.asc (application/pgp-signature, 818B) download
^ permalink raw reply [nested|flat] 25+ messages in thread
* Re: Backup & Restore
2020-02-24 08:18 Backup & Restore Dor Ben Dov <dor.ben-dov@amdocs.com>
2020-02-24 20:16 ` Re: Backup & Restore Stephen Frost <sfrost@snowman.net>
@ 2020-02-25 01:55 ` sivapostgres@yahoo.com <sivapostgres@yahoo.com>
2020-02-25 13:53 ` Re: Backup & Restore Stephen Frost <sfrost@snowman.net>
2020-02-26 06:25 ` Re: Backup & Restore Thomas Kellerer <shammat@gmx.net>
0 siblings, 2 replies; 25+ messages in thread
From: sivapostgres@yahoo.com @ 2020-02-25 01:55 UTC (permalink / raw)
To: Dor Ben Dov <dor.ben-dov@amdocs.com>; Stephen Frost <sfrost@snowman.net>; +Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
HiCan u suggest a good backup solution for a windows installation ? Looks like the suggested two [ pgbarman, pgbackrest ] works only in Linux.
On Tuesday, 25 February, 2020, 01:46:33 am IST, Stephen Frost <sfrost@snowman.net> wrote:
Greetings,
* Dor Ben Dov (dor.ben-dov@amdocs.com) wrote:
> What is your backup and restore solution in production when working with Postgres ?
> (+ if you can say few words why you picked this X solution instead of others)
I'd recommend pgbackrest- https://www.pgbackrest.org, it's got lots of
great features including parallel backup, incremental and differential
backups, compression, encryption, and all of those can be used together.
pgbackrest also can parallelize WAL shipping if you're writing lots of
data.
There's other options out there, of course. In any case, I strongly
recommend that you use one of the existing solutions and don't try to
roll your own.
Just to be clear- I'm also involved in the project (though not the
primary developer, that's David, who you'll also see on this list and on
the -hackers list contributing things to PostgreSQL).
Thanks!
Stephen
^ permalink raw reply [nested|flat] 25+ messages in thread
* Re: Backup & Restore
2020-02-24 08:18 Backup & Restore Dor Ben Dov <dor.ben-dov@amdocs.com>
2020-02-24 20:16 ` Re: Backup & Restore Stephen Frost <sfrost@snowman.net>
2020-02-25 01:55 ` Re: Backup & Restore sivapostgres@yahoo.com <sivapostgres@yahoo.com>
@ 2020-02-25 13:53 ` Stephen Frost <sfrost@snowman.net>
2020-02-26 06:21 ` Re: Backup & Restore sivapostgres@yahoo.com <sivapostgres@yahoo.com>
1 sibling, 1 reply; 25+ messages in thread
From: Stephen Frost @ 2020-02-25 13:53 UTC (permalink / raw)
To: sivapostgres@yahoo.com <sivapostgres@yahoo.com>; +Cc: Dor Ben Dov <dor.ben-dov@amdocs.com>; pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Greetings,
* sivapostgres@yahoo.com (sivapostgres@yahoo.com) wrote:
> HiCan u suggest a good backup solution for a windows installation ? Looks like the suggested two [ pgbarman, pgbackrest ] works only in Linux.
While it's certainly something we'd like to do, we haven't ported
pgbackrest to Windows yet. That said, it's now entirely written in
reasonably portable C and so it shouldn't be too much effort to port it.
Until that's done though, and I can't say exactly when that port will
happen, your best option is probably pg_basebackup.
Of course, I'd strongly recommend you consider running PG on Linux
instead, particularly for a production environment.
Thanks,
Stephen
Attachments:
signature.asc (application/pgp-signature, 818B) download
^ permalink raw reply [nested|flat] 25+ messages in thread
* Re: Backup & Restore
2020-02-24 08:18 Backup & Restore Dor Ben Dov <dor.ben-dov@amdocs.com>
2020-02-24 20:16 ` Re: Backup & Restore Stephen Frost <sfrost@snowman.net>
2020-02-25 01:55 ` Re: Backup & Restore sivapostgres@yahoo.com <sivapostgres@yahoo.com>
2020-02-25 13:53 ` Re: Backup & Restore Stephen Frost <sfrost@snowman.net>
@ 2020-02-26 06:21 ` sivapostgres@yahoo.com <sivapostgres@yahoo.com>
0 siblings, 0 replies; 25+ messages in thread
From: sivapostgres@yahoo.com @ 2020-02-26 06:21 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
We do have plans to move to Linux in the future after the successful implementation of at least 4 or 5 projects. Till then we want to keep windows. We were (are) using SQL Server (also) and this is our first one with Postgres. With our manpower, we feel tough to switch two things (Database & OS) at a time.
We'll be using either pg_basebackup or pg_dump, as suitable, till we find a good backup solution.
On Tuesday, 25 February, 2020, 07:24:00 pm IST, Stephen Frost <sfrost@snowman.net> wrote:
Greetings,
* sivapostgres@yahoo.com (sivapostgres@yahoo.com) wrote:
> HiCan u suggest a good backup solution for a windows installation ? Looks like the suggested two [ pgbarman, pgbackrest ] works only in Linux.
While it's certainly something we'd like to do, we haven't ported
pgbackrest to Windows yet. That said, it's now entirely written in
reasonably portable C and so it shouldn't be too much effort to port it.
Until that's done though, and I can't say exactly when that port will
happen, your best option is probably pg_basebackup.
Of course, I'd strongly recommend you consider running PG on Linux
instead, particularly for a production environment.
Thanks,
Stephen
^ permalink raw reply [nested|flat] 25+ messages in thread
* Re: Backup & Restore
2020-02-24 08:18 Backup & Restore Dor Ben Dov <dor.ben-dov@amdocs.com>
2020-02-24 20:16 ` Re: Backup & Restore Stephen Frost <sfrost@snowman.net>
2020-02-25 01:55 ` Re: Backup & Restore sivapostgres@yahoo.com <sivapostgres@yahoo.com>
@ 2020-02-26 06:25 ` Thomas Kellerer <shammat@gmx.net>
1 sibling, 0 replies; 25+ messages in thread
From: Thomas Kellerer @ 2020-02-26 06:25 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
sivapostgres@yahoo.com schrieb am 25.02.2020 um 02:55:
> Can u suggest a good backup solution for a windows installation ?
> Looks like the suggested two [ pgbarman, pgbackrest ] works only in
> Linux.
pg_probackup provides Windows binaries: https://github.com/postgrespro/pg_probackup/
^ permalink raw reply [nested|flat] 25+ messages in thread
* Re: Backup & Restore
2020-02-24 08:18 Backup & Restore Dor Ben Dov <dor.ben-dov@amdocs.com>
@ 2020-02-26 05:57 ` Adrian Ho <ml+postgresql@03s.net>
2 siblings, 0 replies; 25+ messages in thread
From: Adrian Ho @ 2020-02-26 05:57 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
On 24/2/20 4:18 pm, Dor Ben Dov wrote:
>
> Hi All,
>
>
>
> What is your backup and restore solution in production when working
> with Postgres ?
>
> (+ if you can say few words why you picked this X solution instead of
> others)
>
This is the THIRD time you've asked the same question with minimal
rephrasing, and without clarifying details:
https://www.postgresql.org/message-id/AM0PR06MB4817A7035134FD88B2C1D033CC550%40AM0PR06MB4817.eurprd0...
https://www.postgresql.org/message-id/AM0PR06MB4817DD9C64FE02410478DF65CC280%40AM0PR06MB4817.eurprd0...
If you weren't satisfied with the answers you got the first two times,
kindly be clear about what you're really looking for. Thanks much!
--
Best Regards,
Adrian
^ permalink raw reply [nested|flat] 25+ messages in thread
end of thread, other threads:[~2020-02-26 06:25 UTC | newest]
Thread overview: 25+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-06-22 21:14 Backup - Restore P. Dwayne Miller <dmiller@espgroup.net>
2006-12-28 18:55 Backup Restore Bob Pawley <rjpawley@shaw.ca>
2006-12-28 19:08 ` Re: Backup Restore Shoaib Mir <shoaibmir@gmail.com>
2006-12-28 19:30 ` Re: Backup Restore Dave Page <dpage@postgresql.org>
2006-12-28 19:44 ` Re: Backup Restore Bob Pawley <rjpawley@shaw.ca>
2006-12-28 20:06 ` Re: Backup Restore Dave Page <dpage@postgresql.org>
2006-12-29 01:53 ` Re: Backup Restore Bob Pawley <rjpawley@shaw.ca>
2006-12-29 08:10 ` Re: Backup Restore Dave Page <dpage@postgresql.org>
2006-12-29 18:54 ` Re: Backup Restore Bob Pawley <rjpawley@shaw.ca>
2006-12-29 18:57 ` Re: Backup Restore Dave Page <dpage@postgresql.org>
2006-12-29 19:26 ` Re: Backup Restore Bob Pawley <rjpawley@shaw.ca>
2007-01-02 10:00 ` Re: Backup Restore Richard Huxton <dev@archonet.com>
2007-01-03 18:07 ` Re: Backup Restore Bob Pawley <rjpawley@shaw.ca>
2007-01-03 18:44 ` Re: Backup Restore Richard Huxton <dev@archonet.com>
2007-01-03 19:26 ` Re: Backup Restore Bob Pawley <rjpawley@shaw.ca>
2007-01-04 09:19 ` Re: Backup Restore Richard Huxton <dev@archonet.com>
2007-08-06 14:35 Backup & Restore Charlie Clark <charlie@begeistert.org>
2020-02-24 08:18 Backup & Restore Dor Ben Dov <dor.ben-dov@amdocs.com>
2020-02-24 19:54 ` Re: Backup & Restore Andreas Kretschmer <andreas@a-kretschmer.de>
2020-02-24 20:16 ` Re: Backup & Restore Stephen Frost <sfrost@snowman.net>
2020-02-25 01:55 ` Re: Backup & Restore sivapostgres@yahoo.com <sivapostgres@yahoo.com>
2020-02-25 13:53 ` Re: Backup & Restore Stephen Frost <sfrost@snowman.net>
2020-02-26 06:21 ` Re: Backup & Restore sivapostgres@yahoo.com <sivapostgres@yahoo.com>
2020-02-26 06:25 ` Re: Backup & Restore Thomas Kellerer <shammat@gmx.net>
2020-02-26 05:57 ` Re: Backup & Restore Adrian Ho <ml+postgresql@03s.net>
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