-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinit.sql
More file actions
17 lines (15 loc) · 717 Bytes
/
init.sql
File metadata and controls
17 lines (15 loc) · 717 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
-- init.sql
-- Initialize PostgreSQL database with Apache AGE, PGvector, PGAudit, and pgsodium extensions
-- Create extensions
CREATE EXTENSION IF NOT EXISTS age;
-- CREATE EXTENSION IF NOT EXISTS vector; --vectorscale automatically installed vector
CREATE EXTENSION IF NOT EXISTS vectorscale CASCADE;
CREATE EXTENSION IF NOT EXISTS vectors;
CREATE EXTENSION IF NOT EXISTS pgaudit;
-- CREATE EXTENSION IF NOT EXISTS pgsodium;
-- Create database
-- CREATE DATABASE postgres;
-- -- Grant permissions to the postgres user
-- GRANT ALL PRIVILEGES ON DATABASE postgres TO postgres;
-- GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO postgres;
-- GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public TO postgres;