Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fVFMs-0006XE-OK for pgsql-general@arkaria.postgresql.org; Tue, 19 Jun 2018 12:04:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fVFMq-0004um-Rp for pgsql-general@arkaria.postgresql.org; Tue, 19 Jun 2018 12:04:12 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fVFMq-0004uc-B6 for pgsql-general@lists.postgresql.org; Tue, 19 Jun 2018 12:04:12 +0000 Received: from sonic305-20.consmr.mail.gq1.yahoo.com ([98.137.64.83]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fVFMh-0008MT-KC for pgsql-general@lists.postgresql.org; Tue, 19 Jun 2018 12:04:11 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1529409840; bh=ZHvgrEcpJNnAtoX5e79jL4JGk+NwdijHYDCtH+RaRgc=; h=Date:From:To:In-Reply-To:References:Subject:From:Subject; b=Xgog/i0xGrtTYZtphvBRZHps5cBNxLPd6hIFsKY+hErAOpAlA0DFQrDgUDDNKHkCZIYnklQkOQ32VACduhVOwNxhICjF0bVVVEZO6zVeUjlpwnOGFU8gPrSZixxholTCnP1GtRk3zFkdvXfoIMHbKKUTyQnjURQxJD0WjU2OPDyZkRVxXGKA+kazoheXmZIq5UVFcetTe+rM2wsZZYLH7EZTFmonxKUojBW7MA5UnFudEzGY7Z+Lt4rtG+1GB2p1vtu01zm3j1Qxs3UVfdkMYUzVcBs5FVeSIq4aiqVsmwKwGeYYkZZgTDEkzPwxl8i0dZCKieswp68WCPfGystkLw== X-YMail-OSG: TexXPaYVM1kOy0J0Ahsl1BPYqkJwakSlbP3Das8wUQnZ_hB0g2u7KzK2gFKUf3y U_f6Qu9PYlszrcwqlDs6lLDgTNhd_vdNJUOkJ6oZYqWAATo5JRkD0sHkY8au.a7NADhi0f2OKgnW hbQTOmpUAe8ZbsST1xt3niWfGRciVVFfsTkuiUNlHmTeZ880tCdNHiHDLekQn8uNXtIt3dMmqbrn s6KOhYmDJzS2oAvT4Nizf2prZjydV.QekMJ27xK.CBjMDTsyVuN2swY5A4n.J51IzCYXy_vgcRRb pU6wHZXseUXPgt8B0yI0h9TbahBvNHrQ1NMnzFKtD2a1hZ0QRVuKFpyYystviKeuU2gGhyQTAAnu v7wEvk0F0_tEKQ8tMROJGVj_CNTB3WXG0_II9yDOHxMfRiaMNJ26drJas3nt8R_AW_xxVbMgBR2b OWdeTGAQGPlZwHv.CCzXIpSnU7RqNDQCRLeXHcF1o_7_rjDhVptyl9VzGjasQGNSMOiAvHuDSMXu 6VFzcPHQEoByAaN.ObFjuRdeGdtK4e.f0TUACG3EUfLj_0QBbp0H8P.1v_ksz51u8KNqhGDwtb1A Zk54Kf2JzwJ2s5DXkFk5MAZLwpoVnCtXfOUJcilbox9hhhQpCMEJeU7zeP49xpRtlLLDYe1Hz7tV cjP45a3UWBHgGTY6IHF4Xyn.pgd4C.N.ECYwvT6uG7NzB5s93BsG5oDxccR8Ca0PlO6P7LxOLVLz lEsLKzkONFmj_VWR046gvk3m693YH6gGxVG68njyirsrt5.ISp8_Zbu3d.TtlEhYNnPCMTi9vBpb q98HWLe9cB.qkbMFxSvHiUBDW6PPSzbXCBQPB4pckkSXn_mlLgRHMDvkkvQpMKF1V.vFf3MGp2Hd 10P.07drI0wUjbFPPkzy_o2wYsU4lLuHu98o6EA_H Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.gq1.yahoo.com with HTTP; Tue, 19 Jun 2018 12:04:00 +0000 Date: Tue, 19 Jun 2018 12:03:58 +0000 (UTC) From: Pierre Timmermans To: pgsql-general@lists.postgresql.org Message-ID: <202988089.1841507.1529409838414@mail.yahoo.com> In-Reply-To: <5d37a105-501f-5718-0e70-9a64978d5547@gmail.com> References: <540f4e66-24c0-507d-9610-8c0f1205798b@aklaver.com> <5d37a105-501f-5718-0e70-9a64978d5547@gmail.com> Subject: using pg_basebackup for point in time recovery MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1841506_1521057269.1529409838412" X-Mailer: WebService/1.1.11988 YMailNorrin Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36 Content-Length: 10627 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ------=_Part_1841506_1521057269.1529409838412 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi,I find the documentation about pg_basebackup misleading : the documentat= ion states that standalone hot backups cannot be used for point in time rec= overy, however I don't get the point : if one has a combination of the nigh= tly pg_basebackup and the archived wals, then it is totally OK to do point = in time I assume ? (of course the recovery.conf must be manually changed to= set the restore_command and the recovery target time)=C2=A0Here is the doc= , the sentence that I find misleading is "There are backups that cannot be = used for point-in-time recovery", also mentioning that they are faster than= pg_dumps add to confusion (since pg_dumps cannot be used for PITR)Doc:=C2= =A0https://www.postgresql.org/docs/current/static/continuous-archiving.html It is possible to use=C2=A0PostgreSQL's backup facilities to produce standa= lone hot backups. These are backups that cannot be used for point-in-time r= ecovery, yet are typically much faster to backup and restore than=C2=A0pg_d= ump=C2=A0dumps. (They are also much larger than=C2=A0pg_dump=C2=A0dumps, so= in some cases the speed advantage might be negated.) As with base backups, the easiest way to produce a standalone hot backup is= to use the=C2=A0pg_basebackup=C2=A0tool. If you include the=C2=A0-X=C2=A0p= arameter when calling it, all the write-ahead log required to use the backu= p will be included in the backup automatically, and no special action is re= quired to restore the backup. Thanks and regards, Pierre=20 On Tuesday, June 19, 2018, 1:38:40 PM GMT+2, Ron wrote: =20 =20 On 06/15/2018 11:26 AM, Data Ace wrote: =20 =20 Well I think my question is somewhat away from my intention cause of my poo= r understanding and questioning :(=C2=A0 =20 =C2=A0 =20 Actually, I have 1TB data and have hardware spec enough to handle this amou= nt of data, but the problem is that it needs too many join operations and t= he analysis process is going too slow right now. =20 =C2=A0 =20 I've searched and found that graph model nicely fits for network data like = social data in query performance. =20 =20 If your data is hierarchal, then storing it in a network database is perfe= ctly reasonable.=C2=A0 I'm not sure, though, that there are many network da= tabases for Linux.=C2=A0 Raima is the only one I can think of. =20 =20 =20 =20 =C2=A0Should I change my DB (I mean my DB for analysis)? or do I need some = other solutions or any extension? =20 =20 =20 Thanks =20 =20 --=20 Angular momentum makes the world go 'round. =20 ------=_Part_1841506_1521057269.1529409838412 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,
I find the documentation about pg_basebac= kup misleading : the documentation states that standalone hot backups canno= t be used for point in time recovery, however I don't get the point : if on= e has a combination of the nightly pg_basebackup and the archived wals, the= n it is totally OK to do point in time I assume ? (of course the recovery.c= onf must be manually changed to set the restore_command and the recovery ta= rget time) 
Here is the doc, the sentence that I find misleading is "There are backups= that cannot be used for point-in-time recovery", also mentioning that they= are faster than pg_dumps add to confusion (since pg_dumps cannot be used f= or PITR)

It is possible to use PostgreSQL's backup facilities to produce standalone hot= backups. These are backups that cannot be used for point-in-time recovery,= yet are typically much faster to backup and restore than pg_dump dumps. (They are also much = larger than pg_dump = ;dumps, so in some cases the speed advantage might be negated.)

As with base backups, the eas= iest way to produce a standalone hot backup is to use the pg_basebackup tool. If= you include the -X parameter when calling it, all the write-ahead log= required to use the backup will be included in the backup automatically, a= nd no special action is required to restore the backup.

Thanks and = regards,


Pierre


=20
=20
On Tuesday, June 19, 2018, 1:38:40 PM GMT+2, Ron <ro= nljohnsonjr@gmail.com> wrote:


On 06/15/2018 11:26 AM, Data Ace wrote:

Well I think my question is somewhat away from my intention cause of my poor understanding and questioning :( <= /span>

 

Actually, I have 1TB data and have hardware spec enough to handle this amount of data, but the problem is that it needs too many join operations and the analysis process is going too slow right now.

 

I've searched and found that graph model nicely fits for network data like social data in query performance.


If your data is hierarchal, then storing it in a network database is perfectly reasonable.  I'm not sure, though, that there are many network databases for Linux.  Raima is the only one I can think of= .


 Should I change my DB (I mean my DB for analysis)? or do I need some other solutions or any extension?


Thanks
=20

--
Angular momentum makes the world go 'round.
------=_Part_1841506_1521057269.1529409838412--