refacto: pg_morbac -> pgmorbac

This commit is contained in:
2026-02-22 22:24:47 +01:00
parent 2202676f54
commit 32a6a8dd17
23 changed files with 71 additions and 71 deletions
+7 -7
View File
@@ -3,21 +3,21 @@
## Project Structure
```
pg_morbac/
pgmorbac/
├── src/ # Modular SQL source files
├── tests/ # Test files
├── tools/ # Build and test scripts
├── docs/ # Documentation
├── pg_morbac.control # Version source of truth
├── pg_morbac.sql # Generated (git-ignored)
├── pgmorbac.control # Version source of truth
├── pgmorbac.sql # Generated (git-ignored)
└── Makefile # Build automation
```
## Version Management
Version is defined in `pg_morbac.control` under `default_version`.
Version is defined in `pgmorbac.control` under `default_version`.
Edit source files in `src/` and commit them. Never edit or commit `pg_morbac.sql` (generated by build script).
Edit source files in `src/` and commit them. Never edit or commit `pgmorbac.sql` (generated by build script).
## Development Workflow
@@ -49,14 +49,14 @@ The build script concatenates `src/` files in dependency order (header first, fo
```bash
make build
createdb mytest
psql -d mytest -f pg_morbac.sql
psql -d mytest -f pgmorbac.sql
psql -d mytest
dropdb mytest
```
## Release Process
1. Update version in `pg_morbac.control`
1. Update version in `pgmorbac.control`
2. Update `CHANGELOG.md`
3. Run `make build` and `make test`
4. Commit and tag:
+3 -3
View File
@@ -1,4 +1,4 @@
# pg_morbac Documentation
# pgmorbac Documentation
Complete technical documentation for the Multi-OrBAC PostgreSQL extension.
@@ -17,7 +17,7 @@ Complete technical documentation for the Multi-OrBAC PostgreSQL extension.
### Design Principles
pg_morbac is built on these principles:
pgmorbac is built on these principles:
1. **Pure PostgreSQL**: No external dependencies
2. **Schema Isolation**: All objects in `morbac` schema
@@ -834,7 +834,7 @@ SELECT EXISTS(
### Comparison: Multi-OrBAC vs Traditional RBAC
| Aspect | Traditional RBAC | Multi-OrBAC (pg_morbac) |
| Aspect | Traditional RBAC | Multi-OrBAC (pgmorbac) |
|--------|-----------------|-------------------------|
| **Multi-tenancy** | Single tenant or complex workarounds | Native multi-organization |
| **Prohibition** | No standard support | First-class, always wins |
+3 -3
View File
@@ -1,10 +1,10 @@
# Performance Optimization Guide
This guide explains the performance optimizations built into pg_morbac and how to use them effectively.
This guide explains the performance optimizations built into pgmorbac and how to use them effectively.
## Performance Architecture
pg_morbac includes several layers of optimization:
pgmorbac includes several layers of optimization:
1. **Materialized Views**: Precomputed hierarchy transitive closures
2. **Authorization Cache**: Configurable TTL cache for authorization decisions (default: 5 minutes)
@@ -414,7 +414,7 @@ $$;
## Conclusion
With these optimizations, pg_morbac can handle:
With these optimizations, pgmorbac can handle:
- **>1000 authorization checks/second** (cached)
- **>100 authorization checks/second** (uncached)
- **Complex hierarchies** (10+ levels deep)