

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 适用于 PostgreSQL 的多租户 SaaS 分区模型
<a name="partitioning-models"></a>

实现多租户的最佳方法取决于您的 SaaS 应用程序的要求。以下各节演示了在 PostgreSQL 中成功实现多租户的分区模型。

**注意**  
本节中讨论的模型既适用于亚马逊 RDS for PostgreSQL，也适用于兼容 Aurora PostgreSQL 的模型。本节中对 Postgre *S* QL 的引用适用于这两个服务。

您可以在 PostgreSQL 中使用三种高级模型进行 SaaS 分区：思洛分区、桥接模型和池模型。下图总结了思洛存储器和池模型之间的权衡取舍。桥梁模型是筒仓模型和池模型的混合体。


****  

| **分区模型** | **优点** | **劣势** | 
| --- | --- | --- | 
| 筒仓 | [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_cn/prescriptive-guidance/latest/saas-multitenant-managed-postgresql/partitioning-models.html) | [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_cn/prescriptive-guidance/latest/saas-multitenant-managed-postgresql/partitioning-models.html) | 
| 池 | [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_cn/prescriptive-guidance/latest/saas-multitenant-managed-postgresql/partitioning-models.html) | [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_cn/prescriptive-guidance/latest/saas-multitenant-managed-postgresql/partitioning-models.html) | 
| 桥梁 | [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_cn/prescriptive-guidance/latest/saas-multitenant-managed-postgresql/partitioning-models.html) | [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_cn/prescriptive-guidance/latest/saas-multitenant-managed-postgresql/partitioning-models.html) | 

以下各节将更详细地讨论每种模型。

**Topics**
+ [PostgreSQL 筒仓模型](silo.md)
+ [PostgreSQL 池模型](pool.md)
+ [PostgreSQL 桥接模型](bridge.md)
+ [决策矩阵](matrix.md)