官术网_书友最值得收藏!

Chapter 3. Understanding Point-in-time Recovery

So far, you have endured a fair amount of theory. However, since life does not only consist of theory (as important as it may be), it is definitely time to dig into practical stuff.

The goal of this chapter is to make you understand how you can recover your database to a given point in time. When your system crashes, or when somebody just happens to drop a table accidentally, it is highly important not to replay the entire transaction log but just a fraction of it. Point-in-time Recovery will be the tool to do this kind of partial replay of the transaction log.

In this chapter, you will learn all you need to know about Point-in-time Recovery (PITR), and you will be guided through practical examples. Therefore, we will apply all the concepts you have learned in Chapter 2, Understanding the PostgreSQL Transaction Log, to create some sort of incremental backup or set up a simple, rudimentary standby system.

Here is an overview of the topics we will deal with in this chapter:

  • Understanding the concepts behind PITR
  • Configuring PostgreSQL for PITR
  • Running pg_basebackup
  • Recovering PostgreSQL to a certain point in time

At the end of this chapter, you should be able to set up Point-in-time Recovery easily.

主站蜘蛛池模板: 丹棱县| 荣成市| 昌图县| 广灵县| 峡江县| 同仁县| 无棣县| 文山县| 涿州市| 崇义县| 沙雅县| 酒泉市| 鄂温| 福清市| 英德市| 怀化市| 翁源县| 石渠县| 新竹市| 顺义区| 温宿县| 安塞县| 浦县| 长葛市| 瑞安市| 新绛县| 临城县| 丰城市| 肃宁县| 长顺县| 厦门市| 乌鲁木齐市| 大同市| 周至县| 靖西县| 和平区| 栾川县| 泰兴市| 华阴市| 富裕县| 澄江县|