{{sellerTotalView > 1 ? __("sellers", {number: sellerTotalView}) : __("seller", {number: sellerTotalView}) }}, {{numTotalView > 1 ? __("items", {number: numTotalView}) : __("item", {number: numTotalView}) }}
free FREE

Change Your Zip Code

Inventory information and delivery speeds may vary for different locations.

Location History

{{email ? __('Got it!') : __('Restock Alert')}}

We will notify you by email when the item back in stock.

Cancel
Yami

Jingdong book

数据架构师的PostgreSQL修炼:高效设计、开发与维护数据库应用

{{buttonTypePin == 3 ? __("Scan to view more PinGo") : __("Scan to start")}}

数据架构师的PostgreSQL修炼:高效设计、开发与维护数据库应用

{{__(":people-members", {'people': item.limit_people_count})}} {{ itemCurrency }}{{ item.valid_price }} {{ itemCurrency }}{{ item.invalid_price }} {{ itemDiscount }}
Ends in
{{ itemCurrency }}{{ item.valid_price }}
{{ itemCurrency }}{{ priceFormat(item.valid_price / item.bundle_specification) }}/{{ item.unit }}
{{ itemDiscount }}
{{ itemCurrency }}{{ item.valid_price }} {{ itemCurrency }}{{ priceFormat(item.valid_price / item.bundle_specification) }}/{{ item.unit }} {{ itemCurrency }}{{ item.invalid_price }} {{itemDiscount}}
{{ itemCurrency }}{{ item.valid_price }}
Sale ends in
Sale will starts after Sale ends in
{{ getSeckillDesc(item.seckill_data) }}
{{ __( "Pay with Gift Card to get sale price: :itemCurrency:price", { 'itemCurrency' : itemCurrency, 'price' : (item.giftcard_price ? priceFormat(item.giftcard_price) : '0.00') } ) }} ({{ itemCurrency }}{{ priceFormat(item.giftcard_price / item.bundle_specification) }}/{{ item.unit }}) Details
Best before

Currently unavailable.

We don't know when or if this item will be back in stock.

Unavailable in your area.
Sold Out

Details

Full product details
Content Description

本书将教你如何构建及运行一个可扩展且已经优化的PostgreSQL服务器。全书始于基本概念(例如从源代码中安装PostgreSQL),并逐渐深入理论部分(例如并发性和事务管理)。在此之后,你将学习如何设置副本、使用负载均衡进行水平扩展以及排除故障。继续阅读本书,你将看到配置参数对性能、可扩展性以及事务管理所起到的显著影响。后,你将接触到PostgreSQL生态系统中那些有用的工具,它们被用来分析PostgreSQL日志、设置负载均衡和进行数据恢复。
Author Description

Jayadevan Maymala,是一位数据库开发工程师、设计师和架构师。他开始于1999年在甲骨文(Oracle)公司的数据库部门工作。多年以来,他研究并使用过DB2、Sybase和SQL Server等数据库产品。 近,他一直致力于开源技术的研究。他选择的数据库是PostgreSQL。职业生涯中,他在不同的领域工作过,跨越供应链管理、金融和旅游等多个领域。他一方面致力于支持关键事务处理系统的数据库技术,另一方面致力于支持分析系统的数据仓库技术,在两方面工作上,他差不多花了等量的时间。
不研究这些开源技术时,他会利用业余时间进行大量阅读,并不断更新自己在经济和政治领域的知识。
我要感谢我的妻子——Uma,因为她可以忍受我在周末进行马拉松式的写作。我还要深深感激PostgreSQL社区,社区里面的人总是及时回复我的问题,不管是基础的还是特殊的问题。这是一个神奇的团队,他们一直不知疲倦地构建这样一个宏大的数据库,然后用这样的自由许可条款开源。谢谢他们!

About the reviewersPascal Charest,是前沿技术专家,他致力于一系列非常广泛的开源技术。在网络基础设施的战略规划领域,他是优秀的系统管理专家,并且经常从事系统架构设计的咨询工作。可以通过他LinkedIn的个人资料联系他https://www.linkedin.com/in/pascalcharest。
我想谢谢安东尼(Anthony)和扎卡里(Zachary),不管是白天或黑夜,他们都让我保持清醒。
Catalogue

作者简介
审校者简介
前言
第1章安装PostgreSQL 1
1.1安装选项 1
1.1.1下载并提取源码 2
1.1.2检查源码内容 3
1.2编译源码的各种依赖 3
1.3配置和创建makefile 4
1.4建立和创建可执行文件 6
1.5安装和移动文件到指定的位置 7
1.6初始化集群 9
1.6.1快速了解各个目录 11
1.6.2已创建的进程 13
1.6.3创建的重要文件 14
1.7与扩展程序相互协作 14
1.8小结 15
第2章服务器架构 16
2.1从守护进程开始 16
2.2理解共享缓冲区 18
2.3检查点 23
2.4WAL与WAL写进程 25
2.4.1恢复 26
2.4.2增量备份和基于时间点的恢复 26
2.4.3复制 27
2.5后台写入器 28
2.6自动清空加载器进程 29
2.7日志进程 32
2.8统计信息收集器进程 35
2.9WAL发送器和WAL接收器 38
2.10使用work_mem在内存中进行排序 38
2.11使用maintenance_work_mem进行维护 40
2.12小结 42
第3章PostgreSQL——对象层次和角色 43
3.1PostgreSQL集群 43
3.2了解表空间 44
3.2.1使用临时表空间管理临时对象 46
3.2.2视图 48
3.3数据库、模式与search_path 48
3.4角色和权限 53
3.5小结 56
第4章使用事务进行工作 57
4.1了解事务 57
4.2PostgreSQL和MVCC 67
4.3小结 70
第5章使用SQL Power Architect进行数据建模 71
5.1数据库工具及其用途 71
5.2数据库设计工具 72
5.2.1下载与安装SQL Power Architect 73
5.2.2创建表 74
5.3生成SQL 75
5.3.1逆向工程及变更操作 77
5.3.2导出数据模型 78
5.3.3分析 78
5.4小结 79
第6章客户端工具 80
6.1GUI工具与命令行工具 80
6.2下载与安装pgAdmin 80
6.2.1添加一台服务器 81
6.2.2pgAdmin主窗口 82
6.2.3查询工具 84
6.3psql——在命令行模式下工作 86
6.3.1psql——连接选项 86
6.3.2\d的功能 87
6.3.3更多元命令 89
6.3.4设置环境 91
6.3.5命令的历史记录 92
6.4小结 92
第7章SQL调优 93
7.1了解数据库的基本事实 93
7.1.1事实1,数据库中读比写更频繁 93
7.1.2事实2,数据始终在块或页面中读取,而不是作为单独的记录或列 94
7.1.3减少读/写块的数量的方法 94
7.2查询执行组件 95
7.2.1计划器 95
7.2.2访问方法 95
7.2.3连接策略 96
7.3发现执行计划 96
7.4优化指南和捕捉 98
7.4.1外键索引 99
7.4.2使用SELECT* 100
7.4.3使用ORDER BY 100
7.4.4使用DISTINCT 101
7.4.5使用UNION ALL代替UNION 102
7.4.6在FILTER子句中使用函数 102
7.4.7减少SQL语句数量 104
7.4.8减少函数执行 105
7.4.9不使用索引的情况 107
7.4.10部分索引 108
7.4.11优化函数 109
7.5小结 110
第8章服务器调优 111
8.1服务器端内存设置 111
8.1.1shared_buffers 111
8.1.2effective_cache_size 112
8.2管理写入、连接和维护操作 113
8.3查找/扫描开销及统计参数 114
8.4物化视图 119
8.5分区表 121
8.6小结 125
第9章PostgreSQL写入与读取数据工具 126
9.1考虑建立生产数据库 126
9.2COPY 命令 127
9.3使用pg_bulkload快速加载 130
9.4pg_dump 命令 131
9.5过滤选项 133
9.5.1pg_dumpall 工具 133
9.5.2pg_restore 工具 133
9.6小结 135
第10章扩展、复制、备份和恢复 136
10.1可扩展性 136
10.1.1垂直扩展 137
10.1.2水平扩展 138
10.2基于时间点的恢复 154
10.3小结 157
第11章PostgreSQL 故障排除 158
11.1连接问题 158
11.2验证和权限问题 159
11.3参数更改无效 161
11.4查询无响应 162
11.5小结 165
第12章PostgreSQL额外功能 166
12.1有趣的数据类型 166
12.1.1range 166
12.1.2XML 174
12.1.3几何与地理数据 175
12.1.4外部数据封装器 175
12.1.5pgbadger 178
12.2变化中的产品特性 180
12.3小结 183
Introduction

PrefacePostgreSQL是一个极其灵活且可靠的开源关系型数据库。借助它的这般神奇功能,可以在不增加任何费用的情况下,将应用程序变得更加可靠和更具扩展性。一旦掌握了如何设置PostgreSQL并利用它的高级功能,便可节省工时,提高工作效率。
本书将教你如何构建及运行一个可扩展且已经优化的PostgreSQL服务器。
全书始于基本概念(例如从源代码中安装PostgreSQL),并逐渐深入理论部分(例如并发性和事务管理)。在此之后,你将学习如何设置副本、使用负载均衡进行水平扩展以及排除故障。
继续阅读本书,你将看到配置参数对性能、可扩展性以及事务管理所产生的显著影响。最后,你将接触到PostgreSQL生态系统中那些有用的工具,它们用来分析PostgreSQL日志、设置负载均衡和恢复数据。
本书主要内容第1章概括性地介绍如何从源代码中安装PostgreSQL。该章内容列举了从源代码中进行编译的先决条件,并说明了如何在UNIX / Linux环境中初始化一个集群。同时,该章也涵盖了本书的目录结构。
第2章描述启动PostgreSQL集群时所涉及的重要进程,同时介绍了这些进程如何与内存结构相互协作,从而实现一个数据库管理系统所应有的功能。
第3章解释各种对象类型以及PostgreSQL所提供的各种对象。同时,该章也阐述了各种重要的概念,例如数据库、集群、表空间和模式。
第4章涵盖事务所涉及的ACID属性、隔离级别以及PostgreSQL是如何提供这些功能的。同时,该章也探讨了多版本并发控制这个话题。
第5章讨论如何使用SQL Power Architect对表以及关系进行建模。同时,该章也介绍了在选择设计工具时需要考虑的一些注意事项。
第6章介绍了两个客户端工具(pgAdmin:一个用户界面工具,psql:一个命令行工具)。该章介绍了如何使用pgAdmin浏览数据库对象、生成查询并为查询产生执行计划。同时,该章也阐述了如何在psql中为psql连接建立环境变量、查看SQL命令的历史执行记录以及元命令。
第7章说明各种查询优化技术。为了便于读者理解,该章也列举了一些数据库使用相关的范例以及PostgreSQL优化器的工作原理。
第8章介绍对查询性能具有显著影响的PostgreSQL服务器设置。这些设置包括内存设置、开销设置等。同时该章也介绍了两种对象类型:分区和物化视图。
第9章介绍相关的常用工具,例如pg_dump、pg_bulkload以及用于PostgreSQL导入与读取数据的copy功能。
第10章介绍实际操作中的常用方法。该章一步一步地介绍如何使用PostgreSQL的流复制以及pgpool-II来实现水平扩展。同时,该章也介绍PostgreSQL中基于时间点的恢复。
第11章列举开发者在使用PostgreSQL时经常会遇到的一些问题,并阐述如何解决这些问题。同时,该章也说明连接问题、权限问题与参数设置问题。
第12章引入不少讨论话题,列举每一名数据架构师都应当注意的一些有趣的数据类型、一些真正有用的扩展,以及一个用来分析PostgreSQL日志文件的工具。同时,该章也展示PostgreSQL 9.4版本的一些有趣功能。
阅读本书的准备工作你必须有一台能够联网的计算机。如果这台计算机使用的是UNIX / Linux操作系统,那么将对阅读本书非常有帮助。
本书的目标读者你需要接触过一些数据库,了解基本的数据库对象,如表和视图。如果之前未曾或者很少接触PostgreSQL,你会发现这本书非常有用。如果过去几年你一直在使用PostgreSQL,同样还是会从书中找到一些你不熟悉但是有用的命令,或者找到你未曾使用过的数据库优化方法。借助本书,你将更深入地了解数据库的工作原理

Specifications

Brand Jingdong book
Brand Origin China

Disclaimer

Product packaging, specifications and price are subject to change without notice. All information about the products on our website is provided for information purposes only. Please always read labels, warnings and directions provided with the product before use.

View Full Terms of Use
Add to favorites
{{ $isZh ? coupon.coupon_name_sub : coupon.coupon_ename_sub | formatCurrency }}
{{__("Buy Directly")}} {{ itemCurrency }}{{ item.directly_price }}
Quantity
{{ quantity }}
{{ instockMsg }}
{{ limitText }}
{{buttonTypePin == 3 ? __("Scan to view more PinGo") : __("Scan to start")}}
Sold by JD@CHINA
Ship to
{{ __("Ship to United States only") }}
Free shipping over 69
Genuine guarantee

Added to Cart

Keep Shopping

More to Consider

{{ item.brand_name }}

{{ item.item_name }}

{{ item.currency }}{{ item.market_price }}

{{ item.currency }}{{ item.unit_price }}

{{ item.currency }}{{ item.unit_price }}

Coupons

{{ coupon.coupon_name_new | formatCurrency }}
Clip Clipped Over
{{ getCouponDescStr(coupon) }}
{{ coupon.use_time_desc }}
Expires soon {{ formatTime(coupon.use_end_time) }}

Share this item with friends

Cancel

Yami Gift Card

Get this exclusive deal when paying with gift card

Terms and Conditions

Gift card deals are special offers for selected products;

The gift card deals will automatically be activated if a customer uses gift card balance at check out and the balance is sufficient to pay for the total price of the shopping cart products with gift card deals;

You will not be able to activate the gift card deals if you choose other payment methods besides gift card. The products will be purchased at their normal prices;

If your account balance is not enough to pay for the products with gift card deals, you can choose to reload your gift card balance by clicking on the Reload button at either shopping cart page or check out page;

Products that have gift card deals can be recognized by a special symbol showing 'GC Deal';

For any additional questions or concerns, please contact our customer service;

Yamibuy reserves the right of final interpretation.

Sold by Yami

Service Guarantee

Yami Free Shipping over $49
Yami Easy Returns
Yami Ships from United States

Shipping

  • United States

    Standard Shipping is $5.99 (Excluding Alaska & Hawaii). Free on orders of $49 or more.

    Local Express is $5.99 (Available in Parts of CA, NJ, MA & PA). Free on orders of $49 or more.

    2-Day Express (Includes Alaska & Hawaii) starts at $19.99.

Return Policy

Yami is committed to provide our customers with a peace of mind when purchasing from us. Most items shipped from Yamibuy.com can be returned within 30 days of receipt of shipment (For Food, Beverages, Snacks, Dry Goods, Health supplements, Fresh Grocery and Perishables Goods, within 7 days of receipt of shipment due to damages or quality issues; To ensure that every customer receives safe and high-quality products, we do not provide refunds or returns for beauty products once they have been opened or used, except in the case of quality issues; Some products may have different policies or requirements associated with them, please see below for products under special categories, or contact Yami Customer Service for further assistance).
Thank you for your understanding and support.

Learn More

Sold by Yami

Terms and Conditions of Yami E-Gift Card

If you choose “Redeem automatically” as your delivery method, your gift card balance will be reload automatically after your order has been processed successfully;

If you choose “Send to Email”as your delivery method, the card number and CVV will be sent to the email address automatically;

Any user can use the card number and CVV to redeem the gift card, please keep your gift card information safely. If you have any trouble receiving email, please contact Yami customer service;

Yami gift card can be used to purchase both Yami owned or Marketplace products;

Yami gift card will never expire;

Yami gift card balance does not have to be used up at once;

All rights reserved by Yami.

Return Policy

Gift card that has already been consumed is non-refundable.

Sold by JD@CHINA

Service Guarantee

Yami Free Shipping over $49
Yami Easy Returns
Yami Ships from United States

Shipping

  • United States

    Standard Shipping is $5.99 (Excluding Alaska & Hawaii). Free on orders of $49 or more.

    Local Express is $5.99 (Available in Parts of CA, NJ, MA & PA). Free on orders of $49 or more.

    2-Day Express (Includes Alaska & Hawaii) starts at $19.99.

Return Policy

You may return product within 30 days upon receiving the product. Items returned must be new in it's original packing, including the original invoice for the purchase. Customer return product at their own expense.

Sold by JD@CHINA

Service Guarantee

Yami Cross-store Free Shipping over $69
Yami 30-days Return

Yami-China FC

Yami has a consolidation warehouse in China which collects multiple sellers’ packages and combines to one order. Our Yami consolidation warehouse will directly ship the packages to your door. Cross-store free shipping over $69.

Return Policy

You may return products within 30 days upon receiving the products. Sellers take responsibilities for any wrong shipment or missing items. Packing needs to be unopened for any other than quality issues return. We promise to pack carefully, but because goods are taking long journey to destinations, simple damages to packaging may occur. Any damages not causing internal goods quality problems are not allowed to return. If you open the package and any quality problem is found, please contact customer service within three days after receipt of goods.

Shipping Information

Yami Consolidation Service Shipping Fee $9.99(Free shipping over $69)

Sellers in China will ship their orders within 1-2 business days once the order is placed. Packages are sent to our consolidation warehouse in China and combined there. Our Yami consolidation warehouse will directly ship the packages to you via UPS. The average time for UPS to ship from China to the United States is about 10 working days and it can be traced using the tracking number. Due to the pandemic, the delivery time may be delayed by about 5 days. The package needs to be signed by the guest. If the receipt is not signed, the customer shall bear the risk of loss of the package.

Sold by JD@CHINA

Service Guarantee

Free shipping over 69
Genuine guarantee

Shipping

Yami Consolidated Shipping $9.99(Free shipping over $69)


Seller will ship the orders within 1-2 business days. The logistics time limit is expected to be 7-15 working days. In case of customs clearance, the delivery time will be extended by 3-7 days. The final receipt date is subject to the information of the postal company.

Yami Points information

All items are excluding from any promotion or points events on Yamibuy.com

Return Policy

You may return product within 30 days upon receiving the product. Items returned must be new in it's original packing, including the original invoice for the purchase. Customer return product at their own expense.

Yami

Download the Yami App

Back Top

Recommended for You

About the brand

Jingdong book

为您推荐

Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折

Reviews{{'('+ commentList.posts_count + ')'}}

Have your say. Be the first to help other guests.

Write a review
{{ totalRating }} Write a review
  • {{i}} star

    {{i}} stars

    {{ parseInt(commentRatingList[i]) }}%

Yami Yami
{{ comment.user_name }}

{{ showTranslate(comment) }}Show Less

{{ strLimit(comment,800) }}Show more

Show Original

{{ comment.content }}

Yami
Show All

{{ formatTime(comment.in_dtm) }} VERIFIED PURCHASE {{groupData}}

{{ comment.likes_count }} {{ comment.likes_count }} {{ comment.reply_count }} {{comment.in_user==uid ? __('Delete') : __('Report')}}
Yami Yami
{{ comment.user_name }}

{{ showTranslate(comment) }}Show Less

{{ strLimit(comment,800) }}Show more

Show Original

{{ comment.content }}

Yami
Show All

{{ formatTime(comment.in_dtm) }} VERIFIED PURCHASE {{groupData}}

{{ comment.likes_count }} {{ comment.likes_count }} {{ comment.reply_count }} {{comment.in_user==uid ? __('Delete') : __('Report')}}

No related comment~

Review

Yami Yami

{{ showTranslate(commentDetails) }}Show Less

{{ strLimit(commentDetails,800) }}Show more

Show Original

{{ commentDetails.content }}

Yami
Show All

{{ formatTime(commentDetails.in_dtm) }} VERIFIED PURCHASE {{groupData}}

{{ commentDetails.likes_count }} {{ commentDetails.likes_count }} {{ commentDetails.reply_count }} {{commentDetails.in_user==uid ? __('Delete') : __('Report')}}

Please write at least one word

Comments{{'(' + replyList.length + ')'}}

Yami Yami

{{ showTranslate(reply) }}Show Less

{{ strLimit(reply,800) }}Show more

Show Original

{{ reply.reply_content }}

{{ formatTime(reply.reply_in_dtm) }}

{{ reply.reply_likes_count }} {{ reply.reply_likes_count }} {{ reply.reply_reply_count }} {{reply.reply_in_user==uid ? __('Delete') : __('Report')}}

Please write at least one word

Cancel

That’s all the comments so far!

Write a review
How would you rate this item?

Please add your comment.

  • A nice nickname will make your comments more popular!
  • The nickname in your account will be changed to the same as here.
Thanks for your review
Our community rely on great reviews like yours to find the best of Asia.

Report

If you find this content inappropriate and think it should be removed from the Yami.com site, let us know please.

Cancel

Are you sure to delete your review?

Cancel

You’ve Recently Viewed

About the brand

Jingdong book