mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-13 00:12:54 +00:00
vanilla pg dokcer image setup
This commit is contained in:
17
proxy/dev/sql/include/test.sql
Normal file
17
proxy/dev/sql/include/test.sql
Normal file
@@ -0,0 +1,17 @@
|
||||
CREATE SCHEMA IF NOT EXISTS test;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS test.items (
|
||||
id SERIAL PRIMARY KEY,
|
||||
name VARCHAR(255) NOT NULL
|
||||
);
|
||||
|
||||
INSERT INTO test.items (name) VALUES
|
||||
('test item 1'),
|
||||
('test item 2'),
|
||||
('test item 3');
|
||||
|
||||
CREATE ROLE test_role NOINHERIT;
|
||||
GRANT ROLE test_role TO authenticator;
|
||||
|
||||
GRANT USAGE ON SCHEMA test TO test_role;
|
||||
GRANT ALL ON ALL TABLES IN SCHEMA test TO test_role;
|
||||
Reference in New Issue
Block a user