如果数据将移出物理边界,脱离 Google 或 Google 授权代理方的控制范围,Google 会在一个或多个网络层对传输中的所有数据进行加密和身份验证。如果传输中的数据位于物理边界内部,可由 Google 或 Google 授权代理方掌控,我们通常会对这些数据进行身份验证,但默认情况下可能不会进行加密。如果您使用实例的公共 IP 地址连接到该实例,请使用 SSL/TLS 证书,以确保数据在传输期间安全无虞。您可以根据威胁模型选择要应用哪些额外的安全措施。例如,您可以为可用区内的 Cloud SQL 连接配置 SSL。
一般来说,选择具有更多 RAM 和 CPU 的较大规模实例可以提升数据库的性能。这种做法能够提升许多涉及大量计算的查询(例如涉及联接、ORDER BY 或 GROUPING 的查询)的性能,但仅涉及到个别行的更新操作的性能不会受到太大影响。
但是,实例的大小越大,操作延迟时间就越长。如需详细了解实例大小和价格,请参阅价格页面。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-09-03。"],[],[],null,["# Cloud SQL for PostgreSQL FAQ\n\n[MySQL](/sql/docs/mysql/faq \"View this page for the MySQL database engine\") \\| PostgreSQL \\| [SQL Server](/sql/docs/sqlserver/faq \"View this page for the SQL Server database engine\")\n\n- About\n - [What is Cloud SQL?](#whatissql)\n - [What are the benefits of using Cloud SQL?](#benefits)\n - [Which database versions are available with Cloud SQL?\n How are updates managed?](#version)\n - [Does Cloud SQL support all database features?](#supportmysqlfeatures)\n - [Are there any size or QPS limits?](#sizeqps)\n - [How can I be notified when there are any changes to Cloud SQL?](#notifiedofchanges)\n - [How do I report a bug, request a feature, or ask a question?](#requestfeature)\n- Getting Started\n - [Why does my new instance with no data show disk space used?](#empty)\n- Data Storage, Replication, and Authentication\n - [Where is my data stored?](#data_location)\n - [Should I use solid-state drives (SSD) or\n hard disk drives (HDD) for storage?](/sql/docs/postgres/choosing-ssd-hdd)\n - [What is a zone?](#what_is_a_zone)\n - [What are the limits on storage?](#storage_limits)\n - [How is my data replicated?](#replication)\n - [How does Cloud SQL failover work?](#failover)\n - [Is my data encrypted?](#encryption)\n - [How is encryption managed for data at rest?](#encryption-manage-rest)\n - [How is encryption managed for data in transit?](#encryption-manage-transit)\n - [What kind of read replicas can I create?](#rr_kinds)\n- Data Migration\n - [How are data and constraints migrated into Cloud SQL?](#data-migration)\n\n \u003c!-- --\u003e\n\n - [How can I migrate my data faster?](#data-migrate-faster)\n- Backup and Recovery\n - [How do I recover an instance?](#backups_how)\n - [How much do backups cost?](#backups_cost)\n - [Can I access automated backups older than seven days?](#backups_access)\n - [When do I use external versus cross-region replication for\n region failure protection?](#crr-dr)\n- Managing Your Instances\n - [Which actions cause Cloud SQL instances to restart?](#restart)\n - [How long are instances shut down during restart?](#shutdown)\n - [Can I make my database larger or smaller?](#changetiers)\n - [Can I upgrade and downgrade vCPUs?](#vcpus)\n - [Do I need to use the Google Cloud console to manage Cloud SQL?](#apisconsole)\n - [How can I reclaim the space used by temporary files?](#reclaimingspacetemp)\n - [Can I import or export a specific database?](#importexportdatabases)\n - [Can I import or export a CSV file?](#importexportcsvfile)\n - [Do I need a Cloud Storage account to import or export data from an instance?](#googlestorage)\n - [If I delete my instance, can I reuse the instance name?](#reuse)\n - [What level of transaction isolation does Cloud SQL\n provide?](#transaction-isolation)\n - [How can I protect my instance from accidental deletion?](#instance-protection)\n- Insights\n - [Why can't I find the sample query plan in Insights?](#insights-query-plan)\n- Pricing and Billing\n - [How can I try out Cloud SQL?](#can_I_try)\n - [How many instances can I create in a project?](#number_instances)\n - [What size database instance do I need? How much RAM?](#what_size_database)\n - [How is use of my instance calculated?](#how_usage_calculated)\n - [How is storage calculated?](#how_storage_calculated)\n - [How can I see how much I will be charged?](#how_much)\n - [What happens when my instance reaches the allowed size?](#reaches_max_size)\n - [Why is my instance suspended?](#why_suspended)\n - [Why was my instance deleted?](#why_deleted)\n - [How can I cancel my Cloud SQL account?](#cancelsqlaccount)\n - [How do I disable billing?](#disable_billing)\n- Using Cloud SQL with App Engine\n - [Can I connect from App Engine to a PostgreSQL instance?](#gaeconnect-pg)\n - [Can my App Engine application in the US access my Cloud SQL\n instance in the EU (and the other way around)?](#location)\n - [Which Google Cloud database service is right for me?](#choice)\n - [Do I need to install a local database server to use the App Engine Development Server?](#installmysql)\n - [What languages can I use to access my instance?](#languages)\n - [Can I use Django with Cloud SQL?](#django)\n - [Which placeholders can I use in my Python query string?](#formatcode)\n - [How do I manage connections?](#connections)\n - [What does a SQLException with message of \"Invalid connection ID\" mean?](#invalidconnectioniderror)\n - [Can I access my Cloud SQL instance programmatically outside of App Engine?](#externaldev)\n\nAbout\n-----\n\nWhat is Cloud SQL?\n: Cloud SQL is a service that delivers fully managed SQL databases in the cloud.\n Cloud SQL provides PostgreSQL, SQL Server, and MySQL databases.\n\nWhat are the benefits of using Cloud SQL?\n: Cloud SQL lets you hand\n off to Google the mundane, but necessary and often time consuming tasks --- like applying patches and\n updates, managing backups and configuring replications --- so you can put your focus on building great\n applications. And because we use standard wire protocols, you can connect from just about any\n application, anywhere.\n\nWhich database versions are available with Cloud SQL? How are updates managed?\n:\n\n: Cloud SQL for PostgreSQL supports PostgreSQL 9.6, 10, 11, 12, 13, 14, 15, 16, and 17 (default).\n\n Minor version updates are deployed as part of scheduled maintenance, with no further action\n required on your part. For more information about updates, see\n [Overview of maintenance on Cloud SQL instances](/sql/docs/postgres/maintenance).\n\n To see the current version of your instance, go to the\n [Google Cloud console](https://console.cloud.google.com/), click the instance name to open the\n **Instance details** page. Or, you can use the `gcloud sql instances describe`\n command.\n\nDoes Cloud SQL support all database features?\n:\n Cloud SQL supports most common features of PostgreSQL. For a list of all differences between\n standard PostgreSQL and the functionality Cloud SQL provides, see\n [Differences between Cloud SQL and standard\n PostgreSQL functionality](/sql/docs/postgres/features#differences-pg).\n\nAre there any size or QPS limits?\n: There are no queries per second (QPS) limits for Cloud SQL instances. For information about\n connection, size, and App Engine-specific limits, see\n [Quotas and Limits](/sql/docs/postgres/quotas).\n\nHow can I be notified when there are any changes to Cloud SQL?\n: You can sign up for the [google-cloud-sql-announce](https://groups.google.com/group/google-cloud-sql-announce)\n forum where we post announcements and news about Cloud SQL.\n\nHow do I report a bug, request a feature, or ask a question?\n: You can report bugs and request a feature on our\n [google-cloud-sql-discuss](https://groups.google.com/forum/#!forum/google-cloud-sql-discuss)\n group. You can ask a question in\n [Stack Overflow](http://stackoverflow.com/questions/tagged/google-cloud-sql).\n For other support options, see the [Cloud SQL Support](/sql/docs/postgres/support) page.\n[Back to top](#top)\n\nGetting Started\n---------------\n\nWhy does my new instance with no data show disk space used?\n: Cloud SQL and the database both use some space for system files and metadata when\n your instance is created."]]