<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>PG开发 on 老冯云数</title><link>https://vonng.com/tags/pg%E5%BC%80%E5%8F%91/</link><description>Recent content in PG开发 on 老冯云数</description><generator>Hugo -- gohugo.io</generator><language>zh-cn</language><managingEditor>rh@vonng.com (冯若航)</managingEditor><webMaster>rh@vonng.com (冯若航)</webMaster><copyright>© 2025 冯若航</copyright><lastBuildDate>Sat, 27 Dec 2025 00:00:00 +0000</lastBuildDate><atom:link href="https://vonng.com/tags/pg%E5%BC%80%E5%8F%91/index.xml" rel="self" type="application/rss+xml"/><item><title>Git for Data: 瞬间克隆PG数据库</title><link>https://vonng.com/pg/pg-clone/</link><pubDate>Sat, 27 Dec 2025 00:00:00 +0000</pubDate><author>rh@vonng.com (冯若航)</author><guid>https://vonng.com/pg/pg-clone/</guid><description>如何在瞬间克隆一个巨大的 PostgreSQL 数据库，还不占用额外的存储？PG 18 与 XFS 可以擦出很多火花。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://vonng.com/pg/pg-clone/featured.jpg"/></item><item><title>PostgreSQL 规约（2024版）</title><link>https://vonng.com/pg/pg-convention/</link><pubDate>Wed, 09 Oct 2024 00:00:00 +0000</pubDate><author>rh@vonng.com (冯若航)</author><guid>https://vonng.com/pg/pg-convention/</guid><description>没有规矩，不成方圆。本文是22-24年针对PostgreSQL 15-17大版本的更新，希望可以减少大家在使用与管理PostgreSQL数据库过程中遇到的困惑。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://vonng.com/pg/pg-convention/featured.jpg"/></item><item><title>AI大模型与向量库 PGVector</title><link>https://vonng.com/pg/llm-and-pgvector/</link><pubDate>Wed, 10 May 2023 00:00:00 +0000</pubDate><author>rh@vonng.com (冯若航)</author><guid>https://vonng.com/pg/llm-and-pgvector/</guid><description>本文聚焦被 AI 炒火了的向量数据库，介绍了AI嵌入与向量存储检索的基本原理，并用一个具体的知识库检索案例来介绍向量数据库插件 PGVECTOR 的功能与应用。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://vonng.com/pg/llm-and-pgvector/featured.jpg"/></item><item><title>高级模糊查询的实现</title><link>https://vonng.com/pg/fuzzymatch/</link><pubDate>Fri, 05 Mar 2021 00:00:00 +0000</pubDate><author>rh@vonng.com (冯若航)</author><guid>https://vonng.com/pg/fuzzymatch/</guid><description>如何在PostgreSQL中实现比较复杂的模糊查询逻辑？</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://vonng.com/pg/fuzzymatch/featured.jpg"/></item><item><title>前后端通信线缆协议</title><link>https://vonng.com/pg/wire-protocol/</link><pubDate>Tue, 12 Nov 2019 00:00:00 +0000</pubDate><author>rh@vonng.com (冯若航)</author><guid>https://vonng.com/pg/wire-protocol/</guid><description>了解PostgreSQL服务器与客户端通信使用的TCP协议，并使用Go语言打印消息。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://vonng.com/pg/wire-protocol/featured.jpg"/></item><item><title>事务隔离等级注意事项</title><link>https://vonng.com/pg/isolation-level/</link><pubDate>Tue, 12 Nov 2019 00:00:00 +0000</pubDate><author>rh@vonng.com (冯若航)</author><guid>https://vonng.com/pg/isolation-level/</guid><description>PostgreSQL实际上只有两种事务隔离等级：读已提交（Read Commited）与可序列化（Serializable）。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://vonng.com/pg/isolation-level/featured.jpg"/></item><item><title>CDC 变更数据捕获机理</title><link>https://vonng.com/pg/logical-decoding/</link><pubDate>Wed, 12 Jun 2019 00:00:00 +0000</pubDate><author>rh@vonng.com (冯若航)</author><guid>https://vonng.com/pg/logical-decoding/</guid><description>数据变更捕获是一种很有趣的ETL替代方案，以流式的方式持续收集状态变化事件。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://vonng.com/pg/logical-decoding/featured.jpg"/></item><item><title>PostgreSQL中的锁</title><link>https://vonng.com/pg/pg-lock/</link><pubDate>Tue, 11 Jun 2019 00:00:00 +0000</pubDate><author>rh@vonng.com (冯若航)</author><guid>https://vonng.com/pg/pg-lock/</guid><description>详细介绍PostgreSQL中的各种锁：表级锁、行级锁、页级锁、咨询锁等。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://vonng.com/pg/pg-lock/featured.jpg"/></item><item><title>GIN搜索的O(n²)复杂度</title><link>https://vonng.com/pg/gin/</link><pubDate>Fri, 12 Apr 2019 00:00:00 +0000</pubDate><author>rh@vonng.com (冯若航)</author><guid>https://vonng.com/pg/gin/</guid><description>GIN索引如果使用很长的关键词列表进行搜索，会导致性能显著下降。本文解释了为什么GIN索引关键词搜索的时间复杂度为O(n²)。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://vonng.com/pg/gin/featured.jpg"/></item><item><title>GeoIP 地理逆查询优化</title><link>https://vonng.com/pg/geoip/</link><pubDate>Sat, 07 Jul 2018 00:00:00 +0000</pubDate><author>rh@vonng.com (冯若航)</author><guid>https://vonng.com/pg/geoip/</guid><description>在应用开发中，一个很常见的需求就是GeoIP转换：将请求的来源IP转换为相应的地理坐标，或者行政区划。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://vonng.com/pg/geoip/featured.jpg"/></item><item><title>PostgreSQL的触发器使用注意事项</title><link>https://vonng.com/pg/sql-trigger/</link><pubDate>Sat, 07 Jul 2018 00:00:00 +0000</pubDate><author>rh@vonng.com (冯若航)</author><guid>https://vonng.com/pg/sql-trigger/</guid><description>详细了解PostgreSQL中触发器的管理与使用。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://vonng.com/pg/sql-trigger/featured.jpg"/></item><item><title>PostgreSQL开发规约（2018版）</title><link>https://vonng.com/pg/pg-convention-2018/</link><pubDate>Wed, 20 Jun 2018 00:00:00 +0000</pubDate><author>rh@vonng.com (冯若航)</author><guid>https://vonng.com/pg/pg-convention-2018/</guid><description>没有规矩，不成方圆。本文针对PostgreSQL数据库原理与特性，整理了一份开发规范，可以减少大家在使用PostgreSQL数据库过程中遇到的困惑。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://vonng.com/pg/pg-convention-2018/featured.jpg"/></item><item><title>KNN极致优化：从RDS到PostGIS</title><link>https://vonng.com/pg/knn-optimize/</link><pubDate>Wed, 06 Jun 2018 00:00:00 +0000</pubDate><author>rh@vonng.com (冯若航)</author><guid>https://vonng.com/pg/knn-optimize/</guid><description>KNN问题极致优化，从传统关系型设计到PostGIS，实现GIS圈选场景下三万倍的性能提升。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://vonng.com/pg/knn-optimize/featured.jpg"/></item><item><title>PostGIS高效解决行政区划归属查询</title><link>https://vonng.com/pg/adcode-geodecode/</link><pubDate>Wed, 06 Jun 2018 00:00:00 +0000</pubDate><author>rh@vonng.com (冯若航)</author><guid>https://vonng.com/pg/adcode-geodecode/</guid><description>如何高效解决典型地理逆编码问题：根据用户的经纬度坐标，定位用户的行政区划。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://vonng.com/pg/adcode-geodecode/featured.jpg"/></item><item><title>Distinct On 去除重复数据</title><link>https://vonng.com/pg/sql-distinct-on/</link><pubDate>Fri, 06 Apr 2018 00:00:00 +0000</pubDate><author>rh@vonng.com (冯若航)</author><guid>https://vonng.com/pg/sql-distinct-on/</guid><description>使用Distinct On扩展字句快速找出分组内具有最大最小值的记录。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://vonng.com/pg/sql-distinct-on/featured.jpg"/></item><item><title>函数易变性等级分类</title><link>https://vonng.com/pg/sql-func-volatility/</link><pubDate>Fri, 06 Apr 2018 00:00:00 +0000</pubDate><author>rh@vonng.com (冯若航)</author><guid>https://vonng.com/pg/sql-func-volatility/</guid><description>PgSQL中的函数默认有三种易变性等级，合理使用可以显著改善性能。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://vonng.com/pg/sql-func-volatility/featured.jpg"/></item><item><title>用 Exclude 实现互斥约束</title><link>https://vonng.com/pg/sql-exclude/</link><pubDate>Fri, 06 Apr 2018 00:00:00 +0000</pubDate><author>rh@vonng.com (冯若航)</author><guid>https://vonng.com/pg/sql-exclude/</guid><description>Exclude约束是一个PostgreSQL扩展，它可以实现一些更高级，更巧妙的的数据库约束。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://vonng.com/pg/sql-exclude/featured.jpg"/></item><item><title>GO与PG实现缓存同步</title><link>https://vonng.com/pg/notify-trigger-based-repl/</link><pubDate>Thu, 03 Aug 2017 00:00:00 +0000</pubDate><author>rh@vonng.com (冯若航)</author><guid>https://vonng.com/pg/notify-trigger-based-repl/</guid><description>巧妙运用Pg的Notify功能，可以方便地通知应用元数据变更，实现基于触发器的逻辑复制。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://vonng.com/pg/notify-trigger-based-repl/featured.jpg"/></item><item><title>用触发器审计数据变化</title><link>https://vonng.com/pg/audit-change/</link><pubDate>Fri, 09 Jun 2017 00:00:00 +0000</pubDate><author>rh@vonng.com (冯若航)</author><guid>https://vonng.com/pg/audit-change/</guid><description>有时候，我们希望记录一些重要的元数据变更，以便事后审计之用。PostgreSQL的触发器就可以很方便地自动解决这一需求。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://vonng.com/pg/audit-change/featured.jpg"/></item><item><title>SQL实现ItemCF推荐系统</title><link>https://vonng.com/pg/pg-recsys/</link><pubDate>Wed, 05 Apr 2017 00:00:00 +0000</pubDate><author>rh@vonng.com (冯若航)</author><guid>https://vonng.com/pg/pg-recsys/</guid><description>用PostgreSQL 5分钟实现一个最简单ItemCF推荐系统。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://vonng.com/pg/pg-recsys/featured.jpg"/></item><item><title>UUID性质原理与应用</title><link>https://vonng.com/pg/uuid/</link><pubDate>Sun, 06 Nov 2016 00:00:00 +0000</pubDate><author>rh@vonng.com (冯若航)</author><guid>https://vonng.com/pg/uuid/</guid><description>UUID性质原理与应用，以及如何利用PostgreSQL的存储过程操作UUID。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://vonng.com/pg/uuid/featured.jpg"/></item></channel></rss>