@@ -20,8 +20,7 @@ Both shardlord and workers require extension built and installed. We depend
20
20
on pg_pathman extension so it must be installed too.
21
21
PostgreSQL location for building is derived from pg_config, you can also specify
22
22
path to it in PG_CONFIG var. PostgreSQL 10 (master branch as of writing this)
23
- is required. The whole process is of building and copying files to PG server
24
- is just:
23
+ is required. The whole process is of building and copying files to PG server is just:
25
24
26
25
git clone
27
26
cd pg_shardman
@@ -35,7 +34,7 @@ create extension pg_shardman cascade;
35
34
Have a look at postgresql.conf.common.template and postgresql.conf.lord.template
36
35
example configuration files. The former contains all shardman's and important
37
36
PostgreSQL GUCs for either shardlord and workers, the latter for shardlord only
38
- -- in particular, shardman.master defines whether the instance is shardlord or
37
+ -- in particular, shardman.shardlord defines whether the instance is shardlord or
39
38
not.
40
39
41
40
Immediately after starting the server with shardman library preloaded, but
@@ -99,11 +98,11 @@ CREATE TABLE nodes (
99
98
id serial PRIMARY KEY,
100
99
connstring text NOT NULL UNIQUE,
101
100
worker_status worker_node_status,
102
- -- While currently we don't support master and worker roles on one node,
103
- -- potentially node can be either worker, master or both, so we need 2 bits.
101
+ -- While currently we don't support lord and worker roles on one node,
102
+ -- potentially node can be either worker, lord or both, so we need 2 bits.
104
103
-- One bool with NULL might be fine, but it seems a bit counter-intuitive.
105
104
worker bool NOT NULL DEFAULT true,
106
- master bool NOT NULL DEFAULT false,
105
+ lord bool NOT NULL DEFAULT false,
107
106
-- cmd by which node was added
108
107
added_by bigint REFERENCES shardman.cmd_log(id)
109
108
);
0 commit comments