Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ While your database is in an idle state, you will not be billed for compute reso
| vCPU | 0 vCPU | 15 vCPU |
| RAM | 0 GB | 60 GB (4 GB/vCPU) |
| Storage\* | 0 GB | 1 TB |
| Connections\*\* | 0 | 1000 |
| Connections\*\* | 0 | 1,000 |

\* The maximum storage capacity will increase with upcoming releases.

Expand Down Expand Up @@ -89,6 +89,6 @@ The following actions must be performed by you directly:

## Technical Limitations

- SQL request size is limited to 512 KB. A single SQL query sent to a Serverless SQL Database cannot exceed 512 KB, but the response to the query is not limited and results tables can exceed 512 KB.
- SQL request size is limited to 1,024 KB. A single SQL query sent to a Serverless SQL Database cannot exceed 1,024 KB, but the response to the query is not limited, and results tables can exceed 1,024 KB.

- The total size of prepared statements is limited to 512 KB per client connection. Refer to the [official PostgreSQ documentation](https://www.postgresql.org/docs/current/sql-prepare.html) for more information on prepared statements.
- The total size of prepared statements is limited to 1,024 KB per client connection. Refer to the [official PostgreSQL documentation](https://www.postgresql.org/docs/current/sql-prepare.html) for more information on prepared statements.
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ dates:
The error message below appears when trying to create a new prepared statement:

```sh
FATAL: failed to prepare statement: adding the prepared statement would exceed the limit of 524288 bytes for client connection: maximum allowed size of prepared statements for connection reached (SQLSTATE 53400).
FATAL: failed to prepare statement: adding the prepared statement would exceed the limit of 1048576 bytes for client connection: maximum allowed size of prepared statements for connection reached (SQLSTATE 53400).
```

### Cause

The total size of [prepared statements](https://www.postgresql.org/docs/current/sql-prepare.html) on Serverless SQL Databases is limited to 524288 bytes (512 kibibytes) for a single client connection. This limit can be reached for two reasons:
The total size of [prepared statements](https://www.postgresql.org/docs/current/sql-prepare.html) on Serverless SQL Databases is limited to 1,048,576 bytes (1,024 kibibytes) for a single client connection. This limit can be reached for two reasons:

- You (or the PostgreSQL client you are using) created too many prepared statements in a single PostgreSQL connection.

Expand Down