Schemas and Session Settings
KalamDB schemas group tables, types, and routines. Use PostgreSQL CREATE SCHEMA and qualify application objects so queries behave consistently across connections.
Create a KalamDB schema
CREATE NAMESPACE remains a compatibility alias. New schemas should use CREATE SCHEMA.
Resolve names with search_path
The default resolves "$user", public. A stored schema named default is distinct from public; changing the search path does not rename or merge schemas. Quoted names preserve case; unquoted names fold to lowercase.
Session settings
A PGWire connection retains settings until changed or disconnected. HTTP SQL settings last for the request, so send SET and the statements that depend on it in the same SQL request. Do not expect a later HTTP call to inherit the previous request’s settings. For application queries, schema-qualified names avoid this dependency.
Rename and remove schemas
DROP SCHEMA ... CASCADE also removes dependent objects. Use it only when you intend to remove them.
Inspect schemas
Next: Tables and constraints. Reference: PostgreSQL connections.