Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4aa57e8

Browse files
author
Vladimir Ershov
committed
check library loaded && fix var name in doc
1 parent7c62684 commit4aa57e8

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

‎README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Install extension as follows:
3333
The extension defines a number of PostgreSQL variables (GUC). This variables
3434
help to handle scheduler configuration.
3535

36-
***schedule.enable** - boolean, if scheduler is enabled in this system.
36+
***schedule.enabled** - boolean, if scheduler is enabled in this system.
3737
Default value: false.
3838
***schedule.database** - text, list of database names on which scheduler
3939
is enabled. Database names should be separated by comma.
@@ -78,7 +78,7 @@ Put the following string to your `postgresql.conf`:
7878

7979
Then start`psql` and execute the following commands:
8080

81-
# ALTER SYSTEM SET schedule.enable = true;
81+
# ALTER SYSTEM SET schedule.enabled = true;
8282
# ALTER SYSTEM SET schedule.database = 'database1,database2';
8383
# ALTER DATABASE database1 SET schedule.max_workers = 5;
8484
# ALTER DATABASE database2 SET schedule.max_workers = 3;
@@ -91,7 +91,7 @@ is no need to restart.
9191
Here is an example of`postgresql.conf`:
9292

9393
shared_preload_libraries = 'pgpro_scheduler'
94-
schedule.enable = on
94+
schedule.enabled = on
9595
schedule.database = 'database1,database2'
9696
schedule.max_workers = 5
9797

‎README.rus.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pgpro_scheduler это расширение PostgreSQL и не требует н
3636
Расширение определяет ряд переменных в PostgreSQL (GUC), которые позволяют
3737
управлять его конфигурацией.
3838

39-
***schedule.enable** - двоичная переменная, которая определяет разрешено ли
39+
***schedule.enabled** - двоичная переменная, которая определяет разрешено ли
4040
выполнение расширения. По умолчанию: false.
4141
***schedule.database** - строковая переменная, указывает с какими базам может
4242
работать планировщик. Что бы указать несколько баз, нужно перечислить их
@@ -80,7 +80,7 @@ PostgreSQL, которые описаны в предыдущем разделе
8080

8181
Далее в`psql` введите следующие команды:
8282

83-
# ALTER SYSTEM SET schedule.enable = true;
83+
# ALTER SYSTEM SET schedule.enabled = true;
8484
# ALTER SYSTEM SET schedule.database = 'database1,database2';
8585
# ALTER DATABASE database1 SET schedule.max_workers = 5;
8686
# ALTER DATABASE database2 SET schedule.max_workers = 3;
@@ -94,7 +94,7 @@ PostgreSQL, которые описаны в предыдущем разделе
9494
исполняемых задач в обоих базах одинаково:
9595

9696
shared_preload_libraries = 'pgpro_scheduler'
97-
schedule.enable = on
97+
schedule.enabled = on
9898
schedule.database = 'database1,database2'
9999
schedule.max_workers = 5
100100

‎src/pgpro_scheduler.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,12 @@ pg_scheduler_startup(void)
399399

400400
void_PG_init(void)
401401
{
402+
if(!process_shared_preload_libraries_in_progress)
403+
{
404+
elog(ERROR,"pgpro_scheduler module must be initialized by Postmaster. "
405+
"Put the following line to configuration file: "
406+
"shared_preload_libraries='pgpro_scheduler'");
407+
}
402408
DefineCustomStringVariable(
403409
"schedule.schema",
404410
"The name of scheduler schema",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp