You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bin/setup.sh.example
+29-28Lines changed: 29 additions & 28 deletions
Original file line number
Diff line number
Diff line change
@@ -24,45 +24,46 @@ declare -a worker_ports=("5433" "5434" "5435" "5436")
24
24
function run_demo()
25
25
{
26
26
:
27
-
28
-
for port in "${worker_ports[@]}" $lord_port; do
29
-
psql -p $port -c "set synchronous_commit to local; drop role if exists joe; create role joe login password '12345'; grant usage on FOREIGN DATA WRAPPER postgres_fdw to joe;"
30
-
done
31
-
32
27
psql -c "drop table if exists t cascade;"
33
28
psql -c "CREATE TABLE t(i int);"
34
-
psql -c "drop table if exists t cascade;"
35
-
psql -c "CREATE TABLE t(i int);"
36
-
37
29
38
30
psql -c "drop table if exists pt cascade;"
39
31
psql -c "CREATE TABLE pt(id INT primary key, payload REAL);"
40
32
psql -c "INSERT INTO pt SELECT generate_series(1, 10), random();"
# psql -c "create server node_1 foreign data wrapper postgres_fdw options (port '5433');"
38
+
# psql -c "create user mapping for current_user server node_1;"
39
+
# psql -c "create foreign table ppt (id int, payload real) server node_1;"
40
+
41
+
# psql -c "create table ppt_root (id int, payload real) partition by range (id);"
42
+
# psql -c "alter table ppt_root attach partition ppt for values from (MINVALUE) TO (MAXVALUE);"
43
+
44
+
# with joe
45
+
# for port in "${worker_ports[@]}" $lord_port; do
46
+
# psql -p $port -c "set synchronous_commit to local; drop role if exists joe; create role joe superuser login; grant usage on FOREIGN DATA WRAPPER postgres_fdw to joe;"
0 commit comments