Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o8Cog-0000gj-AA for pgsql-general@arkaria.postgresql.org; Mon, 04 Jul 2022 03:32:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1o8Cof-0003ml-5I for pgsql-general@arkaria.postgresql.org; Mon, 04 Jul 2022 03:32:05 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o8Coe-0003mc-5R for pgsql-general@lists.postgresql.org; Mon, 04 Jul 2022 03:32:04 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o8Coa-0007y6-Oi for pgsql-general@postgresql.org; Mon, 04 Jul 2022 03:32:03 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 21DE05C0061; Sun, 3 Jul 2022 23:31:59 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sun, 03 Jul 2022 23:31:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; t=1656905519; x= 1656991919; bh=OroL0ud8JAlCbb2Zx+q0pzdFy854yjIFNV6dcrVhKQ0=; b=G URVfeOn8PMkn9Ujy9jNjv2FYujJ/OIWlnZgMZo5EE5N1hp7wJ5yqSlFlwpIShVYl ttExz3ZlUfu7npA1OaveOZnO8mIbfcyZqVhYeF04GDC09wiKP4n7EzKQHx8B3d+m OcvJ57Rwz0uTNYMnzZDFefByeKdmPGOXinQaaD20DRlEnwYDbuqSqIIRTBKPl3wK kOGVwBC9v9FW2ODEHAVcqtZNVJbmAC45I1wpwfXND88GiJvOkNhReRr+RCB5RJF+ YjT9Ia+ZR4a3hfR9fRVwvyU6VziEyMfsk+hzK7fCvxh6jZ2r8cTKvjzscwn/lJoB XLhyjKN2UQqol0pcFGrfA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1656905519; x=1656991919; bh=O roL0ud8JAlCbb2Zx+q0pzdFy854yjIFNV6dcrVhKQ0=; b=SrfmnpyOrh5D7jlt8 t6c1zN7t6e+Xr+wNMqhfYl1M4UdQjCTKIsDurEpKCohoK8g8+6QFGKO9IKEX7rsG v7X4cmrY5ClW1ABBir3WOOQx9a1zBY+DwFEGHaw9KUekLufkjZB+OeCTD1bnZf5l xC7rxpJ0h4YAbv2sjk7riOZjGJ2/VgKRK+aqetedoP4J69GOIfwA8+891WXmJ3lr 2tVhphr7iFM/PA4JfuI66RmxSC2dPJ2MQK0nnR115rzix7UX5kVnNv+Kq+rZ5DFg nlBAhs6GSLZRYZ+3LSkKHi7nTjIgnwHfu53eTx99oH89i+srsIhnhZlHx7KGO/5A gnZ6A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudehkedgjeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtje ertddtfeejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhepffduhedtud eggfekveduffehveevhfeftedthfeviedvgfeigefhieeugefggfegnecuffhomhgrihhn pehpohhsthhgrhgvshhqlhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrh grmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgt ohhm X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 3 Jul 2022 23:31:58 -0400 (EDT) Message-ID: Date: Sun, 3 Jul 2022 20:31:57 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: Beginner Question:Why it always make sure that the postgres better than common csv file storage in disaster recovery? Content-Language: en-US To: Wen Yi , pgsql-general References: From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 7/3/22 20:06, Wen Yi wrote: > I am a student who are interesting in database kernel.When I am > reviewing my database course,a question make me confused. > > In file system,if a error happen when I insert some data into data > saving system,the whole data exists will be broken and can't recovery > anymore. > > But when I check the code in postgres,I found the postgres also use the > write function(That! is a UNIX file system api) > > My question is: > > Since it's all built on top of the file system,why it always make sure > that the postgres better than common csv file storage in disaster recovery? https://www.postgresql.org/docs/current/wal.html > > Thanks in advance! -- Adrian Klaver adrian.klaver@aklaver.com