Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 4F687133798E for ; Tue, 18 Jan 2011 20:29:19 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 08920-01 for ; Wed, 19 Jan 2011 00:29:09 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.shawcable.com (shawmail.shawcable.com [64.59.128.220]) by mail.postgresql.org (Postfix) with ESMTP id AE872133655C for ; Tue, 18 Jan 2011 20:29:07 -0400 (AST) Received: from bpd2mi4no-svcs.prod.shawcable.com ([10.0.184.123]) by bpd2mo1no-ssvc.prod.shawcable.com with ESMTP; 18 Jan 2011 09:57:07 -0700 X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.1 cv=W1EbViUdRLrB3xZls61b9cpNy9JNgdRUyrcMJe3sx/g= c=1 sm=1 a=fKHZdZmfl1IA:10 a=BLceEmwcHowA:10 a=rFBdEGy9vS/m0A3AhxL8nA==:17 a=GbhIXFikAAAA:8 a=epTmVMiNAAAA:8 a=iJ9aCO6GRrQD_T7OIDoA:9 a=bWlImOfUAsvqMw5by_4A:7 a=BwJzj4TyeP_aHFJ68zcvW418VA4A:4 a=CjuIK1q_8ugA:10 a=YsdO3FDBEMUA:10 a=YObXiYvaVLwA:10 a=lDsZwgibEb_jubUg:21 a=YS9T69ZPB3Ib9Cjc:21 a=yMhMjlubAAAA:8 a=SSmOFEACAAAA:8 a=Y2ELxnj51GYLGX921J4A:9 a=ieKT8QZfNYUopV0-3eYA:7 a=jVQJNVL32nVWZR0UlqjL6GwpHaYA:4 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 X-IronPort-AV: E=Sophos;i="4.60,339,1291618800"; d="scan'208,217";a="302587431" Received: from unknown (HELO bpd2mi4no-cmts.prod.shawcable.com) ([192.168.183.123]) by bpd2mi4no-cmts.prod.shawcable.com with ESMTP; 18 Jan 2011 09:57:07 -0700 X-reinject: true Received: from unknown (HELO BradleyHolbrook) ([24.67.39.150]) by bpd2mi4no-dmz.prod.shawcable.com with ESMTP; 18 Jan 2011 09:57:07 -0700 From: "Bradley Holbrook" To: "'French, Martin'" Cc: References: <036101cbb6a3$baa178e0$2fe46aa0$@servillian.ca> <81976671721DF04B9DCA6ECD87941A402640812A@roundway.Cromwell-tools.co.uk> In-Reply-To: <81976671721DF04B9DCA6ECD87941A402640812A@roundway.Cromwell-tools.co.uk> Subject: Re: Postgres Backup Utility Date: Tue, 18 Jan 2011 08:57:07 -0800 Message-ID: <004e01cbb730$bdb21930$39164b90$@servillian.ca> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_004F_01CBB6ED.AF8ED930" X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQHHkvKLrosR4aSyAm2SjCI6Zq933AO9xqP7k8FNV+A= Content-Language: en-ca X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.899 tagged_above=-10 required=5 tests=BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201101/114 X-Sequence-Number: 36554 This is a multipart message in MIME format. ------=_NextPart_000_004F_01CBB6ED.AF8ED930 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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@cromwell.co.uk] Sent: January-18-11 5:47 AM To: Bradley Holbrook; pgsql-admin@postgresql.org Subject: RE: [ADMIN] 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@postgresql.org [mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Bradley Holbrook Sent: 18 January 2011 00:08 To: pgsql-admin@postgresql.org 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 __________________________________________________ ------=_NextPart_000_004F_01CBB6ED.AF8ED930 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

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@cromwell.co.uk]
Sent: January-18-11 = 5:47 AM
To: Bradley Holbrook; = pgsql-admin@postgresql.org
Subject: RE: [ADMIN] 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@postgresql.org = [mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Bradley = Holbrook
Sent: 18 January 2011 00:08
To: = pgsql-admin@postgresql.org
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 =
__________________________________________________ =

------=_NextPart_000_004F_01CBB6ED.AF8ED930--