Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

docs: more spelling updates

Paul Copplestone53054b7d9893
diff --git a/web/spec/postgres.yml b/web/spec/postgres.yml
index 63e3cba3571..28fd071994a 100644
--- a/web/spec/postgres.yml
+++ b/web/spec/postgres.yml
@@ -81,6 +81,7 @@ pages:
notes: |
- Tables contain columns, rows, triggers, comments,
- It is best practice to use lowercase and underscores when naming tables. For example: `table_name`, not `Table Name`.
+ - Tables belong to [schemas](/docs/reference/postgres/schemas). If you don't explicitly pass the schema, Postgres will assume that you want to create the table in the `public` schema.
examples:
- name: Create table
@@ -92,6 +93,13 @@ pages:
data jsonb,
name text
);
+
+ # with schema
+ create table schema_name.table_name (
+ id integer primary key,
+ data jsonb,
+ name text
+ );
```
- name: Primary keys using multiple columns
sql: |
@@ -103,6 +111,11 @@ pages:
primary key (column_1, column_2)
);
```
+ - name: Delete a table
+ sql: |
+ ```sql
+ delete table if exists table_name;
+ ```
Columns:
description: |
Creating columns.