The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
update docs diagrams (#29394)
Francesco Sansalvadore73bbbb798ddd
diff --git a/apps/docs/content/guides/database/extensions/wrappers/overview.mdx b/apps/docs/content/guides/database/extensions/wrappers/overview.mdxindex e323a37d396..cf4ec0a9fe6 100644--- a/apps/docs/content/guides/database/extensions/wrappers/overview.mdx+++ b/apps/docs/content/guides/database/extensions/wrappers/overview.mdx@@ -13,7 +13,14 @@ Postgres includes several built-in foreign data wrappers, such as [`postgres_fdwWrappers introduce some new terminology and different workflows.-+<Image+ alt="Foreign Data Wrappers (FDW)"+ zoomable+ src={{+ dark: '/docs/img/database/foreign-data-wrappers/extracting-data.png',+ light: '/docs/img/database/foreign-data-wrappers/extracting-data--light.png',+ }}+/>### Remote servers@@ -105,7 +112,14 @@ select cron.schedule();```-+<Image+ alt="FDW with pg_cron"+ zoomable+ src={{+ dark: '/docs/img/database/foreign-data-wrappers/extracting-data-pgcron.png',+ light: '/docs/img/database/foreign-data-wrappers/extracting-data-pgcron--light.png',+ }}+/>This process can be taxing on your database if you are moving large amounts of data. Often, it's better to use an external tool for batch ETL, such as [Fivetran](https://fivetran.com/) or [Airbyte](https://airbyte.io/).diff --git a/apps/docs/content/guides/database/postgres/indexes.mdx b/apps/docs/content/guides/database/postgres/indexes.mdxindex 6a8c8dbc623..9796f952733 100644--- a/apps/docs/content/guides/database/postgres/indexes.mdx+++ b/apps/docs/content/guides/database/postgres/indexes.mdx@@ -69,7 +69,14 @@ Luckily Postgres provides us with `create index concurrently` which prevents bloHere is a simplified diagram of the index we just created (note that in practice, nodes actually have more than two children).-+<Image+ alt="B-Tree index example in Postgres"+ zoomable+ src={{+ dark: '/docs/img/database/managing-indexes/creating-indexes.png',+ light: '/docs/img/database/managing-indexes/creating-indexes--light.png',+ }}+/>You can see that in any large data set, traversing the index to locate a given value can be done in much less operations (O(log n)) than compared to scanning the table one value at a time from top to bottom (O(n)).diff --git a/apps/docs/content/guides/database/tables.mdx b/apps/docs/content/guides/database/tables.mdxindex a3ab7f77e76..71a2d2c8fcd 100644--- a/apps/docs/content/guides/database/tables.mdx+++ b/apps/docs/content/guides/database/tables.mdx@@ -23,7 +23,14 @@ There are a few important differences from a spreadsheet, but it's a good startiWhen creating a table, it's best practice to add columns at the same time.-+<Image+ alt="Tables and columns"+ zoomable+ src={{+ dark: '/docs/img/database/managing-tables/creating-tables.png',+ light: '/docs/img/database/managing-tables/creating-tables--light.png',+ }}+/>You must define the "data type" of each column when it is created. You can add and remove columns at any time after creating a table.@@ -322,7 +329,14 @@ If you receive an error `FATAL: password authentication failed for user "postgrTables can be "joined" together using Foreign Keys.-+<Image+ alt="Foreign Keys"+ zoomable+ src={{+ dark: '/docs/img/database/managing-tables/joining-tables.png',+ light: '/docs/img/database/managing-tables/joining-tables--light.png',+ }}+/>This is where the "Relational" naming comes from, as data typically forms some sort of relationship.@@ -393,7 +407,14 @@ create table performances (Tables belong to `schemas`. Schemas are a way of organizing your tables, often for security reasons.-+<Image+ alt="Schemas and tables"+ zoomable+ src={{+ dark: '/docs/img/database/managing-tables/schemas.png',+ light: '/docs/img/database/managing-tables/schemas--light.png',+ }}+/>If you don't explicitly pass a schema when creating a table, Postgres will assume that you want to create the table in the `public` schema.diff --git a/apps/docs/public/img/b-tree-example.png b/apps/docs/public/img/b-tree-example.pngdeleted file mode 100644index b9274c9e43d..00000000000Binary files a/apps/docs/public/img/b-tree-example.png and /dev/null differdiff --git a/apps/docs/public/img/database/fdw-light.png b/apps/docs/public/img/database/fdw-light.pngdeleted file mode 100644index 42caa9357aa..00000000000Binary files a/apps/docs/public/img/database/fdw-light.png and /dev/null differdiff --git a/apps/docs/public/img/database/fdw-qetl-light.png b/apps/docs/public/img/database/fdw-qetl-light.pngdeleted file mode 100644index ea7af56d5ec..00000000000Binary files a/apps/docs/public/img/database/fdw-qetl-light.png and /dev/null differdiff --git a/apps/docs/public/img/database/foreign-data-wrappers/extracting-data--light.png b/apps/docs/public/img/database/foreign-data-wrappers/extracting-data--light.pngnew file mode 100644index 00000000000..cbab488a19aBinary files /dev/null and b/apps/docs/public/img/database/foreign-data-wrappers/extracting-data--light.png differdiff --git a/apps/docs/public/img/database/foreign-data-wrappers/extracting-data-pgcron--light.png b/apps/docs/public/img/database/foreign-data-wrappers/extracting-data-pgcron--light.pngnew file mode 100644index 00000000000..506ae874437Binary files /dev/null and b/apps/docs/public/img/database/foreign-data-wrappers/extracting-data-pgcron--light.png differdiff --git a/apps/docs/public/img/database/foreign-data-wrappers/extracting-data-pgcron.png b/apps/docs/public/img/database/foreign-data-wrappers/extracting-data-pgcron.pngnew file mode 100644index 00000000000..b2de13d1d61Binary files /dev/null and b/apps/docs/public/img/database/foreign-data-wrappers/extracting-data-pgcron.png differdiff --git a/apps/docs/public/img/database/foreign-data-wrappers/extracting-data.png b/apps/docs/public/img/database/foreign-data-wrappers/extracting-data.pngnew file mode 100644index 00000000000..2823b894b05Binary files /dev/null and b/apps/docs/public/img/database/foreign-data-wrappers/extracting-data.png differdiff --git a/apps/docs/public/img/database/managing-indexes/creating-indexes--light.png b/apps/docs/public/img/database/managing-indexes/creating-indexes--light.pngnew file mode 100644index 00000000000..3b6dd765b1eBinary files /dev/null and b/apps/docs/public/img/database/managing-indexes/creating-indexes--light.png differdiff --git a/apps/docs/public/img/database/managing-indexes/creating-indexes.png b/apps/docs/public/img/database/managing-indexes/creating-indexes.pngnew file mode 100644index 00000000000..d63750a0377Binary files /dev/null and b/apps/docs/public/img/database/managing-indexes/creating-indexes.png differdiff --git a/apps/docs/public/img/database/managing-tables/creating-tables--light.png b/apps/docs/public/img/database/managing-tables/creating-tables--light.pngnew file mode 100644index 00000000000..04a9ef807d9Binary files /dev/null and b/apps/docs/public/img/database/managing-tables/creating-tables--light.png differdiff --git a/apps/docs/public/img/database/managing-tables/creating-tables.png b/apps/docs/public/img/database/managing-tables/creating-tables.pngnew file mode 100644index 00000000000..c344403fb55Binary files /dev/null and b/apps/docs/public/img/database/managing-tables/creating-tables.png differdiff --git a/apps/docs/public/img/database/managing-tables/joining-tables--light.png b/apps/docs/public/img/database/managing-tables/joining-tables--light.pngnew file mode 100644index 00000000000..5e1288ac269Binary files /dev/null and b/apps/docs/public/img/database/managing-tables/joining-tables--light.png differdiff --git a/apps/docs/public/img/database/managing-tables/joining-tables.png b/apps/docs/public/img/database/managing-tables/joining-tables.pngnew file mode 100644index 00000000000..3508d4f0c3bBinary files /dev/null and b/apps/docs/public/img/database/managing-tables/joining-tables.png differdiff --git a/apps/docs/public/img/database/managing-tables/schemas--light.png b/apps/docs/public/img/database/managing-tables/schemas--light.pngnew file mode 100644index 00000000000..400043f703bBinary files /dev/null and b/apps/docs/public/img/database/managing-tables/schemas--light.png differdiff --git a/apps/docs/public/img/database/managing-tables/schemas.png b/apps/docs/public/img/database/managing-tables/schemas.pngnew file mode 100644index 00000000000..64fac5557ecBinary files /dev/null and b/apps/docs/public/img/database/managing-tables/schemas.png differdiff --git a/apps/docs/public/img/guides/database/foreign-keys.png b/apps/docs/public/img/guides/database/foreign-keys.pngdeleted file mode 100644index 1025e6e5ee2..00000000000Binary files a/apps/docs/public/img/guides/database/foreign-keys.png and /dev/null differdiff --git a/apps/docs/public/img/guides/database/schema-tables.png b/apps/docs/public/img/guides/database/schema-tables.pngdeleted file mode 100644index 6bb2316aa97..00000000000Binary files a/apps/docs/public/img/guides/database/schema-tables.png and /dev/null differdiff --git a/apps/docs/public/img/guides/database/tables-columns.png b/apps/docs/public/img/guides/database/tables-columns.pngdeleted file mode 100644index d4d3ab03d3d..00000000000Binary files a/apps/docs/public/img/guides/database/tables-columns.png and /dev/null differ