Skip to content

Commit 5f455c1

Browse files
committed
improve README.md
1 parent d4f0dcc commit 5f455c1

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

README.md

+11-7
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,11 @@ Set partition creation callback to be invoked for each attached or created parti
254254
}
255255
```
256256

257+
```plpgsql
258+
set_set_spawn_using_bgw(relation REGCLASS, value BOOLEAN)
259+
```
260+
When INSERTing new data beyond the partitioning range, use SpawnPartitionsWorker to create new partitions in a separate transaction.
261+
257262
## Views and tables
258263

259264
#### `pathman_config` --- main config storage
@@ -262,19 +267,18 @@ CREATE TABLE IF NOT EXISTS pathman_config (
262267
partrel REGCLASS NOT NULL PRIMARY KEY,
263268
attname TEXT NOT NULL,
264269
parttype INTEGER NOT NULL,
265-
range_interval TEXT,
266-
267-
CHECK (parttype IN (1, 2)) /* check for allowed part types */ );
270+
range_interval TEXT);
268271
```
269272
This table stores a list of partitioned tables.
270273

271274
#### `pathman_config_params` --- optional parameters
272275
```plpgsql
273276
CREATE TABLE IF NOT EXISTS pathman_config_params (
274-
partrel REGCLASS NOT NULL PRIMARY KEY,
275-
enable_parent BOOLEAN NOT NULL DEFAULT TRUE,
276-
auto BOOLEAN NOT NULL DEFAULT TRUE,
277-
init_callback REGPROCEDURE NOT NULL DEFAULT 0);
277+
partrel REGCLASS NOT NULL PRIMARY KEY,
278+
enable_parent BOOLEAN NOT NULL DEFAULT TRUE,
279+
auto BOOLEAN NOT NULL DEFAULT TRUE,
280+
init_callback REGPROCEDURE NOT NULL DEFAULT 0,
281+
spawn_using_bgw BOOLEAN NOT NULL DEFAULT FALSE);
278282
```
279283
This table stores optional parameters which override standard behavior.
280284

0 commit comments

Comments
 (0)