From pgman@candle.pha.pa.us Fri Jun 5 04:52:13 2026 X-Original-To: pgsql-docs-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 316089DC984; Mon, 26 Dec 2005 13:55:07 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 00220-04; Mon, 26 Dec 2005 13:55:06 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- X-Greylist: from auto-whitelisted by SQLgrey- Received: from candle.pha.pa.us (candle.pha.pa.us [70.90.9.53]) by postgresql.org (Postfix) with ESMTP id 6EC999DC93D; Mon, 26 Dec 2005 13:55:04 -0400 (AST) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id jBQHt5L21116; Mon, 26 Dec 2005 12:55:05 -0500 (EST) From: Bruce Momjian Message-Id: <200512261755.jBQHt5L21116@candle.pha.pa.us> Subject: Online backup vs Continuous backup To: PostgreSQL-development Date: Mon, 26 Dec 2005 12:55:05 -0500 (EST) CC: PostgreSQL-documentation X-Mailer: ELM [version 2.4ME+ PL121 (25)] MIME-Version: 1.0 Content-Type: multipart/mixed; boundary=ELM1135619705-8658-1_ Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.117 required=5 tests=[AWL=0.117] X-Spam-Score: 0.117 X-Spam-Level: X-Archive-Number: 200512/28 X-Sequence-Number: 3376 --ELM1135619705-8658-1_ Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII I noticed that we are using the term "Online Backup" in our documentation when we are talking about continuous backup and PITR. To me, "online backup" is doing a backup while the system is online (online-backup), and that is accomplished by pg_dump. I know a lot of databases us "Online Backup" but I assume this is for historical reasons because at some time in the past their full backups didn't work while the database was online. Other systems use the term "Continuous Logging", but I think that is too easily confused with the server activity logs. I suggest the following patch to rename our capability "Continuous Backup". -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073 --ELM1135619705-8658-1_ Content-Transfer-Encoding: 7bit Content-Type: text/plain Content-Disposition: inline; filename="/pgpatches/backup" Index: backup.sgml =================================================================== RCS file: /cvsroot/pgsql/doc/src/sgml/backup.sgml,v retrieving revision 2.76 diff -c -r2.76 backup.sgml *** backup.sgml 7 Nov 2005 17:36:44 -0000 2.76 --- backup.sgml 26 Dec 2005 16:30:48 -0000 *************** *** 19,25 **** SQL dump File system level backup ! On-line backup Each has its own strengths and weaknesses. --- 19,25 ---- SQL dump File system level backup ! Continuous backup Each has its own strengths and weaknesses. *************** *** 373,382 **** ! On-line backup and point-in-time recovery (PITR) ! on-line backup --- 373,382 ---- ! Continuous backup and point-in-time recovery (PITR) ! continuous backup *************** *** 452,458 **** ! To recover successfully using an on-line backup, you need a continuous sequence of archived WAL files that extends back at least as far as the start time of your backup. So to get started, you should set up and test your procedure for archiving WAL files before you take your --- 452,458 ---- ! To recover successfully using a continuous backup, you need a continuous sequence of archived WAL files that extends back at least as far as the start time of your backup. So to get started, you should set up and test your procedure for archiving WAL files before you take your *************** *** 782,793 **** pg_start_backup or pg_stop_backup, and you will therefore be left to your own devices to keep track of which backup dump is which and how far back the associated WAL files go. ! It is generally better to follow the on-line backup procedure above. ! Recovering with an On-line Backup Okay, the worst has happened and you need to recover from your backup. --- 782,793 ---- pg_start_backup or pg_stop_backup, and you will therefore be left to your own devices to keep track of which backup dump is which and how far back the associated WAL files go. ! It is generally better to follow the continuous backup procedure above. ! Recovering with a Continuous Backup Okay, the worst has happened and you need to recover from your backup. *************** *** 1123,1129 **** Caveats ! At this writing, there are several limitations of the on-line backup technique. These will probably be fixed in future releases: --- 1123,1129 ---- Caveats ! At this writing, there are several limitations of the continuous backup technique. These will probably be fixed in future releases: --ELM1135619705-8658-1_-- From tgl@sss.pgh.pa.us Fri Jun 5 04:52:14 2026 X-Original-To: pgsql-docs-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 67E959DC835; Mon, 26 Dec 2005 14:44:18 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 05624-08; Mon, 26 Dec 2005 14:44:18 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 3A6AE9DC804; Mon, 26 Dec 2005 14:44:16 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id jBQIiGk1010948; Mon, 26 Dec 2005 13:44:16 -0500 (EST) To: Bruce Momjian cc: PostgreSQL-development , PostgreSQL-documentation Subject: Re: Online backup vs Continuous backup In-reply-to: <200512261755.jBQHt5L21116@candle.pha.pa.us> References: <200512261755.jBQHt5L21116@candle.pha.pa.us> Comments: In-reply-to Bruce Momjian message dated "Mon, 26 Dec 2005 12:55:05 -0500" Date: Mon, 26 Dec 2005 13:44:15 -0500 Message-ID: <10947.1135622655@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.045 required=5 tests=[AWL=0.045] X-Spam-Score: 0.045 X-Spam-Level: X-Archive-Number: 200512/29 X-Sequence-Number: 3377 Bruce Momjian writes: > I suggest the following patch to rename our capability "Continuous > Backup". This doesn't seem like an improvement. "Online backup" is the standard terminology AFAIK. regards, tom lane From pgman@candle.pha.pa.us Fri Jun 5 04:52:14 2026 X-Original-To: pgsql-docs-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id D32329DC809; Mon, 26 Dec 2005 14:46:39 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 05321-10; Mon, 26 Dec 2005 14:46:39 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- X-Greylist: from auto-whitelisted by SQLgrey- Received: from candle.pha.pa.us (candle.pha.pa.us [70.90.9.53]) by postgresql.org (Postfix) with ESMTP id 31ABC9DC804; Mon, 26 Dec 2005 14:46:37 -0400 (AST) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id jBQIkcN12733; Mon, 26 Dec 2005 13:46:38 -0500 (EST) From: Bruce Momjian Message-Id: <200512261846.jBQIkcN12733@candle.pha.pa.us> Subject: Re: Online backup vs Continuous backup In-Reply-To: <10947.1135622655@sss.pgh.pa.us> To: Tom Lane Date: Mon, 26 Dec 2005 13:46:38 -0500 (EST) CC: PostgreSQL-development , PostgreSQL-documentation X-Mailer: ELM [version 2.4ME+ PL121 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.118 required=5 tests=[AWL=0.118] X-Spam-Score: 0.118 X-Spam-Level: X-Archive-Number: 200512/30 X-Sequence-Number: 3378 Tom Lane wrote: > Bruce Momjian writes: > > I suggest the following patch to rename our capability "Continuous > > Backup". > > This doesn't seem like an improvement. "Online backup" is the standard > terminology AFAIK. But why is it the standard terminology? It doesn't seem logical. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073 From jd@commandprompt.com Fri Jun 5 04:52:14 2026 X-Original-To: pgsql-docs-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 0F52C9DC9CB; Mon, 26 Dec 2005 15:02:55 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 11952-03; Mon, 26 Dec 2005 15:02:54 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- X-Greylist: from auto-whitelisted by SQLgrey- Received: from hosting.commandprompt.com (128.commandprompt.com [207.173.200.128]) by postgresql.org (Postfix) with ESMTP id D92F49DC98A; Mon, 26 Dec 2005 15:02:52 -0400 (AST) Received: from [192.168.1.105] (or-67-76-146-141.sta.sprint-hsd.net [67.76.146.141]) (authenticated bits=0) by hosting.commandprompt.com (8.13.4/8.13.4) with ESMTP id jBQIsocD029533; Mon, 26 Dec 2005 10:54:51 -0800 Message-ID: <43B03E5A.70406@commandprompt.com> Date: Mon, 26 Dec 2005 11:02:50 -0800 From: "Joshua D. Drake" Organization: Command Prompt, Inc. User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Bruce Momjian CC: PostgreSQL-development , PostgreSQL-documentation Subject: Re: [HACKERS] Online backup vs Continuous backup References: <200512261755.jBQHt5L21116@candle.pha.pa.us> In-Reply-To: <200512261755.jBQHt5L21116@candle.pha.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (hosting.commandprompt.com [192.168.1.101]); Mon, 26 Dec 2005 10:54:52 -0800 (PST) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.042 required=5 tests=[AWL=0.042] X-Spam-Score: 0.042 X-Spam-Level: X-Archive-Number: 200512/31 X-Sequence-Number: 3379 Bruce Momjian wrote: > I noticed that we are using the term "Online Backup" in our > documentation when we are talking about continuous backup and PITR. > > To me, "online backup" is doing a backup while the system is online > (online-backup), and that is accomplished by pg_dump. I know a lot of > databases us "Online Backup" but I assume this is for historical reasons > because at some time in the past their full backups didn't work while > the database was online. Other systems use the term "Continuous > Logging", but I think that is too easily confused with the server > activity logs. > > I suggest the following patch to rename our capability "Continuous > Backup". I have never heard the term Continuous backup. Although I have heard online backup. The problem is that when I hear the term online backup I think Hot backup which is what we do with pg_dump. I would just call the other Point in time recovery :) > > From pgman@candle.pha.pa.us Fri Jun 5 04:52:15 2026 X-Original-To: pgsql-docs-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id D3BE39DC816; Mon, 26 Dec 2005 15:07:07 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 08111-10; Mon, 26 Dec 2005 15:07:07 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- X-Greylist: from auto-whitelisted by SQLgrey- Received: from candle.pha.pa.us (candle.pha.pa.us [70.90.9.53]) by postgresql.org (Postfix) with ESMTP id 553D29DC809; Mon, 26 Dec 2005 15:07:05 -0400 (AST) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id jBQJ76Q17355; Mon, 26 Dec 2005 14:07:06 -0500 (EST) From: Bruce Momjian Message-Id: <200512261907.jBQJ76Q17355@candle.pha.pa.us> Subject: Re: [HACKERS] Online backup vs Continuous backup In-Reply-To: <43B03E5A.70406@commandprompt.com> To: "Joshua D. Drake" Date: Mon, 26 Dec 2005 14:07:06 -0500 (EST) CC: PostgreSQL-development , PostgreSQL-documentation X-Mailer: ELM [version 2.4ME+ PL121 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.119 required=5 tests=[AWL=0.119] X-Spam-Score: 0.119 X-Spam-Level: X-Archive-Number: 200512/32 X-Sequence-Number: 3380 Joshua D. Drake wrote: > Bruce Momjian wrote: > > I noticed that we are using the term "Online Backup" in our > > documentation when we are talking about continuous backup and PITR. > > > > To me, "online backup" is doing a backup while the system is online > > (online-backup), and that is accomplished by pg_dump. I know a lot of > > databases us "Online Backup" but I assume this is for historical reasons > > because at some time in the past their full backups didn't work while > > the database was online. Other systems use the term "Continuous > > Logging", but I think that is too easily confused with the server > > activity logs. > > > > I suggest the following patch to rename our capability "Continuous > > Backup". > > I have never heard the term Continuous backup. Although I have heard > online backup. The problem is that when I hear the term online backup > I think Hot backup which is what we do with pg_dump. Yes, that is my problem too. > I would just call the other Point in time recovery :) The problem there is that it is "recovery", and the documentation talks about the "backup" step. I am thinking we are going to have to add something like "Continuous backup, also called Online Backup" or something like that. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073 From hlinnaka@iki.fi Fri Jun 5 04:52:15 2026 X-Original-To: pgsql-docs-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 19E809DC9E3; Mon, 26 Dec 2005 15:51:32 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 23156-08; Mon, 26 Dec 2005 15:51:32 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- X-Greylist: from auto-whitelisted by SQLgrey- Received: from smtp-4.hut.fi (smtp-4.hut.fi [130.233.228.94]) by postgresql.org (Postfix) with ESMTP id 8BE7C9DC99C; Mon, 26 Dec 2005 15:51:28 -0400 (AST) Received: from localhost (putosiko.hut.fi [130.233.228.114]) by smtp-4.hut.fi (8.12.10/8.12.10) with ESMTP id jBQJpEPp000746; Mon, 26 Dec 2005 21:51:14 +0200 Received: from smtp-4.hut.fi ([130.233.228.94]) by localhost (putosiko.hut.fi [130.233.228.114]) (amavisd-new, port 10024) with LMTP id 23127-13-2; Mon, 26 Dec 2005 21:51:13 +0200 (EET) Received: from kosh.hut.fi (kosh.hut.fi [130.233.228.10]) by smtp-4.hut.fi (8.12.10/8.12.10) with ESMTP id jBQJkipc032497; Mon, 26 Dec 2005 21:46:44 +0200 Date: Mon, 26 Dec 2005 21:46:44 +0200 (EET) From: Heikki Linnakangas To: Bruce Momjian cc: "Joshua D. Drake" , PostgreSQL-development , PostgreSQL-documentation Subject: Re: [HACKERS] Online backup vs Continuous backup In-Reply-To: <200512261907.jBQJ76Q17355@candle.pha.pa.us> Message-ID: References: <200512261907.jBQJ76Q17355@candle.pha.pa.us> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-TKK-Virus-Scanned: by amavisd-new-2.1.2-hutcc at putosiko.hut.fi X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.222 required=5 tests=[AWL=0.222] X-Spam-Score: 0.222 X-Spam-Level: X-Archive-Number: 200512/38 X-Sequence-Number: 3386 On Mon, 26 Dec 2005, Bruce Momjian wrote: > Joshua D. Drake wrote: > >> I have never heard the term Continuous backup. Although I have heard >> online backup. The problem is that when I hear the term online backup >> I think Hot backup which is what we do with pg_dump. > > Yes, that is my problem too. > >> I would just call the other Point in time recovery :) > > The problem there is that it is "recovery", and the documentation talks > about the "backup" step. I am thinking we are going to have to add > something like "Continuous backup, also called Online Backup" or > something like that. FWIW, I believe "log archival" is a common term for that. - Heikki From peter_e@gmx.net Fri Jun 5 04:52:15 2026 X-Original-To: pgsql-docs-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 58C2F9DC93F; Tue, 27 Dec 2005 08:50:32 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 83063-04; Tue, 27 Dec 2005 08:50:35 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- X-Greylist: from auto-whitelisted by SQLgrey- Received: from gauss.credativ.com (ipx11302.ipxserver.de [212.112.227.254]) by postgresql.org (Postfix) with ESMTP id 560E69DC946; Tue, 27 Dec 2005 08:50:30 -0400 (AST) Received: from hacker-243-238.congress.ccc.de (hacker-243-238.congress.ccc.de [81.163.238.243]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by gauss.credativ.com (Postfix) with ESMTP id 15380D7656; Tue, 27 Dec 2005 13:50:30 +0100 (CET) From: Peter Eisentraut To: pgsql-hackers@postgresql.org Subject: Re: [HACKERS] Online backup vs Continuous backup Date: Tue, 27 Dec 2005 13:50:14 +0100 User-Agent: KMail/1.8.2 Cc: Heikki Linnakangas , Bruce Momjian , "Joshua D. Drake" , PostgreSQL-documentation References: <200512261907.jBQJ76Q17355@candle.pha.pa.us> In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200512271350.14865.peter_e@gmx.net> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.12 required=5 tests=[AWL=0.120] X-Spam-Score: 0.12 X-Spam-Level: X-Archive-Number: 200512/33 X-Sequence-Number: 3381 Am Montag, 26. Dezember 2005 20:46 schrieb Heikki Linnakangas: > FWIW, I believe "log archival" is a common term for that. I like that better, although there are a lot of logs, so maybe "transaction log archival". Considering the list originally referenced: - File system backup - SQL dump - (Transaction log archival?) This addresses the technical workings of the various backup systems. The fact that it is or isn't on-line, hot, continuous, fast, or flexible is secondary. From pgman@candle.pha.pa.us Fri Jun 5 04:52:15 2026 X-Original-To: pgsql-docs-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 4767C9DCA39; Tue, 27 Dec 2005 13:45:12 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 57873-07; Tue, 27 Dec 2005 13:45:11 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- X-Greylist: from auto-whitelisted by SQLgrey- Received: from candle.pha.pa.us (candle.pha.pa.us [70.90.9.53]) by postgresql.org (Postfix) with ESMTP id 367C99DCA17; Tue, 27 Dec 2005 13:45:09 -0400 (AST) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id jBRHj7A06796; Tue, 27 Dec 2005 12:45:07 -0500 (EST) From: Bruce Momjian Message-Id: <200512271745.jBRHj7A06796@candle.pha.pa.us> Subject: Re: [HACKERS] Online backup vs Continuous backup In-Reply-To: <200512271350.14865.peter_e@gmx.net> To: Peter Eisentraut Date: Tue, 27 Dec 2005 12:45:07 -0500 (EST) CC: pgsql-hackers@postgresql.org, Heikki Linnakangas , "Joshua D. Drake" , PostgreSQL-documentation X-Mailer: ELM [version 2.4ME+ PL121 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.123 required=5 tests=[AWL=0.123] X-Spam-Score: 0.123 X-Spam-Level: X-Archive-Number: 200512/34 X-Sequence-Number: 3382 Peter Eisentraut wrote: > Am Montag, 26. Dezember 2005 20:46 schrieb Heikki Linnakangas: > > FWIW, I believe "log archival" is a common term for that. > > I like that better, although there are a lot of logs, so maybe > "transaction log archival". Yep, when I think of log archiving, I think of saving the server logs, which thanks to log file rotation, we kind of support. The problem is that when I think of the transaction log, I think of clog because it is the transaction status log. :-( I am thinking anything that says "log" is going to be confusing. How about "Transaction Archiving"? > Considering the list originally referenced: > > - File system backup - SQL dump - (Transaction log archival?) > > This addresses the technical workings of the various backup systems. > The fact that it is or isn't on-line, hot, continuous, fast, or flexible > is secondary. To me, the continuous activity is the significant feature of that backup method. I chose "Continuous Backup" because it is the continual activity that is significant. "Continuous Archiving"? -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073 From gsstark@mit.edu Fri Jun 5 04:52:15 2026 X-Original-To: pgsql-docs-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 52D559DCA30; Tue, 27 Dec 2005 14:59:49 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 71126-06; Tue, 27 Dec 2005 14:59:49 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- X-Greylist: from auto-whitelisted by SQLgrey- Received: from stark.xeocode.com (stark.xeocode.com [216.58.44.227]) by postgresql.org (Postfix) with ESMTP id 294999DC9C9; Tue, 27 Dec 2005 14:59:46 -0400 (AST) Received: from localhost ([127.0.0.1] helo=stark.xeocode.com) by stark.xeocode.com with smtp (Exim 3.36 #1 (Debian)) id 1ErK2v-0005yW-00; Tue, 27 Dec 2005 13:59:41 -0500 To: Bruce Momjian Cc: PostgreSQL-development , PostgreSQL-documentation Subject: Re: [HACKERS] Online backup vs Continuous backup References: <200512261755.jBQHt5L21116@candle.pha.pa.us> In-Reply-To: <200512261755.jBQHt5L21116@candle.pha.pa.us> From: Greg Stark Organization: The Emacs Conspiracy; member since 1992 Date: 27 Dec 2005 13:59:41 -0500 Message-ID: <87mzim5psy.fsf@stark.xeocode.com> Lines: 25 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.112 required=5 tests=[AWL=0.112] X-Spam-Score: 0.112 X-Spam-Level: X-Archive-Number: 200512/39 X-Sequence-Number: 3387 Bruce Momjian writes: > I noticed that we are using the term "Online Backup" in our > documentation when we are talking about continuous backup and PITR. > > To me, "online backup" is doing a backup while the system is online > (online-backup), and that is accomplished by pg_dump. Well fwiw what pg_dump does isn't even considered a "backup" at all in other systems. It's a "logical export" or something of that sort. It's not considered a "backup" because it's saving something different than the actual physical database. When you restore you get something (hopefully) logically equivalent but still physically different. Hot backups which is what you read "online backup" to mean is pretty closely tied to PITR log archiving backups. One isn't very useful without the other. Specifically, you can have all the archived logs in the world but if you don't have a backup to start from they're useless. And in postgres I gather hot backups aren't very useful if you don't have the transaction logs necessary to fix any torn pages. -- greg From tgl@sss.pgh.pa.us Fri Jun 5 04:52:15 2026 X-Original-To: pgsql-docs-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 719339DCA3F; Tue, 27 Dec 2005 15:36:09 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 76315-04; Tue, 27 Dec 2005 15:36:06 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 101B59DC80C; Tue, 27 Dec 2005 15:36:03 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id jBRJa02c003618; Tue, 27 Dec 2005 14:36:00 -0500 (EST) To: Bruce Momjian cc: Peter Eisentraut , pgsql-hackers@postgresql.org, Heikki Linnakangas , "Joshua D. Drake" , PostgreSQL-documentation Subject: Re: [HACKERS] Online backup vs Continuous backup In-reply-to: <200512271745.jBRHj7A06796@candle.pha.pa.us> References: <200512271745.jBRHj7A06796@candle.pha.pa.us> Comments: In-reply-to Bruce Momjian message dated "Tue, 27 Dec 2005 12:45:07 -0500" Date: Tue, 27 Dec 2005 14:35:59 -0500 Message-ID: <3617.1135712159@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.048 required=5 tests=[AWL=0.048] X-Spam-Score: 0.048 X-Spam-Level: X-Archive-Number: 200512/35 X-Sequence-Number: 3383 Bruce Momjian writes: >> This addresses the technical workings of the various backup systems. >> The fact that it is or isn't on-line, hot, continuous, fast, or flexible >> is secondary. > To me, the continuous activity is the significant feature of that backup > method. I chose "Continuous Backup" because it is the continual > activity that is significant. "Continuous Archiving"? I like Peter's suggestion as-is; or "WAL Archiving". I don't like applying adjectives that are not specific to the particular method. That will just create more confusion down the road if we add another feature that could also be called "continuous archiving". regards, tom lane From andrew@dunslane.net Fri Jun 5 04:52:15 2026 X-Original-To: pgsql-docs-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 546AE9DC9F7; Tue, 27 Dec 2005 15:56:51 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 76414-10; Tue, 27 Dec 2005 15:56:48 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- X-Greylist: from auto-whitelisted by SQLgrey- Received: from trolak.mydnsbox2.com (ns1.mydnsbox2.com [207.44.142.118]) by postgresql.org (Postfix) with ESMTP id C22879DC815; Tue, 27 Dec 2005 15:56:45 -0400 (AST) Received: from dunslane.net (localhost.localdomain [127.0.0.1]) (authenticated (0 bits)) by trolak.mydnsbox2.com (8.11.6/8.11.6) with ESMTP id jBRKEtB02593; Tue, 27 Dec 2005 14:14:55 -0600 Received: from 68.143.134.146 (SquirrelMail authenticated user andrew@dunslane.net) by www.dunslane.net with HTTP; Tue, 27 Dec 2005 14:14:55 -0600 (CST) Message-ID: <41278.68.143.134.146.1135714495.squirrel@www.dunslane.net> Date: Tue, 27 Dec 2005 14:14:55 -0600 (CST) Subject: Re: [HACKERS] Online backup vs Continuous backup From: "Andrew Dunstan" To: In-Reply-To: <87mzim5psy.fsf@stark.xeocode.com> References: <87mzim5psy.fsf@stark.xeocode.com> X-Priority: 3 Importance: Normal X-MSMail-Priority: Normal Cc: , , X-Mailer: SquirrelMail (version 1.2.5) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.06 required=5 tests=[AWL=0.060] X-Spam-Score: 0.06 X-Spam-Level: X-Archive-Number: 200512/36 X-Sequence-Number: 3384 Greg Stark said: > Bruce Momjian writes: > >> I noticed that we are using the term "Online Backup" in our >> documentation when we are talking about continuous backup and PITR. >> >> To me, "online backup" is doing a backup while the system is online >> (online-backup), and that is accomplished by pg_dump. > > Well fwiw what pg_dump does isn't even considered a "backup" at all in > other systems. It's a "logical export" or something of that sort. > > It's not considered a "backup" because it's saving something different > than the actual physical database. When you restore you get something > (hopefully) logically equivalent but still physically different. This seems fairly arbitrary. On that basis anything on a higher level than dd is not a backup method, ISTM. cheers andrew From gsstark@mit.edu Fri Jun 5 04:52:15 2026 X-Original-To: pgsql-docs-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 5F91A9DCA07; Tue, 27 Dec 2005 19:30:17 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 13093-05; Tue, 27 Dec 2005 19:30:19 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- X-Greylist: from auto-whitelisted by SQLgrey- Received: from stark.xeocode.com (stark.xeocode.com [216.58.44.227]) by postgresql.org (Postfix) with ESMTP id 6C0C59DC9AF; Tue, 27 Dec 2005 19:30:14 -0400 (AST) Received: from localhost ([127.0.0.1] helo=stark.xeocode.com) by stark.xeocode.com with smtp (Exim 3.36 #1 (Debian)) id 1ErOGe-000118-00; Tue, 27 Dec 2005 18:30:08 -0500 To: "Andrew Dunstan" Cc: , , , Subject: Re: [HACKERS] Online backup vs Continuous backup References: <87mzim5psy.fsf@stark.xeocode.com> <41278.68.143.134.146.1135714495.squirrel@www.dunslane.net> In-Reply-To: <41278.68.143.134.146.1135714495.squirrel@www.dunslane.net> From: Greg Stark Organization: The Emacs Conspiracy; member since 1992 Date: 27 Dec 2005 18:30:08 -0500 Message-ID: <87hd8u5da7.fsf@stark.xeocode.com> Lines: 31 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.112 required=5 tests=[AWL=0.112] X-Spam-Score: 0.112 X-Spam-Level: X-Archive-Number: 200512/40 X-Sequence-Number: 3388 "Andrew Dunstan" writes: > Greg Stark said: > > Well fwiw what pg_dump does isn't even considered a "backup" at all in > > other systems. It's a "logical export" or something of that sort. > > > > It's not considered a "backup" because it's saving something different > > than the actual physical database. When you restore you get something > > (hopefully) logically equivalent but still physically different. > > This seems fairly arbitrary. On that basis anything on a higher level than > dd is not a backup method, ISTM. Well most of other options *aren't* any higher level than dd. Even with PITR you're just storing the transaction logs byte for byte. When you replay it works at slightly higher level but it's still far from reinterpreting your data and you'll get (almost) exactly the same bytes back. I'm not saying pg_dump is a bad thing, but now that Postgres has real backups there isn't much of a use case for using pg_dump as a stand-in for backups. If your system crashes and you need to bring up a new system quickly you want to bring it up in exactly the state the one that crashed was in. You don't want to pass all the data through a program that interprets the ascii representation again and hope it comes up with the same data. There are other reasons to need pg_dump of course. Just not for backups. -- greg From aalam@tatashare.com Fri Jun 5 04:52:15 2026 X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 82ED29DCA92 for ; Tue, 27 Dec 2005 23:32:37 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 61739-01 for ; Tue, 27 Dec 2005 23:32:41 -0400 (AST) Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 4AA929DCA89 for ; Tue, 27 Dec 2005 23:32:35 -0400 (AST) Received: from smtp1.netmagicians.com (smtp1.netmagicians.com [202.87.39.91]) by svr4.postgresql.org (Postfix) with ESMTP id 5F0405AFCDA for ; Wed, 28 Dec 2005 03:32:40 +0000 (GMT) Received: from mailserver.tatashare.com (unknown [202.149.193.242]) by smtp1.netmagicians.com (Postfix) with ESMTP id F37A48EC38F for ; Wed, 28 Dec 2005 09:02:23 +0530 (IST) Received: from aftabn463 (unknown [172.16.16.236]) by mailserver.tatashare.com (Postfix) with SMTP id E1B2C3E4031 for ; Wed, 28 Dec 2005 08:51:21 +0530 (IST) Reply-To: From: "Aftab Alam" To: Subject: sending mail from Postgres Date: Wed, 28 Dec 2005 08:52:41 +0530 Message-ID: <002801c60b5d$f6889c90$ec1010ac@aftabn463> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <3617.1135712159@sss.pgh.pa.us> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal X-NetMagic-MailScanner-Information: Powered By NetMagic Mail Protection v1.0 X-NetMagic-MailScanner: Found to be clean X-NetMagic-MailScanner-From: aalam@tatashare.com X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.12 required=5 tests=[AWL=0.120] X-Spam-Score: 0.12 X-Spam-Level: X-Archive-Number: 200512/1134 X-Sequence-Number: 77982 Hi there, How can i send mail form postgresql. any suggestion. thanx & regards aftab From aalam@tatashare.com Fri Jun 5 04:52:16 2026 X-Original-To: pgsql-docs-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id B33559DCA82 for ; Tue, 27 Dec 2005 23:32:51 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 61739-02 for ; Tue, 27 Dec 2005 23:32:56 -0400 (AST) Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id C06329DCA7C for ; Tue, 27 Dec 2005 23:32:49 -0400 (AST) Received: from smtp1.netmagicians.com (smtp1.netmagicians.com [202.87.39.91]) by svr4.postgresql.org (Postfix) with ESMTP id 822A45AF88D for ; Wed, 28 Dec 2005 03:32:52 +0000 (GMT) Received: from mailserver.tatashare.com (unknown [202.149.193.242]) by smtp1.netmagicians.com (Postfix) with ESMTP id E1FB58EC398 for ; Wed, 28 Dec 2005 09:02:27 +0530 (IST) Received: from aftabn463 (unknown [172.16.16.236]) by mailserver.tatashare.com (Postfix) with SMTP id 861723E4032 for ; Wed, 28 Dec 2005 08:51:24 +0530 (IST) Reply-To: From: "Aftab Alam" To: "'PostgreSQL-documentation'" Subject: sending mail from Postgres Date: Wed, 28 Dec 2005 08:52:42 +0530 Message-ID: <002901c60b5d$f80fb1c0$ec1010ac@aftabn463> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_002A_01C60B8C.11C7EDC0" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal X-NetMagic-MailScanner-Information: Powered By NetMagic Mail Protection v1.0 X-NetMagic-MailScanner: Found to be clean X-NetMagic-MailScanner-From: aalam@tatashare.com X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.143 required=5 tests=[AWL=0.016, HTML_MESSAGE=0.001, HTML_TAG_EXIST_TBODY=0.126] X-Spam-Score: 0.143 X-Spam-Level: X-Archive-Number: 200512/41 X-Sequence-Number: 3389 This is a multi-part message in MIME format. ------=_NextPart_000_002A_01C60B8C.11C7EDC0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Hi there, How can i send mail form postgresql. any suggestion. thanx & regards aftab ------=_NextPart_000_002A_01C60B8C.11C7EDC0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hi there,

How can i send mail form postgresql.

any suggestion.

thanx & regards

aftab

 

 

 
------=_NextPart_000_002A_01C60B8C.11C7EDC0-- From jeremyd@apptechsys.com Fri Jun 5 04:52:15 2026 X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id DA7BF9DC837 for ; Wed, 28 Dec 2005 00:30:25 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 68548-05 for ; Wed, 28 Dec 2005 00:30:23 -0400 (AST) Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id E473B9DC80A for ; Wed, 28 Dec 2005 00:30:22 -0400 (AST) Received: from mail.apptechsys.com (mail.apptechsys.com [206.129.116.70]) by svr4.postgresql.org (Postfix) with ESMTP id 2A17E5AFC1C for ; Wed, 28 Dec 2005 04:30:21 +0000 (GMT) Received: by mail.apptechsys.com (Postfix, from userid 583) id 6E9CA7E52; Tue, 27 Dec 2005 20:30:17 -0800 (PST) Received: from ssh.apptechsys.com (ssh.apptechsys.com [206.129.116.141]) by mail.apptechsys.com (Postfix) with ESMTP id CF11E7E50; Tue, 27 Dec 2005 20:30:15 -0800 (PST) Date: Tue, 27 Dec 2005 20:30:15 -0800 (PST) From: Jeremy Drake To: Aftab Alam Cc: pgsql-hackers@postgresql.org Subject: Re: sending mail from Postgres In-Reply-To: <002801c60b5d$f6889c90$ec1010ac@aftabn463> Message-ID: References: <002801c60b5d$f6889c90$ec1010ac@aftabn463> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200512/1140 X-Sequence-Number: 77988 Code from perl cookbook, wrapped in plperlu wrapper not very portable, Net::SMTP would probably be better, and result in more portable perl code. Didn't test this - but it is copied straight from perl cookbook via google: http://www.unix.org.ua/orelly/perl/cookbook/ch18_04.htm CREATE OR REPLACE FUNCTION send_email(from_address text, to_address text, subject text, body text) RETURNS void AS $$ use Mail::Mailer; my ($from_address, $to_address, $subject, $body) = @_; my $mailer = Mail::Mailer->new("sendmail"); $mailer->open({ From => $from_address, To => $to_address, Subject => $subject, }) or die "Can't open: $!"; print $mailer $body; $mailer->close(); $$ LANGUAGE plperlu VOLATILE STRICT; On Wed, 28 Dec 2005, Aftab Alam wrote: > Hi there, > > How can i send mail form postgresql. > > any suggestion. > > thanx & regards > aftab > > ---------------------------(end of broadcast)--------------------------- > TIP 6: explain analyze is your friend > -- Don't steal; thou'lt never thus compete successfully in business. Cheat. -- Ambrose Bierce From cbbrowne@acm.org Fri Jun 5 04:52:15 2026 X-Original-To: pgsql-docs-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id AE4869DCA32 for ; Wed, 28 Dec 2005 00:38:25 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 68526-06 for ; Wed, 28 Dec 2005 00:38:24 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from floppy.pyrenet.fr (news.pyrenet.fr [194.116.145.2]) by postgresql.org (Postfix) with ESMTP id 1E2FF9DCA30 for ; Wed, 28 Dec 2005 00:38:22 -0400 (AST) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id DA3C633A69; Wed, 28 Dec 2005 05:38:21 +0100 (MET) From: Christopher Browne X-Newsgroups: pgsql.docs Subject: Re: Online backup vs Continuous backup Date: Tue, 27 Dec 2005 23:33:07 -0500 Organization: cbbrowne Computing Inc Lines: 18 Message-ID: References: <200512261755.jBQHt5L21116@candle.pha.pa.us> <10947.1135622655@sss.pgh.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@news.hub.org X-message-flag: Outlook is rather hackable, isn't it? X-Home-Page: http://www.cbbrowne.com/info/ X-Affero: http://svcs.affero.net/rm.php?r=cbbrowne User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, berkeley-unix) Cancel-Lock: sha1:rksftB1pn4lLDg9VwFK12oQYnyo= To: pgsql-docs@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.522 required=5 tests=[AWL=-0.291, INFO_TLD=0.813] X-Spam-Score: 0.522 X-Spam-Level: X-Archive-Number: 200512/42 X-Sequence-Number: 3390 > Bruce Momjian writes: >> I suggest the following patch to rename our capability "Continuous >> Backup". > > This doesn't seem like an improvement. "Online backup" is the standard > terminology AFAIK. There's something ambiguous about it, in view that there are two useful points in time for a backup to be "as of," namely: a) The start time (which is what pg_dump does), and b) The end time (which I believe is not uncommon with other systems). PITR is obviously more like b)... -- wm(X,Y):-write(X),write('@'),write(Y). wm('cbbrowne','gmail.com'). http://linuxfinances.info/info/slony.html Keeping instructions and operands in different memories saves .20 (.09) microseconds. From pavel.stehule@hotmail.com Fri Jun 5 04:52:16 2026 X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 051389DC877 for ; Wed, 28 Dec 2005 01:20:15 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 76166-04 for ; Wed, 28 Dec 2005 01:20:13 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from hotmail.com (bay20-f30.bay20.hotmail.com [64.4.54.119]) by postgresql.org (Postfix) with ESMTP id 80A109DC80A for ; Wed, 28 Dec 2005 01:20:12 -0400 (AST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 27 Dec 2005 21:20:12 -0800 Message-ID: Received: from 82.119.243.73 by by20fd.bay20.hotmail.msn.com with HTTP; Wed, 28 Dec 2005 05:20:11 GMT X-Originating-IP: [82.119.243.73] X-Originating-Email: [pavel.stehule@hotmail.com] X-Sender: pavel.stehule@hotmail.com In-Reply-To: <002801c60b5d$f6889c90$ec1010ac@aftabn463> From: "Pavel Stehule" To: aalam@tatashare.com, pgsql-hackers@postgresql.org Subject: Re: sending mail from Postgres Date: Wed, 28 Dec 2005 06:20:11 +0100 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 28 Dec 2005 05:20:12.0275 (UTC) FILETIME=[60AAC430:01C60B6E] X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=1.589 required=5 tests=[AWL=-0.330, DNS_FROM_RFC_ABUSE=0.479, DNS_FROM_RFC_POST=1.44, MSGID_FROM_MTA_HEADER=0] X-Spam-Score: 1.589 X-Spam-Level: * X-Archive-Number: 200512/1136 X-Sequence-Number: 77984 Hello, it depend on your possibilities. Simply, use PL/Perl or PL/sh. Regards Pavel Stehule or use PgSendMail http://sourceforge.net/project/showfiles.php?group_id=35804 > >Hi there, > >How can i send mail form postgresql. > >any suggestion. > >thanx & regards >aftab > >---------------------------(end of broadcast)--------------------------- >TIP 6: explain analyze is your friend _________________________________________________________________ Citite se osamele? Poznejte nekoho vyjmecneho diky Match.com. http://www.msn.cz/ From david@fetter.org Fri Jun 5 04:52:16 2026 X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id D6CBA9DC85F for ; Thu, 29 Dec 2005 00:53:18 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 25365-04 for ; Thu, 29 Dec 2005 00:53:17 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from fetter.org (dsl092-188-065.sfo1.dsl.speakeasy.net [66.92.188.65]) by postgresql.org (Postfix) with ESMTP id B312F9DC817 for ; Thu, 29 Dec 2005 00:53:16 -0400 (AST) Received: by fetter.org (Postfix, from userid 500) id B8B0CCEB21; Wed, 28 Dec 2005 20:53:15 -0800 (PST) Date: Wed, 28 Dec 2005 20:53:15 -0800 From: David Fetter To: Aftab Alam Cc: pgsql-hackers@postgresql.org Subject: Re: sending mail from Postgres Message-ID: <20051229045315.GB29910@fetter.org> References: <3617.1135712159@sss.pgh.pa.us> <002801c60b5d$f6889c90$ec1010ac@aftabn463> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <002801c60b5d$f6889c90$ec1010ac@aftabn463> User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.102 required=5 tests=[AWL=0.102] X-Spam-Score: 0.102 X-Spam-Level: X-Archive-Number: 200512/1161 X-Sequence-Number: 78009 On Wed, Dec 28, 2005 at 08:52:41AM +0530, Aftab Alam wrote: > Hi there, > > How can i send mail form postgresql. Generally, it is a better idea either to poll your PostgreSQL database and send mail based on that, or use LISTEN/NOTIFY, rather than directly sending mail from your database. Cheers, D -- David Fetter david@fetter.org http://fetter.org/ phone: +1 415 235 3778 Remember to vote! From simon@2ndquadrant.com Fri Jun 5 04:52:16 2026 X-Original-To: pgsql-docs-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 79F309DC865; Fri, 30 Dec 2005 09:35:36 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 56883-10; Fri, 30 Dec 2005 09:35:40 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- X-Greylist: from auto-whitelisted by SQLgrey- Received: from smtp.nildram.co.uk (smtp.nildram.co.uk [195.112.4.54]) by postgresql.org (Postfix) with ESMTP id 6FDD69DC94D; Fri, 30 Dec 2005 09:35:34 -0400 (AST) Received: from [192.168.0.3] (unknown [84.12.200.250]) by smtp.nildram.co.uk (Postfix) with ESMTP id D143C2687ED; Fri, 30 Dec 2005 13:35:35 +0000 (GMT) Subject: Re: [HACKERS] Online backup vs Continuous backup From: Simon Riggs To: Bruce Momjian Cc: Tom Lane , PostgreSQL-development , PostgreSQL-documentation In-Reply-To: <200512261846.jBQIkcN12733@candle.pha.pa.us> References: <200512261846.jBQIkcN12733@candle.pha.pa.us> Content-Type: text/plain Date: Fri, 30 Dec 2005 13:35:37 +0000 Message-Id: <1135949737.5052.21.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 (2.2.3-2.fc4) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.03 required=5 tests=[AWL=0.030] X-Spam-Score: 0.03 X-Spam-Level: X-Archive-Number: 200512/37 X-Sequence-Number: 3385 On Mon, 2005-12-26 at 13:46 -0500, Bruce Momjian wrote: > Tom Lane wrote: > > Bruce Momjian writes: > > > I suggest the following patch to rename our capability "Continuous > > > Backup". > > > > This doesn't seem like an improvement. "Online backup" is the standard > > terminology AFAIK. > > But why is it the standard terminology? It doesn't seem logical. Well, as Greg says its a physical backup that can be done on-line, so online backup makes perfect sense to me. I've never had somebody say "that makes no sense" before. Nomenclature is different everywhere, I accept. I generally describe it like this: Logical Backup - use pg_dump - must be done on-line Physical Backup All file copy only - must be Cold/Off-line backup All file copy + WAL archiving - allows Hot/Online or Cold/Offline backup People understand those terms... When do I mention PITR? Well, I describe this as Archive Recovery, with an option to go to end-of-logs, or to a point-in-time. [In the code, the mode variable is InArchiveRecovery.] I do think that saying "do you use PITR?" makes little sense. We should be talking about the backup mode, not the potential future recovery mode. I think it would all make more sense if we described the use of archive_command = something as being in "WAL Archive Mode". That would then allow us to say: "You can only take Online Backups while in WAL Archive Mode". "If you ever wish to perform PITR, you must use WAL Archive Mode". "If you backed-up in WAL Archive Mode, you can perform an Archive Recovery". Best Regards, Simon Riggs From rick@alpinenetworking.com Fri Jun 5 04:52:16 2026 X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 837C59DCA1E for ; Wed, 4 Jan 2006 03:20:38 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 51352-02 for ; Wed, 4 Jan 2006 03:20:38 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.leadership-solutions.net (unknown [64.90.195.136]) by postgresql.org (Postfix) with ESMTP id 027389DC9FA for ; Wed, 4 Jan 2006 03:20:35 -0400 (AST) Received: (qmail 32615 invoked by uid 1011); 4 Jan 2006 00:20:08 -0700 Received: from 67.107.200.55 by blackmamba.leadership-solutions.net (envelope-from , uid 1010) with qmail-scanner-1.24-st-qms (clamdscan: 0.80/609. spamassassin: 3.0.1. perlscan: 1.24-st-qms. Clear:RC:0(67.107.200.55):SA:0(-2.6/1.0):. Processed in 0.326027 secs); 04 Jan 2006 07:20:08 -0000 X-Antivirus-MYDOMAIN-Mail-From: rick@alpinenetworking.com via blackmamba.leadership-solutions.net X-Antivirus-MYDOMAIN: 1.24-st-qms (Clear:RC:0(67.107.200.55):SA:0(-2.6/1.0):. Processed in 0.326027 secs Process 32608) Received: from 67.107.200.55.ptr.us.xo.net (HELO ?192.168.0.90?) (rgigger%leadership-solutions.net@67.107.200.55) by mail.leadership-solutions.net with SMTP; 4 Jan 2006 00:20:07 -0700 In-Reply-To: <10947.1135622655@sss.pgh.pa.us> References: <200512261755.jBQHt5L21116@candle.pha.pa.us> <10947.1135622655@sss.pgh.pa.us> Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <84ED93C1-AE8A-4135-813A-6AC251CE5DD9@alpinenetworking.com> Cc: Bruce Momjian , PostgreSQL-development , PostgreSQL-documentation Content-Transfer-Encoding: 7bit From: Rick Gigger Subject: Re: [DOCS] Online backup vs Continuous backup Date: Wed, 4 Jan 2006 00:23:19 -0700 To: Tom Lane X-Mailer: Apple Mail (2.746.2) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200601/146 X-Sequence-Number: 78250 How about: use "Online backup" or "Hot backup" to refer to either method of back since they are both done while the system is online or hot. If you want to get specific refer to doing a "sql dump" etc for using pg_dump Then use "Incremental backup" to refer to the whole process of the WAL archival etc Refer to the actual log files themselves as transaction logs. That all seems to be pretty intuitive and non-ambiguous non-confusing to me. On Dec 26, 2005, at 11:44 AM, Tom Lane wrote: > Bruce Momjian writes: >> I suggest the following patch to rename our capability "Continuous >> Backup". > > This doesn't seem like an improvement. "Online backup" is the > standard > terminology AFAIK. > > regards, tom lane > > ---------------------------(end of > broadcast)--------------------------- > TIP 4: Have you searched our list archives? > > http://archives.postgresql.org > From rick@alpinenetworking.com Fri Jun 5 04:52:16 2026 X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 1EB089DC9D9 for ; Wed, 4 Jan 2006 03:39:21 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 51347-07 for ; Wed, 4 Jan 2006 03:39:20 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.leadership-solutions.net (unknown [64.90.195.136]) by postgresql.org (Postfix) with ESMTP id 189EF9DC814 for ; Wed, 4 Jan 2006 03:39:16 -0400 (AST) Received: (qmail 8122 invoked by uid 1011); 4 Jan 2006 00:38:50 -0700 Received: from 67.107.200.55 by blackmamba.leadership-solutions.net (envelope-from , uid 1010) with qmail-scanner-1.24-st-qms (clamdscan: 0.80/609. spamassassin: 3.0.1. perlscan: 1.24-st-qms. Clear:RC:0(67.107.200.55):SA:0(-2.6/1.0):. Processed in 0.441212 secs); 04 Jan 2006 07:38:50 -0000 X-Antivirus-MYDOMAIN-Mail-From: rick@alpinenetworking.com via blackmamba.leadership-solutions.net X-Antivirus-MYDOMAIN: 1.24-st-qms (Clear:RC:0(67.107.200.55):SA:0(-2.6/1.0):. Processed in 0.441212 secs Process 8075) Received: from 67.107.200.55.ptr.us.xo.net (HELO ?192.168.0.90?) (rgigger%leadership-solutions.net@67.107.200.55) by mail.leadership-solutions.net with SMTP; 4 Jan 2006 00:38:50 -0700 In-Reply-To: <1135949737.5052.21.camel@localhost.localdomain> References: <200512261846.jBQIkcN12733@candle.pha.pa.us> <1135949737.5052.21.camel@localhost.localdomain> Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <668D22FC-25AD-44E9-B68E-2BD3D2A99AC1@alpinenetworking.com> Cc: Bruce Momjian , Tom Lane , PostgreSQL-development , PostgreSQL-documentation Content-Transfer-Encoding: 7bit From: Rick Gigger Subject: Re: [DOCS] Online backup vs Continuous backup Date: Wed, 4 Jan 2006 00:42:01 -0700 To: Simon Riggs X-Mailer: Apple Mail (2.746.2) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.02 required=5 tests=[AWL=0.020] X-Spam-Score: 0.02 X-Spam-Level: X-Archive-Number: 200601/147 X-Sequence-Number: 78251 > I think it would all make more sense if we described the use of > archive_command = something as being in "WAL Archive Mode". That would > then allow us to say: > "You can only take Online Backups while in WAL Archive Mode". > "If you ever wish to perform PITR, you must use WAL Archive Mode". > "If you backed-up in WAL Archive Mode, you can perform an Archive > Recovery". It seems to me there are two different context in which one would be making statements like this. And what we are "allowed to say" depends greatly on context. These contexts are as follows: 1) Explaining the feature set of postgres to a potential user. 2) Explaining to an actual postgres user how to actually do something. In the first case it makes the most sense to me to use industry standard or very intuitive terminology to the extend that it exists. ie (Transaction Logs vs. WAL). Incremental Backup and Point in Time Recovery seem to be fairly commonly used and understood database buzzwords for someone to investigate the feature set of an RDBMS. In the second case it seems to me that the most important thing is that you pick terminology that is consistent, unambiguous and clearly defined. Log archival, PITR, etc are not point and click operations like they are in say MS SQL Server. This gives us more flexibility but it also requires a deeper understanding. If someone is unwilling or unable to to learn whatever terminology you happen to come up with then it seems to me they shouldn't even be attempting to set up one of those features. At the same time if the terminology you uses changes all the time (is not consistent), or if you can't figure out what any of the terms mean (they are not clearly defined) or if you use terms like "online backup" to mean both types of backup but then use it once in a specific circumstance where only one usage is appropriate (you are using the terms ambiguously) then users will be confused and it will be your fault not theirs. Just my 2 cents Rick Gigger From pgman@candle.pha.pa.us Fri Jun 5 04:52:16 2026 X-Original-To: pgsql-docs-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 50F649DC84D; Tue, 14 Feb 2006 00:03:09 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 08813-04; Tue, 14 Feb 2006 00:03:07 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- X-Greylist: from auto-whitelisted by SQLgrey- Received: from candle.pha.pa.us (candle.pha.pa.us [70.90.9.53]) by postgresql.org (Postfix) with ESMTP id 1CAB19DC805; Tue, 14 Feb 2006 00:03:05 -0400 (AST) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id k1E433D11802; Mon, 13 Feb 2006 23:03:03 -0500 (EST) From: Bruce Momjian Message-Id: <200602140403.k1E433D11802@candle.pha.pa.us> Subject: Re: [HACKERS] Online backup vs Continuous backup In-Reply-To: <84ED93C1-AE8A-4135-813A-6AC251CE5DD9@alpinenetworking.com> To: Rick Gigger Date: Mon, 13 Feb 2006 23:03:03 -0500 (EST) CC: Tom Lane , PostgreSQL-development , PostgreSQL-documentation X-Mailer: ELM [version 2.4ME+ PL121 (25)] MIME-Version: 1.0 Content-Type: multipart/mixed; boundary=ELM1139889783-14899-1_ Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.122 required=5 tests=[AWL=0.122] X-Spam-Score: 0.122 X-Spam-Level: X-Archive-Number: 200602/8 X-Sequence-Number: 3448 --ELM1139889783-14899-1_ Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII I used your suggestion and renamed "online backup" to "incremental backup", and added a mention that many database vendors call it "online backup". Patch attached. --------------------------------------------------------------------------- Rick Gigger wrote: > How about: > > use "Online backup" or "Hot backup" to refer to either method of back > since they are both done while the system is online or hot. > > If you want to get specific refer to doing a "sql dump" etc for using > pg_dump > Then use "Incremental backup" to refer to the whole process of the > WAL archival etc > Refer to the actual log files themselves as transaction logs. > > That all seems to be pretty intuitive and non-ambiguous non-confusing > to me. > > On Dec 26, 2005, at 11:44 AM, Tom Lane wrote: > > > Bruce Momjian writes: > >> I suggest the following patch to rename our capability "Continuous > >> Backup". > > > > This doesn't seem like an improvement. "Online backup" is the > > standard > > terminology AFAIK. > > > > regards, tom lane > > > > ---------------------------(end of > > broadcast)--------------------------- > > TIP 4: Have you searched our list archives? > > > > http://archives.postgresql.org > > > > > ---------------------------(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 > -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073 --ELM1139889783-14899-1_ Content-Transfer-Encoding: 7bit Content-Type: text/plain Content-Disposition: inline; filename="/pgpatches/backup" Index: doc/src/sgml/backup.sgml =================================================================== RCS file: /cvsroot/pgsql/doc/src/sgml/backup.sgml,v retrieving revision 2.76 diff -c -c -r2.76 backup.sgml *** doc/src/sgml/backup.sgml 7 Nov 2005 17:36:44 -0000 2.76 --- doc/src/sgml/backup.sgml 14 Feb 2006 04:00:50 -0000 *************** *** 19,25 **** SQL dump File system level backup ! On-line backup Each has its own strengths and weaknesses.
--- 19,25 ---- SQL dump File system level backup ! Incremental backup Each has its own strengths and weaknesses.
*************** *** 372,382 ****
! ! On-line backup and point-in-time recovery (PITR) ! on-line backup --- 372,382 ---- ! ! Incremental backup and point-in-time recovery (PITR) ! incremental backup *************** *** 452,458 **** ! To recover successfully using an on-line backup, you need a continuous sequence of archived WAL files that extends back at least as far as the start time of your backup. So to get started, you should set up and test your procedure for archiving WAL files before you take your --- 452,459 ---- ! To recover successfully using an incremental backup (also called "online ! backup" by many database vendors), you need a continuous sequence of archived WAL files that extends back at least as far as the start time of your backup. So to get started, you should set up and test your procedure for archiving WAL files before you take your *************** *** 782,793 **** pg_start_backup or pg_stop_backup, and you will therefore be left to your own devices to keep track of which backup dump is which and how far back the associated WAL files go. ! It is generally better to follow the on-line backup procedure above. ! Recovering with an On-line Backup Okay, the worst has happened and you need to recover from your backup. --- 783,794 ---- pg_start_backup or pg_stop_backup, and you will therefore be left to your own devices to keep track of which backup dump is which and how far back the associated WAL files go. ! It is generally better to follow the incremental backup procedure above. ! Recovering with an Incremental Backup Okay, the worst has happened and you need to recover from your backup. *************** *** 1119,1129 **** ! Caveats ! At this writing, there are several limitations of the on-line backup technique. These will probably be fixed in future releases: --- 1120,1130 ---- ! Caveats ! At this writing, there are several limitations of the incremental backup technique. These will probably be fixed in future releases: Index: doc/src/sgml/config.sgml =================================================================== RCS file: /cvsroot/pgsql/doc/src/sgml/config.sgml,v retrieving revision 1.47 diff -c -c -r1.47 config.sgml *** doc/src/sgml/config.sgml 5 Feb 2006 18:19:14 -0000 1.47 --- doc/src/sgml/config.sgml 14 Feb 2006 04:00:53 -0000 *************** *** 1387,1393 **** Turning off this parameter does not affect use of WAL archiving for point-in-time recovery (PITR) ! (see ). --- 1387,1393 ---- Turning off this parameter does not affect use of WAL archiving for point-in-time recovery (PITR) ! (see ). Index: doc/src/sgml/func.sgml =================================================================== RCS file: /cvsroot/pgsql/doc/src/sgml/func.sgml,v retrieving revision 1.306 diff -c -c -r1.306 func.sgml *** doc/src/sgml/func.sgml 12 Feb 2006 04:44:15 -0000 1.306 --- doc/src/sgml/func.sgml 14 Feb 2006 04:00:59 -0000 *************** *** 9784,9790 **** For details about proper usage of these functions, see ! . --- 9784,9790 ---- For details about proper usage of these functions, see ! . Index: doc/src/sgml/wal.sgml =================================================================== RCS file: /cvsroot/pgsql/doc/src/sgml/wal.sgml,v retrieving revision 1.38 diff -c -c -r1.38 wal.sgml *** doc/src/sgml/wal.sgml 4 Nov 2005 23:14:02 -0000 1.38 --- doc/src/sgml/wal.sgml 14 Feb 2006 04:01:00 -0000 *************** *** 136,142 **** WAL also makes it possible to support on-line backup and point-in-time recovery, as described in . By archiving the WAL data we can support reverting to any time instant covered by the available WAL data: we simply install a prior physical backup of the database, and replay the WAL log just as far as the desired time. What's more, --- 136,142 ---- WAL also makes it possible to support on-line backup and point-in-time recovery, as described in . By archiving the WAL data we can support reverting to any time instant covered by the available WAL data: we simply install a prior physical backup of the database, and replay the WAL log just as far as the desired time. What's more, --ELM1139889783-14899-1_-- From peter_e@gmx.net Fri Jun 5 04:52:16 2026 X-Original-To: pgsql-docs-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id BEA209DCAE5 for ; Tue, 14 Feb 2006 02:22:26 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 32341-05 for ; Tue, 14 Feb 2006 02:22:22 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from mail.gmx.net (mail.gmx.de [213.165.64.21]) by postgresql.org (Postfix) with SMTP id 80B639DC8A2 for ; Tue, 14 Feb 2006 02:22:20 -0400 (AST) Received: (qmail invoked by alias); 14 Feb 2006 06:22:17 -0000 Received: from dslb-084-063-000-219.pools.arcor-ip.net (EHLO colt.pezone.net) [84.63.0.219] by mail.gmx.net (mp004) with SMTP; 14 Feb 2006 07:22:17 +0100 X-Authenticated: #495269 From: Peter Eisentraut To: pgsql-docs@postgresql.org Subject: Re: [HACKERS] Online backup vs Continuous backup Date: Tue, 14 Feb 2006 07:22:13 +0100 User-Agent: KMail/1.8.3 Cc: Bruce Momjian , Rick Gigger , Tom Lane , PostgreSQL-development References: <200602140403.k1E433D11802@candle.pha.pa.us> In-Reply-To: <200602140403.k1E433D11802@candle.pha.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200602140722.15168.peter_e@gmx.net> X-Y-GMX-Trusted: 0 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.123 required=5 tests=[AWL=0.123] X-Spam-Score: 0.123 X-Spam-Level: X-Archive-Number: 200602/9 X-Sequence-Number: 3449 Bruce Momjian wrote: > I used your suggestion and renamed "online backup" to "incremental > backup", and added a mention that many database vendors call it > "online backup". Consistency would then demand that the other two be renamed to "full backup". I think we had better suggestions earlier. -- Peter Eisentraut http://developer.postgresql.org/~petere/ From pgman@candle.pha.pa.us Fri Jun 5 04:52:16 2026 X-Original-To: pgsql-docs-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 14A739DCD7C; Thu, 2 Mar 2006 15:16:26 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 42926-10; Thu, 2 Mar 2006 15:16:25 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- X-Greylist: from auto-whitelisted by SQLgrey- Received: from candle.pha.pa.us (candle.pha.pa.us [70.90.9.53]) by postgresql.org (Postfix) with ESMTP id B0D319DCBD3; Thu, 2 Mar 2006 15:16:22 -0400 (AST) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id k22JGNB17498; Thu, 2 Mar 2006 14:16:23 -0500 (EST) From: Bruce Momjian Message-Id: <200603021916.k22JGNB17498@candle.pha.pa.us> Subject: Re: [HACKERS] Online backup vs Continuous backup In-Reply-To: <200602140722.15168.peter_e@gmx.net> To: Peter Eisentraut Date: Thu, 2 Mar 2006 14:16:23 -0500 (EST) CC: pgsql-docs@postgresql.org, Rick Gigger , Tom Lane , PostgreSQL-patches X-Mailer: ELM [version 2.4ME+ PL121 (25)] MIME-Version: 1.0 Content-Type: multipart/mixed; boundary=ELM1141326983-6700-0_ Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.419 required=5 tests=[AWL=-0.081, RAZOR2_CHECK=0.5] X-Spam-Score: 0.419 X-Spam-Level: X-Archive-Number: 200603/3 X-Sequence-Number: 3460 --ELM1141326983-6700-0_ Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Peter Eisentraut wrote: > Bruce Momjian wrote: > > I used your suggestion and renamed "online backup" to "incremental > > backup", and added a mention that many database vendors call it > > "online backup". > > Consistency would then demand that the other two be renamed to "full > backup". I think we had better suggestions earlier. I am also now thinking the word "incremental" is wrong because it implies something that happens in parts, like "backup everything that changed from last night until now" which not how this feature works. I am thinking "Continuous Archiving" is the proper wording, and it avoids the "backup" word. Updated patch attached. -- Bruce Momjian http://candle.pha.pa.us SRA OSS, Inc. http://www.sraoss.com + If your life is a hard drive, Christ can be your backup. + --ELM1141326983-6700-0_ Content-Transfer-Encoding: 7bit Content-Type: text/plain Content-Disposition: inline; filename="/pgpatches/backup" Index: doc/src/sgml/backup.sgml =================================================================== RCS file: /cvsroot/pgsql/doc/src/sgml/backup.sgml,v retrieving revision 2.76 diff -c -c -r2.76 backup.sgml *** doc/src/sgml/backup.sgml 7 Nov 2005 17:36:44 -0000 2.76 --- doc/src/sgml/backup.sgml 14 Feb 2006 04:00:50 -0000 *************** *** 19,25 **** SQL dump File system level backup ! On-line backup Each has its own strengths and weaknesses. --- 19,25 ---- SQL dump File system level backup ! Continuous Archiving Each has its own strengths and weaknesses. *************** *** 372,382 **** ! ! On-line backup and point-in-time recovery (PITR) ! on-line backup --- 372,382 ---- ! ! Continuous Archiving and Point-In-Time Recovery (PITR) ! continuous archiving *************** *** 452,458 **** ! To recover successfully using an on-line backup, you need a continuous sequence of archived WAL files that extends back at least as far as the start time of your backup. So to get started, you should set up and test your procedure for archiving WAL files before you take your --- 452,459 ---- ! To recover successfully using continuous archiving (also called "online ! backup" by many database vendors), you need a continuous sequence of archived WAL files that extends back at least as far as the start time of your backup. So to get started, you should set up and test your procedure for archiving WAL files before you take your *************** *** 782,793 **** pg_start_backup or pg_stop_backup, and you will therefore be left to your own devices to keep track of which backup dump is which and how far back the associated WAL files go. ! It is generally better to follow the on-line backup procedure above. ! Recovering with an On-line Backup Okay, the worst has happened and you need to recover from your backup. --- 783,794 ---- pg_start_backup or pg_stop_backup, and you will therefore be left to your own devices to keep track of which backup dump is which and how far back the associated WAL files go. ! It is generally better to follow the continuous archiving procedure above. ! Recovering using a Continuous Archive Backup Okay, the worst has happened and you need to recover from your backup. *************** *** 1119,1129 **** ! Caveats ! At this writing, there are several limitations of the on-line backup technique. These will probably be fixed in future releases: --- 1120,1130 ---- ! Caveats ! At this writing, there are several limitations of the continuous archiving technique. These will probably be fixed in future releases: Index: doc/src/sgml/config.sgml =================================================================== RCS file: /cvsroot/pgsql/doc/src/sgml/config.sgml,v retrieving revision 1.47 diff -c -c -r1.47 config.sgml *** doc/src/sgml/config.sgml 5 Feb 2006 18:19:14 -0000 1.47 --- doc/src/sgml/config.sgml 14 Feb 2006 04:00:53 -0000 *************** *** 1387,1393 **** Turning off this parameter does not affect use of WAL archiving for point-in-time recovery (PITR) ! (see ). --- 1387,1393 ---- Turning off this parameter does not affect use of WAL archiving for point-in-time recovery (PITR) ! (see ). Index: doc/src/sgml/func.sgml =================================================================== RCS file: /cvsroot/pgsql/doc/src/sgml/func.sgml,v retrieving revision 1.306 diff -c -c -r1.306 func.sgml *** doc/src/sgml/func.sgml 12 Feb 2006 04:44:15 -0000 1.306 --- doc/src/sgml/func.sgml 14 Feb 2006 04:00:59 -0000 *************** *** 9784,9790 **** For details about proper usage of these functions, see ! . --- 9784,9790 ---- For details about proper usage of these functions, see ! . Index: doc/src/sgml/wal.sgml =================================================================== RCS file: /cvsroot/pgsql/doc/src/sgml/wal.sgml,v retrieving revision 1.38 diff -c -c -r1.38 wal.sgml *** doc/src/sgml/wal.sgml 4 Nov 2005 23:14:02 -0000 1.38 --- doc/src/sgml/wal.sgml 14 Feb 2006 04:01:00 -0000 *************** *** 136,142 **** WAL also makes it possible to support on-line backup and point-in-time recovery, as described in . By archiving the WAL data we can support reverting to any time instant covered by the available WAL data: we simply install a prior physical backup of the database, and replay the WAL log just as far as the desired time. What's more, --- 136,142 ---- WAL also makes it possible to support on-line backup and point-in-time recovery, as described in . By archiving the WAL data we can support reverting to any time instant covered by the available WAL data: we simply install a prior physical backup of the database, and replay the WAL log just as far as the desired time. What's more, --ELM1141326983-6700-0_-- From pgman@candle.pha.pa.us Fri Jun 5 04:52:16 2026 X-Original-To: pgsql-docs-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id D12EA9DC854; Thu, 2 Mar 2006 15:29:52 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 47589-02; Thu, 2 Mar 2006 15:29:52 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- X-Greylist: from auto-whitelisted by SQLgrey- Received: from candle.pha.pa.us (candle.pha.pa.us [70.90.9.53]) by postgresql.org (Postfix) with ESMTP id 1EB129DCBD3; Thu, 2 Mar 2006 15:29:49 -0400 (AST) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id k22JToC19808; Thu, 2 Mar 2006 14:29:50 -0500 (EST) From: Bruce Momjian Message-Id: <200603021929.k22JToC19808@candle.pha.pa.us> Subject: Re: [HACKERS] Online backup vs Continuous backup In-Reply-To: <3617.1135712159@sss.pgh.pa.us> To: Tom Lane Date: Thu, 2 Mar 2006 14:29:50 -0500 (EST) CC: Peter Eisentraut , pgsql-hackers@postgresql.org, Heikki Linnakangas , "Joshua D. Drake" , PostgreSQL-documentation X-Mailer: ELM [version 2.4ME+ PL121 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.419 required=5 tests=[AWL=-0.081, RAZOR2_CHECK=0.5] X-Spam-Score: 0.419 X-Spam-Level: X-Archive-Number: 200603/4 X-Sequence-Number: 3461 Tom Lane wrote: > Bruce Momjian writes: > >> This addresses the technical workings of the various backup systems. > >> The fact that it is or isn't on-line, hot, continuous, fast, or flexible > >> is secondary. > > > To me, the continuous activity is the significant feature of that backup > > method. I chose "Continuous Backup" because it is the continual > > activity that is significant. "Continuous Archiving"? > > I like Peter's suggestion as-is; or "WAL Archiving". I don't like > applying adjectives that are not specific to the particular method. > That will just create more confusion down the road if we add another > feature that could also be called "continuous archiving". I do like "WAL Archiving" but I am concerned that it references a specific internal implementation detail (WAL). Is that OK? Also, I am concerned that is specificially talks about archiving the wal files and is not general enough to include the file system backup that is also necessary. -- Bruce Momjian http://candle.pha.pa.us SRA OSS, Inc. http://www.sraoss.com + If your life is a hard drive, Christ can be your backup. + From pgman@candle.pha.pa.us Fri Jun 5 04:52:16 2026 X-Original-To: pgsql-docs-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 50EEE9DC9C8; Fri, 3 Mar 2006 18:02:07 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 62432-09; Fri, 3 Mar 2006 18:02:08 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- X-Greylist: from auto-whitelisted by SQLgrey- Received: from candle.pha.pa.us (candle.pha.pa.us [70.90.9.53]) by postgresql.org (Postfix) with ESMTP id 6C1479DC83F; Fri, 3 Mar 2006 18:02:04 -0400 (AST) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id k23M20u11997; Fri, 3 Mar 2006 17:02:00 -0500 (EST) From: Bruce Momjian Message-Id: <200603032202.k23M20u11997@candle.pha.pa.us> Subject: Re: [PATCHES] [HACKERS] Online backup vs Continuous backup In-Reply-To: <200603021916.k22JGNB17498@candle.pha.pa.us> To: Bruce Momjian Date: Fri, 3 Mar 2006 17:02:00 -0500 (EST) CC: Peter Eisentraut , pgsql-docs@postgresql.org, Rick Gigger , Tom Lane , PostgreSQL-patches X-Mailer: ELM [version 2.4ME+ PL121 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.431 required=5 tests=[AWL=-0.069, RAZOR2_CHECK=0.5] X-Spam-Score: 0.431 X-Spam-Level: X-Archive-Number: 200603/6 X-Sequence-Number: 3463 Applied. --------------------------------------------------------------------------- Bruce Momjian wrote: > Peter Eisentraut wrote: > > Bruce Momjian wrote: > > > I used your suggestion and renamed "online backup" to "incremental > > > backup", and added a mention that many database vendors call it > > > "online backup". > > > > Consistency would then demand that the other two be renamed to "full > > backup". I think we had better suggestions earlier. > > I am also now thinking the word "incremental" is wrong because it > implies something that happens in parts, like "backup everything that > changed from last night until now" which not how this feature works. > > I am thinking "Continuous Archiving" is the proper wording, and it > avoids the "backup" word. > > Updated patch attached. > > -- > Bruce Momjian http://candle.pha.pa.us > SRA OSS, Inc. http://www.sraoss.com > > + If your life is a hard drive, Christ can be your backup. + > Index: doc/src/sgml/backup.sgml > =================================================================== > RCS file: /cvsroot/pgsql/doc/src/sgml/backup.sgml,v > retrieving revision 2.76 > diff -c -c -r2.76 backup.sgml > *** doc/src/sgml/backup.sgml 7 Nov 2005 17:36:44 -0000 2.76 > --- doc/src/sgml/backup.sgml 14 Feb 2006 04:00:50 -0000 > *************** > *** 19,25 **** > > SQL dump > File system level backup > ! On-line backup > > Each has its own strengths and weaknesses. > > --- 19,25 ---- > > SQL dump > File system level backup > ! Continuous Archiving > > Each has its own strengths and weaknesses. > > *************** > *** 372,382 **** > > > > ! > ! On-line backup and point-in-time recovery (PITR) > > > ! on-line backup > > > > --- 372,382 ---- > > > > ! > ! Continuous Archiving and Point-In-Time Recovery (PITR) > > > ! continuous archiving > > > > *************** > *** 452,458 **** > > > > ! To recover successfully using an on-line backup, you need a continuous > sequence of archived WAL files that extends back at least as far as the > start time of your backup. So to get started, you should set up and test > your procedure for archiving WAL files before you take your > --- 452,459 ---- > > > > ! To recover successfully using continuous archiving (also called "online > ! backup" by many database vendors), you need a continuous > sequence of archived WAL files that extends back at least as far as the > start time of your backup. So to get started, you should set up and test > your procedure for archiving WAL files before you take your > *************** > *** 782,793 **** > pg_start_backup or pg_stop_backup, and > you will therefore be left to your own devices to keep track of which > backup dump is which and how far back the associated WAL files go. > ! It is generally better to follow the on-line backup procedure above. > > > > > ! Recovering with an On-line Backup > > > Okay, the worst has happened and you need to recover from your backup. > --- 783,794 ---- > pg_start_backup or pg_stop_backup, and > you will therefore be left to your own devices to keep track of which > backup dump is which and how far back the associated WAL files go. > ! It is generally better to follow the continuous archiving procedure above. > > > > > ! Recovering using a Continuous Archive Backup > > > Okay, the worst has happened and you need to recover from your backup. > *************** > *** 1119,1129 **** > > > > ! > Caveats > > > ! At this writing, there are several limitations of the on-line backup > technique. These will probably be fixed in future releases: > > > --- 1120,1130 ---- > > > > ! > Caveats > > > ! At this writing, there are several limitations of the continuous archiving > technique. These will probably be fixed in future releases: > > > Index: doc/src/sgml/config.sgml > =================================================================== > RCS file: /cvsroot/pgsql/doc/src/sgml/config.sgml,v > retrieving revision 1.47 > diff -c -c -r1.47 config.sgml > *** doc/src/sgml/config.sgml 5 Feb 2006 18:19:14 -0000 1.47 > --- doc/src/sgml/config.sgml 14 Feb 2006 04:00:53 -0000 > *************** > *** 1387,1393 **** > > Turning off this parameter does not affect use of > WAL archiving for point-in-time recovery (PITR) > ! (see ). > > > > --- 1387,1393 ---- > > Turning off this parameter does not affect use of > WAL archiving for point-in-time recovery (PITR) > ! (see ). > > > > Index: doc/src/sgml/func.sgml > =================================================================== > RCS file: /cvsroot/pgsql/doc/src/sgml/func.sgml,v > retrieving revision 1.306 > diff -c -c -r1.306 func.sgml > *** doc/src/sgml/func.sgml 12 Feb 2006 04:44:15 -0000 1.306 > --- doc/src/sgml/func.sgml 14 Feb 2006 04:00:59 -0000 > *************** > *** 9784,9790 **** > > > For details about proper usage of these functions, see > ! . > > > > --- 9784,9790 ---- > > > For details about proper usage of these functions, see > ! . > > > > Index: doc/src/sgml/wal.sgml > =================================================================== > RCS file: /cvsroot/pgsql/doc/src/sgml/wal.sgml,v > retrieving revision 1.38 > diff -c -c -r1.38 wal.sgml > *** doc/src/sgml/wal.sgml 4 Nov 2005 23:14:02 -0000 1.38 > --- doc/src/sgml/wal.sgml 14 Feb 2006 04:01:00 -0000 > *************** > *** 136,142 **** > > WAL also makes it possible to support on-line > backup and point-in-time recovery, as described in ! linkend="backup-online">. By archiving the WAL data we can support > reverting to any time instant covered by the available WAL data: > we simply install a prior physical backup of the database, and > replay the WAL log just as far as the desired time. What's more, > --- 136,142 ---- > > WAL also makes it possible to support on-line > backup and point-in-time recovery, as described in ! linkend="continuous-archiving">. By archiving the WAL data we can support > reverting to any time instant covered by the available WAL data: > we simply install a prior physical backup of the database, and > replay the WAL log just as far as the desired time. What's more, > > ---------------------------(end of broadcast)--------------------------- > TIP 3: Have you checked our extensive FAQ? > > http://www.postgresql.org/docs/faq -- Bruce Momjian http://candle.pha.pa.us SRA OSS, Inc. http://www.sraoss.com + If your life is a hard drive, Christ can be your backup. +