The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
changed blog references
Ollie Halliday1bf9a3c0546d
diff --git a/apps/www/_blog/2022-03-08-audit.mdx b/apps/www/_blog/2022-03-08-audit.mdxindex f482933101f..41a2faa411b 100644--- a/apps/www/_blog/2022-03-08-audit.mdx+++ b/apps/www/_blog/2022-03-08-audit.mdx@@ -206,7 +206,7 @@ as $$casewhen rec is null then null-- if no primary key exists, use a random uuid- when pkey_cols = array[]::text[] then uuid_generate_v4()+ when pkey_cols = array[]::text[] then gen_random_uuid()else (selectuuid_generate_v5(diff --git a/apps/www/_blog/2022-06-30-flutter-tutorial-building-a-chat-app.mdx b/apps/www/_blog/2022-06-30-flutter-tutorial-building-a-chat-app.mdxindex cbe86871d1b..1510e6b4143 100644--- a/apps/www/_blog/2022-06-30-flutter-tutorial-building-a-chat-app.mdx+++ b/apps/www/_blog/2022-06-30-flutter-tutorial-building-a-chat-app.mdx@@ -109,7 +109,7 @@ create table if not exists public.profiles (comment on table public.profiles is 'Holds all of users profile information';create table if not exists public.messages (- id uuid not null primary key default uuid_generate_v4(),+ id uuid not null primary key default gen_random_uuid(),profile_id uuid default auth.uid() references public.profiles(id) on delete cascade not null,content varchar(500) not null,created_at timestamp with time zone default timezone('utc' :: text, now()) not nulldiff --git a/apps/www/_blog/2022-09-08-choosing-a-postgres-primary-key.mdx b/apps/www/_blog/2022-09-08-choosing-a-postgres-primary-key.mdxindex 497bf573aaf..8cbba05512d 100644--- a/apps/www/_blog/2022-09-08-choosing-a-postgres-primary-key.mdx+++ b/apps/www/_blog/2022-09-08-choosing-a-postgres-primary-key.mdx@@ -266,7 +266,7 @@ These don't have a time component, but they don't have in time they make up forWe can generate them in Postgres like this (with `uuid-ossp`):```sql-SELECT uuid_generate_v4();+SELECT gen_random_uuid();uuid_generate_v4--------------------------------------diff --git a/apps/www/_blog/2022-11-17-fetching-and-caching-supabase-data-in-next-js-server-components.mdx b/apps/www/_blog/2022-11-17-fetching-and-caching-supabase-data-in-next-js-server-components.mdxindex 4b1954e318c..01c432a7212 100644--- a/apps/www/_blog/2022-11-17-fetching-and-caching-supabase-data-in-next-js-server-components.mdx+++ b/apps/www/_blog/2022-11-17-fetching-and-caching-supabase-data-in-next-js-server-components.mdx@@ -58,7 +58,7 @@ Once your instance is up and running, head over to the [SQL Editor](https://app.```sqlcreate table if not exists posts (- id uuid default uuid_generate_v4() primary key,+ id uuid default gen_random_uuid() primary key,created_at timestamp with time zone default timezone('utc'::text, now()) not null,title text,content textdiff --git a/apps/www/_blog/2022-11-22-flutter-authentication-and-authorization-with-rls.mdx b/apps/www/_blog/2022-11-22-flutter-authentication-and-authorization-with-rls.mdxindex fde39a288d0..5731c0bd3e7 100644--- a/apps/www/_blog/2022-11-22-flutter-authentication-and-authorization-with-rls.mdx+++ b/apps/www/_blog/2022-11-22-flutter-authentication-and-authorization-with-rls.mdx@@ -58,7 +58,7 @@ We will also introduce a `create_new_room` function, which is a [database functi-- *** Table definitions ***create table if not exists public.rooms (- id uuid not null primary key default uuid_generate_v4(),+ id uuid not null primary key default gen_random_uuid(),created_at timestamp with time zone default timezone('utc' :: text, now()) not null);comment on table public.rooms is 'Holds chat rooms';diff --git a/apps/www/_blog/2022-11-24-sql-or-nosql-both-with-postgresql.mdx b/apps/www/_blog/2022-11-24-sql-or-nosql-both-with-postgresql.mdxindex d36e20d6b0f..43356c9a3cd 100644--- a/apps/www/_blog/2022-11-24-sql-or-nosql-both-with-postgresql.mdx+++ b/apps/www/_blog/2022-11-24-sql-or-nosql-both-with-postgresql.mdx@@ -136,7 +136,7 @@ Let's see how we can use the power of SQL together with the ease-of-use of NoSQL```sqlCREATE TABLE calendar (- id uuid DEFAULT uuid_generate_v4() NOT NULL,+ id uuid DEFAULT gen_random_uuid() NOT NULL,date date,user_id uuid NOT NULL,weight numeric,