Re: Postgres Backup Utility

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Brad,

Google for "SQL Power Architect", download it, and try a schema comparison.  That might get you a ways down to road to what you want.

Bob Lunney

--- On Wed, 1/19/11, French, Martin <frenchm@xxxxxxxxxxxxxx> wrote:

From: French, Martin <frenchm@xxxxxxxxxxxxxx>
Subject: Re: Postgres Backup Utility
To: "Bradley Holbrook" <operations_bradley@xxxxxxxxxxxxx>
Cc: pgsql-admin@xxxxxxxxxxxxxx
Date: Wednesday, January 19, 2011, 2:12 AM

Ok, you say that you cannot drop and recreate, so you need to do this via alter statements only? Thatâs obviously going to complicate matters, as a straight dump, drop, recreate, restore would be the fastest and by far simplest method.

 

So, Ideally, youâll need to do a table def comparison over the two databases, and generate the necessary sql to amend the tables in test accordingly?

 

Querying the pg_catalog/information_schema over the two dbâs should give you the table ddl from which you can diff, and then generate the alter statements from the results.

 

Cheers

 

Martin

 

From: Bradley Holbrook [mailto:operations_bradley@xxxxxxxxxxxxx]
Sent: 18 January 2011 16:57
To: French, Martin
Cc: pgsql-admin@xxxxxxxxxxxxxx
Subject: RE: Postgres Backup Utility

 

Well, I canât just go dropping and recreating tablesâ it needs to create the correct alter statements if existing tables and or functions already exist.

 

Secondly, when Iâm finished changing the structure, I need to be able to select the list of tables that will have content updates.

 

Using a script might be more work maintaining then itâs worth. I have a backup utility that can do the job, but 3 tedious steps per schema, that only work about 10% of the time (and no batching options so that I can create a list of actions and run the list).

 

 

From: French, Martin [mailto:frenchm@xxxxxxxxxxxxxx]
Sent: January-18-11 5:47 AM
To: Bradley Holbrook; pgsql-admin@xxxxxxxxxxxxxx
Subject: RE: Postgres Backup Utility

 

Iâm assuming that this needs to be tightly controlled and as such a replication tool is out of the question?

 

In that case; The first thing to pop into my head here would be to use either use shell scripting, or to use the pg API and write a c program to handle it.

 

I remember doing something very similar with Oracle a few years back.

 

Cheers

 

Martin

 

 

From: pgsql-admin-owner@xxxxxxxxxxxxxx [mailto:pgsql-admin-owner@xxxxxxxxxxxxxx] On Behalf Of Bradley Holbrook
Sent: 18 January 2011 00:08
To: pgsql-admin@xxxxxxxxxxxxxx
Subject: [ADMIN] Postgres Backup Utility

 

Hello!

 

First day on the new mailing list as I have need of some expertâs advice.

 

I need to be able to quickly apply the structure updates from a development database to a testing database, and do selective data updates (like on lookup tables, but not content tables).

 

Any help would be appreciated!

 

Brad


___________________________________________________

This email is intended for the named recipient. The information contained
in it is confidential. You should not copy it for any purposes, nor
disclose its contents to any other party. If you received this email
in error, please notify the sender immediately via email, and delete
it from your computer.

Any views or opinions presented are solely those of the author and do not
necessarily represent those of the company.

PCI Compliancy: Please note, we do not send or wish to receive banking,
credit or debit card information by email or any other form of
communication.

Cromwell Tools Limited, PO Box 14, 65 Chartwell Drive
Wigston, Leicester LE18 1AT. Tel 0116 2888000
Registered in England and Wales, Reg No 00986161
VAT GB 115 5713 87 900
__________________________________________________


___________________________________________________

This email is intended for the named recipient. The information contained
in it is confidential. You should not copy it for any purposes, nor
disclose its contents to any other party. If you received this email
in error, please notify the sender immediately via email, and delete
it from your computer.

Any views or opinions presented are solely those of the author and do not
necessarily represent those of the company.

PCI Compliancy: Please note, we do not send or wish to receive banking,
credit or debit card information by email or any other form of
communication.

Cromwell Tools Limited, PO Box 14, 65 Chartwell Drive
Wigston, Leicester LE18 1AT. Tel 0116 2888000
Registered in England and Wales, Reg No 00986161
VAT GB 115 5713 87 900
__________________________________________________


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux