File tree Expand file tree Collapse file tree 14 files changed +241
-94
lines changed Expand file tree Collapse file tree 14 files changed +241
-94
lines changed Original file line number Diff line number Diff line change 1
1
data_sync /*
2
2
data_upstream /*
3
+ data /1gb
Original file line number Diff line number Diff line change
1
+ COPY " user"
2
+ FROM
3
+ ' /data/users.csv' WITH CSV HEADER;
4
+
5
+ COPY " label"
6
+ FROM
7
+ ' /data/labels.csv' WITH CSV HEADER;
8
+
9
+ COPY " issue"
10
+ FROM
11
+ ' /data/issues.csv' WITH CSV HEADER;
12
+
13
+ COPY " issue"
14
+ FROM
15
+ ' /data/issues_2.csv' WITH CSV HEADER;
16
+
17
+ COPY " issue"
18
+ FROM
19
+ ' /data/issues_3.csv' WITH CSV HEADER;
20
+
21
+ COPY " issue"
22
+ FROM
23
+ ' /data/issues_4.csv' WITH CSV HEADER;
24
+
25
+ COPY " issue"
26
+ FROM
27
+ ' /data/issues_5.csv' WITH CSV HEADER;
28
+
29
+ COPY " issue"
30
+ FROM
31
+ ' /data/issues_6.csv' WITH CSV HEADER;
32
+
33
+ COPY " issueLabel"
34
+ FROM
35
+ ' /data/issue_labels.csv' WITH CSV HEADER;
36
+
37
+ COPY " issueLabel"
38
+ FROM
39
+ ' /data/issue_labels_2.csv' WITH CSV HEADER;
40
+
41
+ COPY " issueLabel"
42
+ FROM
43
+ ' /data/issue_labels_3.csv' WITH CSV HEADER;
44
+
45
+ COPY " issueLabel"
46
+ FROM
47
+ ' /data/issue_labels_4.csv' WITH CSV HEADER;
48
+
49
+ COPY " issueLabel"
50
+ FROM
51
+ ' /data/issue_labels_5.csv' WITH CSV HEADER;
52
+
53
+ COPY " issueLabel"
54
+ FROM
55
+ ' /data/issue_labels_6.csv' WITH CSV HEADER;
56
+
57
+ COPY " comment"
58
+ FROM
59
+ ' /data/comments.csv' WITH CSV HEADER;
60
+
61
+ COPY " comment"
62
+ FROM
63
+ ' /data/comments_2.csv' WITH CSV HEADER;
64
+
65
+ COPY " comment"
66
+ FROM
67
+ ' /data/comments_3.csv' WITH CSV HEADER;
68
+
69
+ COPY " comment"
70
+ FROM
71
+ ' /data/comments_4.csv' WITH CSV HEADER;
72
+
73
+ COPY " comment"
74
+ FROM
75
+ ' /data/comments_5.csv' WITH CSV HEADER;
76
+
77
+ COPY " comment"
78
+ FROM
79
+ ' /data/comments_6.csv' WITH CSV HEADER;
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ services :
2
+ postgres_primary :
3
+ extends :
4
+ file : docker-compose.base.yml
5
+ service : postgres_primary
6
+ volumes :
7
+ - zbugs_pgdata_upstream:/var/lib/postgresql/data
8
+ - ./share_sql/base.sql:/docker-entrypoint-initdb.d/a.sql
9
+ - ./1gb_upstream/init.sql:/docker-entrypoint-initdb.d/b.sql
10
+ - ./share_sql/index.sql:/docker-entrypoint-initdb.d/c.sql
11
+ - ./data/1gb:/data
12
+ postgres_replica :
13
+ extends :
14
+ file : docker-compose.base.yml
15
+ service : postgres_replica
16
+ volumes :
17
+ zbugs_pgdata_sync :
18
+ driver : local
19
+ zbugs_pgdata_upstream :
20
+ driver : local
Original file line number Diff line number Diff line change
1
+ x-postgres-common : &postgres-common
2
+ image : postgres:16.2-alpine
3
+ shm_size : 1g
4
+ user : postgres
5
+ restart : always
6
+ healthcheck :
7
+ test : ' pg_isready -U user --dbname=postgres'
8
+ interval : 10s
9
+ timeout : 5s
10
+ retries : 5
11
+
12
+ services :
13
+ postgres_primary :
14
+ << : *postgres-common
15
+ ports :
16
+ - 6434:5432
17
+ environment :
18
+ POSTGRES_USER : user
19
+ POSTGRES_DB : postgres
20
+ POSTGRES_PASSWORD : password
21
+ command : |
22
+ postgres
23
+ -c wal_level=logical
24
+ -c max_wal_senders=10
25
+ -c max_replication_slots=5
26
+ -c hot_standby=on
27
+ -c hot_standby_feedback=on
28
+
29
+ postgres_replica :
30
+ << : *postgres-common
31
+ ports :
32
+ - 6435:5432
33
+ environment :
34
+ POSTGRES_USER : user
35
+ POSTGRES_DB : postgres
36
+ POSTGRES_PASSWORD : password
37
+ command : |
38
+ postgres
39
+ -c wal_level=logical
40
+ -c max_wal_senders=10
41
+ -c max_replication_slots=5
42
+ -c hot_standby=on
43
+ -c hot_standby_feedback=on
44
+ volumes :
45
+ - zbugs_pgdata_sync:/var/lib/postgresql/data
Original file line number Diff line number Diff line change 1
- x-postgres-common : &postgres-common
2
- image : postgres:16.2-alpine
3
- shm_size : 1g
4
- user : postgres
5
- restart : always
6
- healthcheck :
7
- test : ' pg_isready -U user --dbname=postgres'
8
- interval : 10s
9
- timeout : 5s
10
- retries : 5
11
-
12
1
services :
13
2
postgres_primary :
14
- << : *postgres-common
15
- ports :
16
- - 6434:5432
17
- environment :
18
- POSTGRES_USER : user
19
- POSTGRES_DB : postgres
20
- POSTGRES_PASSWORD : password
21
- command : |
22
- postgres
23
- -c wal_level=logical
24
- -c max_wal_senders=10
25
- -c max_replication_slots=5
26
- -c hot_standby=on
27
- -c hot_standby_feedback=on
3
+ extends :
4
+ file : docker-compose.base.yml
5
+ service : postgres_primary
28
6
volumes :
29
7
- zbugs_pgdata_upstream:/var/lib/postgresql/data
30
- - ./init_upstream:/docker-entrypoint-initdb.d
31
-
8
+ - ./share_sql/base.sql:/docker-entrypoint-initdb.d/a.sql
9
+ - ./github_upstream/init.sql:/docker-entrypoint-initdb.d/b.sql
10
+ - ./share_sql/index.sql:/docker-entrypoint-initdb.d/c.sql
11
+ - ./data/github:/data
32
12
postgres_replica :
33
- << : *postgres-common
34
- ports :
35
- - 6435:5432
36
- environment :
37
- POSTGRES_USER : user
38
- POSTGRES_DB : postgres
39
- POSTGRES_PASSWORD : password
40
- command : |
41
- postgres
42
- -c wal_level=logical
43
- -c max_wal_senders=10
44
- -c max_replication_slots=5
45
- -c hot_standby=on
46
- -c hot_standby_feedback=on
47
- volumes :
48
- - zbugs_pgdata_sync:/var/lib/postgresql/data
49
- - ./init_sync:/docker-entrypoint-initdb.d
13
+ extends :
14
+ file : docker-compose.base.yml
15
+ service : postgres_replica
50
16
51
17
volumes :
52
18
zbugs_pgdata_sync :
You can’t perform that action at this time.
0 commit comments