<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Security on BenzHub</title><link>https://benzhub.github.io/tags/security/</link><description>Recent content in Security on BenzHub</description><generator>Hugo</generator><language>zh-TW</language><lastBuildDate>Mon, 29 Jun 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://benzhub.github.io/tags/security/index.xml" rel="self" type="application/rss+xml"/><item><title>Views 與 Materialized Views：PostgreSQL 的虛擬關係與物化快取 | PostgreSQL</title><link>https://benzhub.github.io/post/postgresql/023-views-materialized-views/</link><pubDate>Mon, 29 Jun 2026 00:00:00 +0000</pubDate><guid>https://benzhub.github.io/post/postgresql/023-views-materialized-views/</guid><description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;View（視圖）&lt;/strong&gt; 是 PostgreSQL 中以 SQL 查詢定義的虛擬關係，本身不儲存資料，每次查詢時動態執行底層定義。&lt;strong&gt;Materialized View（物化視圖）&lt;/strong&gt; 則將查詢結果實體化儲存在磁碟上，以資料新鮮度換取查詢效能。兩者皆是簡化複雜查詢、實作權限控制與建立穩定 &lt;strong&gt;API Layer&lt;/strong&gt; 的核心工具。&lt;/p&gt;
&lt;/blockquote&gt;</description></item></channel></rss>