File tree Expand file tree Collapse file tree 1 file changed +1
-43
lines changed
obp-api/src/main/scripts/sql Expand file tree Collapse file tree 1 file changed +1
-43
lines changed Original file line number Diff line number Diff line change 1- -- HOW TO RUN THIS SCRIPT
2-
3- -- For those of us that don't use postgres every day:
4-
5- -- 1) You will need to have access to a postgres user that can create roles and views etc.
6- -- 2) You will probably want that postgres user to have easy access to your file system so you can run this script and tweak it if need be.
7-
8- -- That means.
9-
10- -- 1) You probably want to have a postgres user with the same name as your linux or mac username.
11-
12- -- So:
13-
14-
15- -- sudo -u postgres psql
16-
17- -- CREATE ROLE <YOURLINUXUSERNAME> WITH LOGIN SUPERUSER CREATEDB CREATEROLE;
18-
19-
20- -- this step is not required but
21-
22- -- CREATE DATABASE <YOURLINUXUSERNAME> OWNER <YOURLINUXUSERNAME>;
23-
24- -- now quit with \q
25-
26- -- now psql
27-
28- -- now you will be logged in and have access to your normal home directory.
29-
30- -- now connect to the OBP database you want e.g.:
31-
32- -- \c sandbox
33-
34- -- now run the script from within the psql shell:
35-
36- -- \i ~/Documents/workspace_2024/OBP-API-C/OBP-API/obp-api/src/main/scripts/sql/create_oidc_user_and_views.sql
37-
38-
39- -- or run it from the linux terminal specifying the database
40-
41- -- psql -d sandbox -f ~/Documents/workspace_2024/OBP-API-C/OBP-API/obp-api/src/main/scripts/sql/create_oidc_user_and_views.sql
42-
43- -- either way, check the output of the script carefully.
1+ THIS IS OBSOLETED BY THE SCIPTS IN sql/ OIDC
442
453-- you might want to login as the oidc_user and try the two views you have access to.
464
You can’t perform that action at this time.
0 commit comments