The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Adds the community posts
Copple197fdb4ec26d
diff --git a/apps/www/_blog/2022-12-16-new-in-postgres-15.mdx b/apps/www/_blog/2022-12-16-new-in-postgres-15.mdxindex bb0d61e9c1a..a25703c7325 100644--- a/apps/www/_blog/2022-12-16-new-in-postgres-15.mdx+++ b/apps/www/_blog/2022-12-16-new-in-postgres-15.mdx@@ -1,9 +1,9 @@---title: What's new in Postgres 15?description: Describes the release of Postgres 15, new features and reasons to use it-author: Pavel Borisov-image:-thumb:+author: pavel+image: lw6-community/community-day.png+thumb: lw6-community/community-day.pngtags:- postgres- launch-week@@ -15,9 +15,9 @@ The PostgreSQL community [released](https://www.postgresql.org/docs/current/rele## **The permission model is more secure**-CREATE permission is revoked from all users except the database owner. It makes permission assigning more tunable (for details see [https://www.postgresql.org/docs/15/ddl-schemas.html#DDL-SCHEMAS-PATTERNS](https://www.postgresql.org/docs/15/ddl-schemas.html#DDL-SCHEMAS-PATTERNS)). And for the migrated database don't forget to revoke CREATE permission on the public schema manually to fit the new policy.+`CREATE` permission is revoked from all users except the database owner. It makes permission assigning more tunable ([details](https://www.postgresql.org/docs/15/ddl-schemas.html#DDL-SCHEMAS-PATTERNS)). And for the migrated database don't forget to revoke `CREATE` permission on the public schema manually to fit the new policy.-There is a useful option CREATE VIEW .. WITH security_invoker=on to create a view that uses permissions of a view caller rather than a view creator to access underlying tables. With this, you should not worry that a user that doesn't have access to a table could see its data through a view.+There is a useful option `CREATE VIEW .. WITH security_invoker=on` to create a view that uses permissions of a view caller rather than a view creator to access underlying tables. With this, you should not worry that a user that doesn't have access to a table could see its data through a view.## **Performance speed-up**@@ -27,7 +27,7 @@ Window functions performance is also improved.## The **MERGE operation was introduced**-A new MERGE operation is to modify target table data according to the provided source with many available conditional processing options. This allows data processing without writing procedural language functions or complex CTE queries. Essentially merge can work as conditional delete/insert/update and also this makes PostgreSQL syntax implementation closer to SQL:2008 standard. For details on MERGE uses see: [https://www.postgresql.org/docs/15/sql-merge.html](https://www.postgresql.org/docs/15/sql-merge.html)+A new `MERGE` operation is to modify target table data according to the provided source with many available conditional processing options. This allows data processing without writing procedural language functions or complex CTE queries. Essentially merge can work as conditional delete/insert/update and also this makes PostgreSQL syntax implementation closer to SQL:2008 standard. For details on MERGE uses see: [https://www.postgresql.org/docs/15/sql-merge.html](https://www.postgresql.org/docs/15/sql-merge.html)## **New features for logical replication**@@ -35,7 +35,7 @@ Logical replication is one of the fast-developing parts of PostgreSQL. Since ver## **Increase parallelization**-Parallel execution of queries using several worker processes is another part of PostgreSQL that develops fast. In version 15 _SELECT DISTINCT_ queries that drop duplicate rows from output can improve performance by using parallel workers.+Parallel execution of queries using several worker processes is another part of PostgreSQL that develops fast. In version 15 `SELECT DISTINCT` queries that drop duplicate rows from output can improve performance by using parallel workers.## **JSON logging**@@ -49,13 +49,13 @@ When you make a database backup with the provided pg*basebackup extension you ca## **New POSIX regexp functions**-There are several new regular expressions functions that you may find useful for strings processing i.e. regexp_substr(), regexp_count(), etc. For details see: [https://www.postgresql.org/docs/15/functions-matching.html#FUNCTIONS-POSIX-REGEXP](https://www.postgresql.org/docs/15/functions-matching.html#FUNCTIONS-POSIX-REGEXP)+There are several new regular expressions functions that you may find useful for strings processing i.e. regexp_substr(), regexp_count(), etc. [Details](https://www.postgresql.org/docs/15/functions-matching.html#FUNCTIONS-POSIX-REGEXP)-## Full Changelog+## **Full Changelog**-You can find a full changelog and full list of new features: [https://www.postgresql.org/docs/15/release-15.html#id-1.11.6.6.5](https://www.postgresql.org/docs/15/release-15.html#id-1.11.6.6.5)+You can find a full changelog and full list of new features in the [official changelog](https://www.postgresql.org/docs/15/release-15.html#id-1.11.6.6.5).-# **How to upgrade to PG15?**+## **Should you upgrade to PG15?**The main reason to switch to a new PostgreSQL version is the large number of bug fixes that each new version delivers. Bug fixes aren't as prominent as new features or performance improvements, but they often have a greater impact. While some bug fixes are applied to previous versions, these changes require modifications to the ABI, interface functions, and system catalog structures, often not possible in an already-released major version.diff --git a/apps/www/_blog/2022-12-16-postgrest-11-prerelease.mdx b/apps/www/_blog/2022-12-16-postgrest-11-prerelease.mdxindex ce85b34ec97..e14c41ee52e 100644--- a/apps/www/_blog/2022-12-16-postgrest-11-prerelease.mdx+++ b/apps/www/_blog/2022-12-16-postgrest-11-prerelease.mdx@@ -1,9 +1,9 @@---title: PostgREST 11 pre-releasedescription: Describes new features of PostgREST 11 pre-release-author: Steve Chavez-image:-thumb:+author: steve_chavez+image: lw6-community/community-day.png+thumb: lw6-community/community-day.pngtags:- postgres- launch-week@@ -14,7 +14,7 @@ toc_depth: 3PostgREST 11 is not wrapped up yet, however a pre-release with the **[latest features and fixes](https://github.com/PostgREST/postgrest/releases/tag/v10.1.1.20221212)**is available on the Supabase CLI.-In this blog post we'll cover some of the improved querying capabilities: spreading related tables, related orders and anti-joins**.**+In this blog post we'll cover some of the improved querying capabilities: spreading related tables, related orders and anti-joins.## Spreading related tables@@ -23,10 +23,14 @@ they form a one-to-one relationship.Using PostgREST resource embedding, we can query them in one request like so+<small>From HTTP:</small>+```httpGET /films?select=title,technical_specs(camera,laboratory,sound_mix)```+<small>or JavaScript:</small>+```jsxconst { data, error } = await supabase.from('films').select(`title,@@ -36,6 +40,8 @@ const { data, error } = await supabase.from('films').select(``)```+<small>Response:</small>+```json[{@@ -54,10 +60,14 @@ But we'd like to present a “flattened” result to the frontend, without the `Using the new “spread” operator(syntax borrowed from [JS](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax)), we can expand a related table columns and remove the nested object.+<small>From HTTP:</small>+```jsxGET /films?select=*,...technical_specs(camera,laboratory,duration)```+<small>or JavaScript:</small>+```jsxconst { data, error } = await supabase.from('films').select(`title,@@ -67,6 +77,8 @@ const { data, error } = await supabase.from('films').select(``)```+<small>Response:</small>+```json[{@@ -87,10 +99,14 @@ It's also a common use case to order a table by a related table column. For examYou can now do it like so:-```jsx+<small>From HTTP:</small>++```httpGET /films?select=*,...technical_specs(camera,laboratory,duration)&order=technical_specs(duration)```+<small>or JavaScript:</small>+```jsxconst { data, error } = await supabase.from('films')@@ -103,6 +119,8 @@ const { data, error } = await supabase.order('technical_specs(duration)', { descending: true }))```+<small>Response:</small>+```json[{@@ -123,10 +141,14 @@ Similarly to spreading related tables, this only works for one-to-one and many-tTo do the equivalent of a left anti-join, you can now filter the rows where the related table is `null`.+<small>From HTTP:</small>+```httpGET /films?select=title,nominations()&nominations=is.null```+<small>or JavaScript:</small>+```jsxconst { data, error } = await supabase.from('films')@@ -137,6 +159,8 @@ const { data, error } = await supabase.is('nominations', null))```+<small>Response:</small>+```json[{@@ -172,6 +196,8 @@ const { data, error } = await supabase.not('nominations', 'is', null)```+<small>Response:</small>+```json[{diff --git a/apps/www/public/rss.xml b/apps/www/public/rss.xmlindex 599150e2710..29f46e544b1 100644--- a/apps/www/public/rss.xml+++ b/apps/www/public/rss.xml@@ -5,15 +5,43 @@<link>https://supabase.com</link><description>Latest news from Supabase</description><language>en</language>- <lastBuildDate>Wed, 14 Dec 2022 23:11:00 +0000</lastBuildDate>+ <lastBuildDate>Thu, 15 Dec 2022 23:11:00 +0000</lastBuildDate><atom:link href="https://supabase.com/rss.xml" rel="self" type="application/rss+xml"/><item>+ <guid>https://supabase.com/blog/postgrest-11-prerelease</guid>+ <title>PostgREST 11 pre-release</title>+ <link>https://supabase.com/blog/postgrest-11-prerelease</link>+ <description>Describes new features of PostgREST 11 pre-release</description>+ <pubDate>Thu, 15 Dec 2022 23:11:00 +0000</pubDate>+</item>+<item>+ <guid>https://supabase.com/blog/new-in-postgres-15</guid>+ <title>What's new in Postgres 15?</title>+ <link>https://supabase.com/blog/new-in-postgres-15</link>+ <description>Describes the release of Postgres 15, new features and reasons to use it</description>+ <pubDate>Thu, 15 Dec 2022 23:11:00 +0000</pubDate>+</item>+<item>+ <guid>https://supabase.com/blog/launch-week-6-community-day</guid>+ <title>Community Day</title>+ <link>https://supabase.com/blog/launch-week-6-community-day</link>+ <description>Wrapping up Launch Week 6 with contributors, partners, and friends.</description>+ <pubDate>Thu, 15 Dec 2022 23:11:00 +0000</pubDate>+</item>+<item><guid>https://supabase.com/blog/postgres-foreign-data-wrappers-rust</guid><title>Supabase Wrappers, a Postgres FDW framework written in Rust</title><link>https://supabase.com/blog/postgres-foreign-data-wrappers-rust</link><description>A framework for building Postgres Foreign Data Wrappers which connects to Stripe, Firebase, Clickhouse, and more.</description><pubDate>Wed, 14 Dec 2022 23:11:00 +0000</pubDate></item>+<item>+ <guid>https://supabase.com/blog/mfa-auth-via-rls</guid>+ <title>Multi-factor Authentication via Row Level Security Enforcement</title>+ <link>https://supabase.com/blog/mfa-auth-via-rls</link>+ <description>MFA Auth with enforcement via RLS</description>+ <pubDate>Tue, 13 Dec 2022 23:11:00 +0000</pubDate>+</item><item><guid>https://supabase.com/blog/storage-image-resizing-smart-cdn</guid><title>Supabase Storage v2: Image resizing and Smart CDN</title>