From cbe914c9b1268e3d5ac2423bd6240529fedf5d5a Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Mon, 16 Dec 2024 12:34:01 +0000 Subject: [PATCH] docs: move sections in redis doc Co-Authored-By: copple@supabase.io --- docs/catalog/redis.md | 38 ++++++++++++++++++-------------------- 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/docs/catalog/redis.md b/docs/catalog/redis.md index 1aec81e8..a3f94ac0 100644 --- a/docs/catalog/redis.md +++ b/docs/catalog/redis.md @@ -17,24 +17,6 @@ The Redis Wrapper allows you to read data from Redis within your Postgres databa Restoring a logical backup of a database with a materialized view using a foreign table can fail. For this reason, either do not use foreign tables in materialized views or use them in databases with physical backups enabled. -## Supported Redis Data Types - -All Redis values will be stored as `text` or `jsonb` columns in Postgres, below are the supported Redis data types: - -| Redis Type | Foreign Table Type (src_type) | -| ------------------- | ----------------------------- | -| List | list | -| Set | set | -| Hash | hash | -| Sorted Set | zset | -| Stream | stream | -| Multiple List | multi_list | -| Multiple Set | multi_set | -| Multiple Hash | multi_hash | -| Multiple Sorted Set | multi_zset | - -**See below for more descriptions for the `Multiple *` types and `src_type` foreign table option.** - ## Preparation Before you can query Redis, you need to enable the Wrappers extension and store your credentials in Postgres. @@ -329,6 +311,24 @@ create foreign table redis.multi_lists ( This FDW doesn't support pushdown. +## Supported Redis Data Types + +All Redis values will be stored as `text` or `jsonb` columns in Postgres, below are the supported Redis data types: + +| Redis Type | Foreign Table Type (src_type) | +| ------------------- | ----------------------------- | +| List | list | +| Set | set | +| Hash | hash | +| Sorted Set | zset | +| Stream | stream | +| Multiple List | multi_list | +| Multiple Set | multi_set | +| Multiple Hash | multi_hash | +| Multiple Sorted Set | multi_zset | + +**See below for more descriptions for the `Multiple *` types and `src_type` foreign table option.** + ## Limitations This section describes important limitations and considerations when using this FDW: @@ -360,8 +360,6 @@ This section describes important limitations and considerations when using this - Connection failures during scans may require re-establishing the connection - Memory pressure can occur when dealing with large datasets due to full result set loading -## Examples - Some examples on how to use Redis foreign tables. Let's prepare some source data in Redis CLI first: