Skip to content

Commit aa7f456

Browse files
fpagnySamyOubouazizjcirinosclwy
authored
Serverless SQL Database: Update known-differences.mdx (#3762)
* Update known-differences.mdx Fix and align wording on PostgreSQL commands which cannot be performed. Add a workaround snippet regarding SET/RESET features inside a transaction. * Apply suggestions from code review Co-authored-by: Jessica <[email protected]> --------- Co-authored-by: SamyOubouaziz <[email protected]> Co-authored-by: Jessica <[email protected]>
1 parent d6e53db commit aa7f456

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

serverless/sql-databases/reference-content/known-differences.mdx

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ If you require strict compatibility with all PostgreSQL features, you can use [M
3333
NOTIFY channel, 'message';
3434
```
3535

36-
- Creating temporary tables or views is not supported.
36+
- It is not possible to create temporary tables or views.
3737

3838
```sql
3939
CREATE TEMPORARY TABLE table as {query};
@@ -50,7 +50,7 @@ If you require strict compatibility with all PostgreSQL features, you can use [M
5050
You can still refresh materialized views without the `CONCURRENTLY` option.
5151
</Message>
5252

53-
- Declaring a cursor in transactions with `WITH HOLD` is not supported.
53+
- You can declare a cursor in transactions with `WITH HOLD`, but accurate cursor handling is not guaranteed, particularly when using multiple connections.
5454

5555
```sql
5656
BEGIN;
@@ -64,7 +64,7 @@ If you require strict compatibility with all PostgreSQL features, you can use [M
6464
CREATE SUBSCRIPTION subscription CONNECTION 'connection' PUBLICATION publication;
6565
```
6666

67-
- Preparing transactions is not supported.
67+
- It is not possible to prepare transactions.
6868

6969
```sql
7070
PREPARE TRANSACTION 'transactionid';
@@ -117,6 +117,14 @@ If you require strict compatibility with all PostgreSQL features, you can use [M
117117
SET TIME ZONE 'Europe/Paris';
118118
RESET timezone;
119119
```
120+
If you require these features to work consistently for a given SQL query, we suggest you set them in transactions:
121+
```sql
122+
BEGIN;
123+
SET TIME ZONE 'Europe/Paris';
124+
SHOW timezone;
125+
COMMIT;
126+
```
127+
In this example, `SHOW timezone` will always display `Europe/Paris` without any impact from any other connection despite connection pooling.
120128

121129
- Security labels cannot be defined or changed.
122130

0 commit comments

Comments
 (0)