The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Update 2022-09-08-choosing-a-postgres-primary-key.mdx
0xflotus66b93099c646
diff --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 d6f3918bd1a..7b96861b886 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@@ -164,9 +164,9 @@ So how does *this* work? Postgres does the same thing under the covers -- it genLet's say the application using the DB has some [Python](https://python.org) code like the following:-```sql-import randrange from random-import User from models;+```python+from random import randrange+from models import UserMAX_RANDOM_USER_ID = 1_000_000_000def create_user():"""@@ -175,7 +175,6 @@ def create_user():user_id = randrange(1, MAX_RANDOM_USER_ID)user = User(id=user_id, email="[email protected]", name="new user")db.save(user)-```That *looks* good, but there's a problem -- [random](https://docs.python.org/3/library/random.html) is a *pseudorandom* generator.