Overview
Metadb provides each user with a personal workspace—a database schema with the same name as the username. In this schema, users have full privileges to create and modify tables, making it ideal for saving query results, importing external datasets, or building personal data transformations.Users generally do not have privileges to modify or create tables in shared schemas. Your personal workspace is the designated area for these operations.
Creating Tables in Your Workspace
You can create tables in your personal schema using standard SQL commands.Example: Saving Query Results
Suppose you’re the usercelia and want to save a filtered dataset:
Create a table from a query
Use Cases for Workspaces
Query Results
Save intermediate results from complex analyses for later use
External Data
Import datasets from external sources for integration with Metadb data
Data Transformations
Create derived tables with custom business logic
Personal Reports
Build summarized tables for recurring analysis needs
Sharing Workspace Data
By default, other users cannot access tables in your workspace. You can grant specific privileges to enable controlled sharing.Granting Read Access
Grant table permissions
Then grant specific permissions on the table:The user
rosalind can now query the table.Sharing with Multiple Users
You can grant access to multiple users in a single statement:Permission Levels
While read-only access (SELECT) is most common, you can grant other permissions as needed:
| Permission | Description | Use Case |
|---|---|---|
SELECT | Read data from table | Allow others to query your results |
INSERT | Add new rows | Collaborative data collection |
UPDATE | Modify existing rows | Shared data maintenance |
DELETE | Remove rows | Collaborative data curation |
ALL | All permissions | Full collaboration on a table |
Best Practices
Organize Your Workspace
Use clear, descriptive table names:Document Shared Tables
Use PostgreSQL comments to document tables you share with others:Clean Up Temporary Tables
Regularly remove tables you no longer need:Consider Storage Limits
Workspace tables consume database storage. Coordinate with your system administrator if you need to store large datasets.
Examples
Example 1: Building a Personal Mart
Example 2: Combining Multiple Sources
Example 3: Staging External Data
Integration with Reporting Tools
Workspace tables integrate seamlessly with database tools like CloudBeaver:- Create summarized or filtered tables in your workspace
- Grant read access to report users
- Reference workspace tables in dashboards and reports
- Users query your prepared datasets without accessing raw data
