-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathentityLevelConfig.json
More file actions
1828 lines (1825 loc) · 58.7 KB
/
entityLevelConfig.json
File metadata and controls
1828 lines (1825 loc) · 58.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
* Copyright © 2016-2020 by IntegrIT S.A. dba Hackolade. All rights reserved.
*
* The copyright to the computer software herein is the property of IntegrIT S.A.
* The software may be used and/or copied only with the written permission of
* IntegrIT S.A. or in accordance with the terms and conditions stipulated in
* the agreement/contract under which the software has been supplied.
In order to define custom properties for any object's properties pane, you may copy/paste from the following,
making sure that you maintain a proper JSON format.
{
"propertyName": "Simple text",
"propertyKeyword": "simpletextProp",
"propertyType": "text",
"sampleGen": "&containerName|&entityName|&random|<value>"
},
{
"propertyName": "Text area",
"propertyKeyword": "textareaProp",
"propertyTooltip": "Popup for multi-line text entry",
"propertyType": "details",
"template": "textarea"
},
{
"propertyName": "Dropdown selection",
"propertyKeyword": "dropdownProp",
"propertyTooltip": "Select from list of options",
"propertyType": "select",
"options": [
"Option 1",
"Option 2",
"Option 3",
"Option 4"
]
},
{
"propertyName": "Numeric",
"propertyKeyword": "numericProp",
"propertyValidate": true,
"propertyType": "numeric",
"valueType": "number",
"allowNegative": false,
"sampleGen": "&containerName|&entityName|&random|<value>"
},
{
"propertyName": "Checkbox",
"propertyKeyword": "checkboxProp",
"propertyType": "checkbox"
},
{
"propertyName": "Group",
"propertyKeyword": "grpProp",
"propertyType": "group",
"propertyTooltip": "",
"structure": [
{
"propertyName": "Simple Grp Text",
"propertyKeyword": "simpleGrpText",
"propertyTooltip": "",
"propertyType": "text"
},
{
"propertyName": "Group Number",
"propertyKeyword": "grpNumber",
"propertyType": "numeric",
"valueType": "number",
"allowNegative": false
}
]
},
// “groupInput” can have the following states - 0 items, 1 item, and many items.
// “blockInput” has only 2 states - 0 items or 1 item.
// This gives us an easy way to represent it as an object and not as an array internally which is beneficial for processing
// and forward-engineering in particular.
{
"propertyName": "Block",
"propertyKeyword": "grpProp",
"propertyType": "block",
"propertyTooltip": "",
"structure": [
{
"propertyName": "Simple Grp Text",
"propertyKeyword": "simpleGrpText",
"propertyTooltip": "",
"propertyType": "text"
},
{
"propertyName": "Group Number",
"propertyKeyword": "grpNumber",
"propertyType": "numeric",
"valueType": "number",
"allowNegative": false
}
]
},
{
"propertyName": "Field List",
"propertyKeyword": "keyList",
"propertyType": "fieldList",
"template": "orderedList"
},
{
"propertyName": "List with attribute",
"propertyKeyword": "keyListOrder",
"propertyType": "fieldList",
"template": "orderedList",
"attributeList": [
"ascending",
"descending"
]
}
*/
[
{
"lowerTab": "Details",
"structure": [
{
"propertyName": "Comments",
"propertyKeyword": "description",
"shouldValidate": false,
"propertyTooltip": "comments",
"addTimestampButton": false,
"propertyType": "details",
"template": "textarea"
},
{
"propertyName": "Temporary",
"propertyKeyword": "temporary",
"propertyType": "checkbox"
},
{
"propertyName": "Unlogged",
"propertyKeyword": "unlogged",
"propertyType": "checkbox"
},
{
"propertyName": "If not exists",
"propertyKeyword": "ifNotExist",
"propertyTooltip": "When the IF NOT EXISTS clause is used, PostgreSQL will return a warning instead of an error if the specified table already exists. Cannot be used together with the OR REPLACE clause.",
"propertyType": "checkbox",
"defaultValue": true
},
{
"propertyName": "Inherits parent tables",
"propertyKeyword": "inherits",
"propertyType": "group",
"propertyTooltip": "To create a table with the same definition as another table, including columns, indexes, and table options. Foreign key definitions, as well as any DATA DIRECTORY or INDEX DIRECTORY table options specified on the original table, will NOT be created.",
"structure": [
{
"propertyName": "Table name",
"propertyKeyword": "parentTable",
"propertyTooltip": "To create a table with the same definition as another table, including columns, indexes, and table options. Foreign key definitions, as well as any DATA DIRECTORY or INDEX DIRECTORY table options specified on the original table, will NOT be created.",
"propertyType": "selecthashed",
"template": "entities",
"withEmptyOption": true,
"excludeCurrent": true
}
]
},
{
"propertyName": "Partition of",
"propertyKeyword": "partitionOf",
"propertyType": "selecthashed",
"template": "entities",
"withEmptyOption": true,
"excludeCurrent": true
},
{
"propertyName": "Partition bounds",
"propertyKeyword": "partitionBounds",
"propertyTooltip": "Partition bounds",
"propertyType": "details",
"template": "textarea",
"markdown": false
},
{
"propertyName": "Partitioning",
"propertyKeyword": "partitioning",
"propertyType": "group",
"groupItemLimit": 1,
"propertyTooltip": "Determines how a partitioned table's rows are distributed across partitions",
"structure": [
{
"propertyName": "Partition method",
"propertyKeyword": "partitionMethod",
"propertyTooltip": "Choose the desired partition method",
"propertyType": "select",
"defaultValue": "",
"options": ["", "RANGE", "LIST", "HASH"]
},
{
"propertyName": "Partition by",
"propertyKeyword": "partitionBy",
"propertyTooltip": "",
"propertyType": "select",
"defaultValue": "keys",
"options": ["keys", "expression"]
},
{
"propertyName": "Partition key",
"propertyKeyword": "compositePartitionKey",
"propertyType": "compositeKeySetter",
"disabledItemStrategy": "default",
"isCompositeKey": true,
"setPrimaryKey": false,
"template": "collectiontree",
"abbr": "PK",
"dependency": {
"key": "partitionBy",
"value": "keys"
}
},
{
"propertyName": "Expression",
"propertyKeyword": "partitioning_expression",
"propertyTooltip": "A SQL expression that returns a value from each row. In the simplest cases, it is a column name. This value is used to determine which partition should contain a row.",
"propertyType": "details",
"template": "textarea",
"markdown": false,
"dependency": {
"key": "partitionBy",
"value": "expression"
}
}
]
},
{
"propertyName": "Using method",
"propertyKeyword": "usingMethod",
"propertyTooltip": "Optional clause to specify the table access method to use to store the contents for the new table; the method needs be an access method of type TABLE.",
"propertyType": "text"
},
{
"propertyName": "Storage parameters",
"propertyKeyword": "storage_parameter",
"propertyType": "block",
"propertyTooltip": "For each individual table you create, you can set some table options. ",
"structure": [
{
"propertyName": "Fill factor",
"propertyKeyword": "fillfactor",
"propertyType": "numeric",
"valueType": "number",
"propertyTooltip": "A percentage between 10 and 100. Complete packing (100) is the default.",
"minValue": 10,
"maxValue": 100,
"step": 1
},
{
"propertyName": "Parallel workers",
"propertyKeyword": "parallel_workers",
"propertyType": "numeric",
"valueType": "number",
"propertyTooltip": "This sets the number of workers that should be used to assist a parallel scan of this table.",
"minValue": 0,
"step": 1
},
{
"propertyName": "Enable autovacuum",
"propertyKeyword": "autovacuum_enabled",
"propertyType": "checkbox",
"propertyTooltip": "If true, the autovacuum daemon will perform automatic VACUUM and/or ANALYZE operations on this table.",
"defaultValue": false
},
{
"propertyName": "Autovacuum params",
"propertyKeyword": "autovacuum",
"propertyType": "block",
"propertyTooltip": "Vacuum parameters",
"dependency": {
"key": "autovacuum_enabled",
"value": true
},
"structure": [
{
"propertyName": "Vacuum index cleanup",
"propertyKeyword": "vacuum_index_cleanup",
"propertyType": "checkbox",
"propertyTooltip": "Disabling index cleanup can speed up VACUUM very significantly, but may also lead to severely bloated indexes if table modifications are frequent."
},
{
"propertyName": "Vacuum truncate",
"propertyKeyword": "vacuum_truncate",
"propertyType": "checkbox",
"propertyTooltip": "If true, VACUUM and autovacuum do the truncation and the disk space for the truncated pages is returned to the operating system."
},
{
"propertyName": "Vacuum threshold",
"propertyKeyword": "autovacuum_vacuum_threshold",
"propertyType": "numeric",
"valueType": "number",
"propertyTooltip": "Specifies the minimum number of updated or deleted tuples needed to trigger a VACUUM in any one table.",
"minValue": 0,
"step": 1
},
{
"propertyName": "Vacuum scale factor",
"propertyKeyword": "autovacuum_vacuum_scale_factor",
"propertyType": "numeric",
"valueType": "number",
"propertyTooltip": "Specifies a fraction of the table size to add to autovacuum_vacuum_threshold when deciding whether to trigger a VACUUM.",
"minValue": 0
},
{
"propertyName": "Insert threshold",
"propertyKeyword": "autovacuum_vacuum_insert_threshold",
"propertyType": "numeric",
"valueType": "number",
"propertyTooltip": "Specifies the number of inserted tuples needed to trigger a VACUUM in any one table. ",
"minValue": -1,
"step": 1
},
{
"propertyName": "Insert scale factor",
"propertyKeyword": "autovacuum_vacuum_insert_scale_factor",
"propertyType": "numeric",
"valueType": "number",
"propertyTooltip": "Specifies a fraction of the table size to add to autovacuum_vacuum_insert_threshold when deciding whether to trigger a VACUUM.",
"minValue": 0
},
{
"propertyName": "Analyze threshold",
"propertyKeyword": "autovacuum_analyze_threshold",
"propertyType": "numeric",
"valueType": "number",
"propertyTooltip": "Specifies the minimum number of inserted, updated or deleted tuples needed to trigger an ANALYZE in any one table. ",
"minValue": 0,
"step": 1
},
{
"propertyName": "Analyze scale factor",
"propertyKeyword": "autovacuum_analyze_scale_factor",
"propertyType": "numeric",
"valueType": "number",
"propertyTooltip": "Specifies a fraction of the table size to add to autovacuum_analyze_threshold when deciding whether to trigger an ANALYZE. ",
"minValue": 0
},
{
"propertyName": "Vacuum cost delay",
"propertyKeyword": "autovacuum_vacuum_cost_delay",
"propertyType": "numeric",
"valueType": "number",
"propertyTooltip": "Specifies the cost delay value that will be used in automatic VACUUM operations. If -1 is specified, the regular vacuum_cost_delay value will be used. The value is specified as milliseconds.",
"minValue": -1
},
{
"propertyName": "Vacuum cost limit",
"propertyKeyword": "autovacuum_vacuum_cost_limit",
"propertyType": "numeric",
"valueType": "number",
"propertyTooltip": "Specifies the cost limit value that will be used in automatic VACUUM operations. If -1 is specified (which is the default), the regular vacuum_cost_limit value will be used.",
"minValue": -1,
"step": 1
},
{
"propertyName": "Freeze min age",
"propertyKeyword": "autovacuum_freeze_min_age",
"propertyType": "numeric",
"valueType": "number",
"propertyTooltip": "Specifies the cutoff age (in transactions) that VACUUM should use to decide whether to freeze row versions while scanning a table.",
"minValue": 0,
"step": 1
},
{
"propertyName": "Freeze max age",
"propertyKeyword": "autovacuum_freeze_max_age",
"propertyType": "numeric",
"valueType": "number",
"propertyTooltip": "Specifies the maximum age (in transactions) that a table's pg_class.relfrozenxid field can attain before a VACUUM operation is forced to prevent transaction ID wraparound within the table.",
"minValue": 0,
"step": 1
},
{
"propertyName": "Freeze table age",
"propertyKeyword": "autovacuum_freeze_table_age",
"propertyType": "numeric",
"valueType": "number",
"propertyTooltip": "Although users can set this value anywhere from zero to two billion, VACUUM will silently limit the effective value to 95% of autovacuum_freeze_max_age.",
"minValue": 0,
"maxValue": 2000000000,
"step": 1
},
{
"propertyName": "Multixact freeze min age",
"propertyKeyword": "autovacuum_multixact_freeze_min_age",
"propertyType": "numeric",
"valueType": "number",
"propertyTooltip": "Specifies the cutoff age (in multixacts) that VACUUM should use to decide whether to replace multixact IDs with a newer transaction ID or multixact ID while scanning a table.",
"minValue": 0,
"step": 1
},
{
"propertyName": "Multixact freeze max age",
"propertyKeyword": "autovacuum_multixact_freeze_max_age",
"propertyType": "numeric",
"valueType": "number",
"propertyTooltip": "Specifies the maximum age (in multixacts) that a table's pg_class.relminmxid field can attain before a VACUUM operation is forced to prevent multixact ID wraparound within the table.",
"minValue": 0,
"maxValue": 4000000000,
"step": 1
},
{
"propertyName": "Multixact freeze table age",
"propertyKeyword": "autovacuum_multixact_freeze_table_age",
"propertyType": "numeric",
"valueType": "number",
"propertyTooltip": "Although users can set this value anywhere from zero to two billion, VACUUM will silently limit the effective value to 95% of autovacuum_multixact_freeze_max_age, so that a periodic manual VACUUM has a chance to run before an anti-wraparound is launched for the table.",
"minValue": 0
},
{
"propertyName": "Log min duration",
"propertyKeyword": "log_autovacuum_min_duration",
"propertyType": "numeric",
"valueType": "number",
"propertyTooltip": "It is taken as milliseconds. Causes each action executed by autovacuum to be logged if it ran for at least the specified amount of time. Setting this to zero logs all autovacuum actions. -1 (the default) disables logging autovacuum actions.",
"minValue": -1,
"step": 1
}
]
},
{
"propertyName": "Enable TOAST autovacuum",
"propertyKeyword": "toast_autovacuum_enabled",
"propertyType": "checkbox",
"propertyTooltip": "If true, the autovacuum daemon will perform automatic VACUUM and/or ANALYZE operations on this table.",
"defaultValue": false
},
{
"propertyName": "TOAST parameters",
"propertyKeyword": "toast",
"propertyType": "block",
"propertyTooltip": "Toast parameters",
"dependency": {
"key": "toast_autovacuum_enabled",
"value": true
},
"structure": [
{
"propertyName": "Toast tuple target",
"propertyKeyword": "toast_tuple_target",
"propertyType": "numeric",
"valueType": "number",
"propertyTooltip": "The toast_tuple_target specifies the minimum tuple length required before we try to compress and/or move long column values into TOAST tables, and is also the target length we try to reduce the length below once toasting begins.",
"minValue": 0,
"step": 1
},
{
"propertyName": "Vacuum index cleanup",
"propertyKeyword": "toast_vacuum_index_cleanup",
"propertyType": "checkbox",
"propertyTooltip": "Disabling index cleanup can speed up VACUUM very significantly, but may also lead to severely bloated indexes if table modifications are frequent."
},
{
"propertyName": "Vacuum truncate",
"propertyKeyword": "toast_vacuum_truncate",
"propertyType": "checkbox",
"propertyTooltip": "If true, VACUUM and autovacuum do the truncation and the disk space for the truncated pages is returned to the operating system."
},
{
"propertyName": "Vacuum threshold",
"propertyKeyword": "toast_autovacuum_vacuum_threshold",
"propertyType": "numeric",
"valueType": "number",
"propertyTooltip": "Specifies the minimum number of updated or deleted tuples needed to trigger a VACUUM in any one table.",
"minValue": 0,
"step": 1
},
{
"propertyName": "Vacuum scale factor",
"propertyKeyword": "toast_autovacuum_vacuum_scale_factor",
"propertyType": "numeric",
"valueType": "number",
"propertyTooltip": "Specifies a fraction of the table size to add to autovacuum_vacuum_threshold when deciding whether to trigger a VACUUM.",
"minValue": 0
},
{
"propertyName": "Insert threshold",
"propertyKeyword": "toast_autovacuum_vacuum_insert_threshold",
"propertyType": "numeric",
"valueType": "number",
"propertyTooltip": "Specifies the number of inserted tuples needed to trigger a VACUUM in any one table. ",
"minValue": -1,
"step": 1
},
{
"propertyName": "Insert scale factor",
"propertyKeyword": "toast_autovacuum_vacuum_insert_scale_factor",
"propertyType": "numeric",
"valueType": "number",
"propertyTooltip": "Specifies a fraction of the table size to add to autovacuum_vacuum_insert_threshold when deciding whether to trigger a VACUUM.",
"minValue": 0
},
{
"propertyName": "Vacuum cost delay",
"propertyKeyword": "toast_autovacuum_vacuum_cost_delay",
"propertyType": "numeric",
"valueType": "number",
"propertyTooltip": "Specifies the cost delay value that will be used in automatic VACUUM operations. If -1 is specified, the regular vacuum_cost_delay value will be used. The value is specified as milliseconds.",
"minValue": -1
},
{
"propertyName": "Vacuum cost limit",
"propertyKeyword": "toast_autovacuum_vacuum_cost_limit",
"propertyType": "numeric",
"valueType": "number",
"propertyTooltip": "Specifies the cost limit value that will be used in automatic VACUUM operations. If -1 is specified (which is the default), the regular vacuum_cost_limit value will be used.",
"minValue": -1,
"step": 1
},
{
"propertyName": "Freeze min age",
"propertyKeyword": "toast_autovacuum_freeze_min_age",
"propertyType": "numeric",
"valueType": "number",
"propertyTooltip": "Specifies the cutoff age (in transactions) that VACUUM should use to decide whether to freeze row versions while scanning a table.",
"minValue": 0,
"step": 1
},
{
"propertyName": "Freeze max age",
"propertyKeyword": "toast_autovacuum_freeze_max_age",
"propertyType": "numeric",
"valueType": "number",
"propertyTooltip": "Specifies the maximum age (in transactions) that a table's pg_class.relfrozenxid field can attain before a VACUUM operation is forced to prevent transaction ID wraparound within the table.",
"minValue": 0,
"step": 1
},
{
"propertyName": "Freeze table age",
"propertyKeyword": "toast_autovacuum_freeze_table_age",
"propertyType": "numeric",
"valueType": "number",
"propertyTooltip": "Although users can set this value anywhere from zero to two billion, VACUUM will silently limit the effective value to 95% of autovacuum_freeze_max_age.",
"minValue": 0,
"maxValue": 2000000000,
"step": 1
},
{
"propertyName": "Multixact freeze min age",
"propertyKeyword": "toast_autovacuum_multixact_freeze_min_age",
"propertyType": "numeric",
"valueType": "number",
"propertyTooltip": "Specifies the cutoff age (in multixacts) that VACUUM should use to decide whether to replace multixact IDs with a newer transaction ID or multixact ID while scanning a table.",
"minValue": 0,
"step": 1
},
{
"propertyName": "Multixact freeze max age",
"propertyKeyword": "toast_autovacuum_multixact_freeze_max_age",
"propertyType": "numeric",
"valueType": "number",
"propertyTooltip": "Specifies the maximum age (in multixacts) that a table's pg_class.relminmxid field can attain before a VACUUM operation is forced to prevent multixact ID wraparound within the table.",
"minValue": 0,
"maxValue": 4000000000,
"step": 1
},
{
"propertyName": "Multixact freeze table age",
"propertyKeyword": "toast_autovacuum_multixact_freeze_table_age",
"propertyType": "numeric",
"valueType": "number",
"propertyTooltip": "Although users can set this value anywhere from zero to two billion, VACUUM will silently limit the effective value to 95% of autovacuum_multixact_freeze_max_age, so that a periodic manual VACUUM has a chance to run before an anti-wraparound is launched for the table.",
"minValue": 0,
"maxValue": 2000000000,
"step": 1
},
{
"propertyName": "Log min duration",
"propertyKeyword": "toast_log_autovacuum_min_duration",
"propertyType": "numeric",
"valueType": "number",
"propertyTooltip": "It is taken as milliseconds. Causes each action executed by autovacuum to be logged if it ran for at least the specified amount of time. Setting this to zero logs all autovacuum actions. -1 (the default) disables logging autovacuum actions.",
"minValue": -1,
"step": 1
}
]
},
{
"propertyName": "User catalog table",
"propertyKeyword": "user_catalog_table",
"propertyType": "checkbox",
"propertyTooltip": "Declare the table as an additional catalog table for purposes of logical replication."
}
]
},
{
"propertyName": "On commit",
"propertyKeyword": "on_commit",
"propertyTooltip": "Controls the behavior of temporary tables at the end of a transaction block can be controlled.",
"propertyType": "select",
"defaultValue": "PRESERVE ROWS",
"options": ["PRESERVE ROWS", "DELETE ROWS", "DROP"],
"dependency": {
"key": "temporary",
"value": true
}
},
{
"propertyName": "Tablespace",
"propertyKeyword": "table_tablespace_name",
"propertyTooltip": "Enter the name of an existing tablespace location for the database, or pg_default",
"defaultValue": "pg_default",
"propertyType": "text"
},
{
"propertyName": "As Select statement",
"propertyKeyword": "selectStatement",
"propertyType": "details",
"template": "textarea",
"markdown": false
},
{
"propertyName": "Remarks",
"propertyKeyword": "comments",
"propertyTooltip": "remarks",
"addTimestampButton": true,
"propertyType": "details",
"template": "textarea",
"valueType": "string"
}
],
"columnsRatio": [3.7, 5]
},
{
"lowerTab": "Composite keys",
"structure": [
{
"propertyName": "Primary key",
"propertyType": "group",
"groupItemLimit": 1,
"propertyKeyword": "primaryKey",
"propertyTooltip": {
"disabled": [
{
"tooltip": "Remove the existing single column primary key definition prior to unlock the possibility to create a composite primary key definition for this table",
"dependency": {
"type": "and",
"values": [
{
"level": "children",
"key": "primaryKey",
"value": true
},
{
"type": "not",
"values": {
"level": "children",
"key": "compositePrimaryKey",
"value": true
}
}
]
}
},
{
"tooltip": "Remove or update the existing composite primary key definition prior to unlock the possibility to create a new composite primary key definition for this table",
"dependency": {
"key": "primaryKey",
"minLength": 1
}
}
]
},
"structure": [
{
"propertyName": "Constraint name",
"propertyKeyword": "constraintName",
"propertyTooltip": "",
"propertyType": "text",
"validation": {
"indexKey": "compositePrimaryKey",
"message": "A primary key constraint cannot be created without any primary key selected"
}
},
{
"propertyName": "Key",
"propertyKeyword": "compositePrimaryKey",
"propertyType": "primaryKeySetter",
"requiredProperty": true,
"abbr": "pk"
},
{
"propertyName": "Include non-key columns",
"propertyKeyword": "indexInclude",
"propertyType": "fieldList",
"template": "orderedList",
"propertyTooltip": "The optional INCLUDE clause specifies a list of columns which will be included in the constraint as non-key columns."
},
{
"propertyName": "With storage parameters",
"propertyKeyword": "indexStorageParameters",
"propertyType": "details",
"template": "textarea",
"markdown": false,
"addTimestampButton": false
},
{
"propertyName": "Index tablespace",
"propertyKeyword": "indexTablespace",
"propertyTooltip": "",
"propertyType": "text"
},
{
"propertyName": "Comment",
"propertyKeyword": "indexComment",
"propertyTooltip": "comment",
"addTimestampButton": false,
"propertyType": "details",
"template": "textarea"
},
{
"propertyName": "Deferrable",
"propertyKeyword": "deferrable",
"propertyTooltip": "\nA constraint that is not deferrable will be checked immediately after every command. Checking of constraints that are deferrable can be postponed until the end of the transaction",
"propertyType": "select",
"defaultValue": "",
"options": ["", "DEFERRABLE", "NOT DEFERRABLE"]
},
{
"propertyName": "Check time",
"propertyKeyword": "deferrableConstraintCheckTime",
"propertyTooltip": "\nIf the constraint is INITIALLY IMMEDIATE, it is checked after each statement. This is the default. If the constraint is INITIALLY DEFERRED, it is checked only at the end of the transaction",
"propertyType": "select",
"defaultValue": "",
"options": ["", "INITIALLY IMMEDIATE", "INITIALLY DEFERRED"],
"dependency": {
"key": "deferrable",
"value": "DEFERRABLE"
}
}
],
"disabledOnCondition": [
{
"level": "children",
"value": {
"type": "and",
"values": [
{
"key": "primaryKey",
"value": true
},
{
"type": "or",
"values": [
{
"key": "compositePrimaryKey",
"value": false
},
{
"key": "compositePrimaryKey",
"exist": false
}
]
},
{
"type": "or",
"values": [
{
"key": "compositeUniqueKey",
"value": false
},
{
"key": "compositeUniqueKey",
"exist": false
}
]
}
]
}
}
]
},
{
"propertyName": "Unique key",
"propertyType": "group",
"propertyKeyword": "uniqueKey",
"propertyTooltip": "",
"structure": [
{
"propertyName": "Constraint name",
"propertyKeyword": "constraintName",
"propertyTooltip": "",
"propertyType": "text",
"validation": {
"indexKey": "compositeUniqueKey",
"message": "A unique key constraint cannot be created without any unique key selected"
}
},
{
"propertyName": "Key",
"propertyKeyword": "compositeUniqueKey",
"propertyType": "compositeKeySetter",
"disabledItemStrategy": "default",
"setPrimaryKey": false,
"template": "collectiontree",
"requiredProperty": true,
"isCompositeKey": true,
"abbr": "uk"
},
{
"propertyName": "Include non-key columns",
"propertyKeyword": "indexInclude",
"propertyType": "fieldList",
"template": "orderedList",
"propertyTooltip": "The optional INCLUDE clause specifies a list of columns which will be included in the constraint as non-key columns."
},
{
"propertyName": "With storage parameters",
"propertyKeyword": "indexStorageParameters",
"propertyType": "details",
"template": "textarea",
"markdown": false,
"addTimestampButton": false
},
{
"propertyName": "Index tablespace",
"propertyKeyword": "indexTablespace",
"propertyTooltip": "",
"propertyType": "text"
},
{
"propertyName": "Comment",
"propertyKeyword": "indexComment",
"propertyTooltip": "comment",
"addTimestampButton": false,
"propertyType": "details",
"template": "textarea"
},
{
"propertyName": "Nulls Distinct",
"propertyKeyword": "nullsDistinct",
"propertyType": "select",
"defaultValue": "",
"options": ["", "NULLS DISTINCT", "NULLS NOT DISTINCT"],
"dependency": {
"type": "or",
"values": [
{
"level": "model",
"key": "dbVersion",
"value": "v15.x"
}
]
}
},
{
"propertyName": "Deferrable",
"propertyKeyword": "deferrable",
"propertyTooltip": "\nA constraint that is not deferrable will be checked immediately after every command. Checking of constraints that are deferrable can be postponed until the end of the transaction",
"propertyType": "select",
"defaultValue": "",
"options": ["", "DEFERRABLE", "NOT DEFERRABLE"]
},
{
"propertyName": "Check time",
"propertyKeyword": "deferrableConstraintCheckTime",
"propertyTooltip": "\nIf the constraint is INITIALLY IMMEDIATE, it is checked after each statement. This is the default. If the constraint is INITIALLY DEFERRED, it is checked only at the end of the transaction",
"propertyType": "select",
"defaultValue": "",
"options": ["", "INITIALLY IMMEDIATE", "INITIALLY DEFERRED"],
"dependency": {
"key": "deferrable",
"value": "DEFERRABLE"
}
},
{
"propertyName": "Alternate key",
"propertyKeyword": "alternateKey",
"propertyTooltip": "",
"propertyType": "checkbox",
"setFieldPropertyBy": "compositeUniqueKey"
}
]
}
]
},
{
"lowerTab": "Indexes",
"structure": [
{
"propertyName": "Index",
"propertyType": "group",
"propertyKeyword": "Indxs",
"propertyTooltip": "In general you should only add indexes to match the queries your application uses. Any extra will waste resources.",
"cleanDependency": true,
"structure": [
{
"propertyName": "Name",
"propertyKeyword": "indxName",
"propertyTooltip": "Optional, if not specified an automatic name will be assigned. Index name are needed to drop indexes and appear in error messages when a constraint is violated.",
"propertyType": "text",
"dependency": {
"type": "not",
"values": [
{
"key": "ifNotExist",
"value": true
}
]
}
},
{
"propertyName": "Name",
"propertyKeyword": "indxName",
"propertyTooltip": "",
"propertyType": "text",
"validation": {
"required": true
},
"dependency": {
"key": "ifNotExist",
"value": true
}
},
{
"propertyName": "Activated",
"propertyKeyword": "isActivated",
"propertyTooltip": "Deactivated item will be not included in FE script",
"propertyType": "checkbox",
"defaultValue": true
},
{
"propertyName": "Method",
"propertyKeyword": "index_method",
"propertyTooltip": "",
"propertyType": "select",
"defaultValue": "btree",
"options": ["", "btree", "hash", "gist", "spgist", "gin", "brin", "hnsw", "ivfflat"]
},
{
"propertyName": "Unique",
"propertyKeyword": "unique",
"propertyTooltip": "Causes the system to check for duplicate values in the table when the index is created (if data already exist) and each time data is added. Attempts to insert or update data which would result in duplicate entries will generate an error.",
"defaultValue": false,
"propertyType": "checkbox",
"dependency": {
"type": "or",
"values": [
{
"key": "index_method",
"value": "btree"
}
]
}
},
{
"propertyName": "Nulls Distinct",
"propertyKeyword": "nullsDistinct",
"propertyType": "select",
"defaultValue": "",
"options": ["", "NULLS DISTINCT", "NULLS NOT DISTINCT"],
"dependency": {
"type": "and",
"values": [
{
"key": "unique",
"value": true
},
{
"key": "index_method",
"value": "btree"
},
{
"type": "or",
"values": [
{
"level": "model",
"key": "dbVersion",
"value": "v15.x"
}
]
}
]
}
},
{
"propertyName": "Concurrent build",
"propertyKeyword": "concurrently",
"propertyTooltip": "When this option is used, PostgreSQL will build the index without taking any locks that prevent concurrent inserts, updates, or deletes on the table; whereas a standard index build locks out writes (but not reads) on the table until it's done.",
"defaultValue": false,
"propertyType": "checkbox",
"dependency": {
"type": "not",
"values": [
{
"key": "index_method",
"value": "hnsw"
},
{
"key": "index_method",
"value": "ivfflat"
}
]
}
},
{
"propertyName": "If not exist",
"propertyKeyword": "ifNotExist",