Исходный код СУБД RuDB — свободной СУБД с открытым исходным кодом на базе PostgreSQL
rudb
2 days ago bd039d1e92813358c5c5a1e346b49074baf513f2
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
# ----------
# src/test/regress/parallel_schedule
#
# Most test scripts can be run after running just test_setup and possibly
# create_index.  Exceptions to this rule are documented below.
#
# By convention, we put no more than twenty tests in any one parallel group;
# this limits the number of connections needed to run the tests.
# ----------
 
# required setup steps
test: test_setup
 
# ----------
# The first group of parallel tests
# ----------
test: boolean char name varchar text int2 int4 int8 oid float4 float8 bit numeric txid uuid enum money rangetypes pg_lsn regproc
 
# ----------
# The second group of parallel tests
# multirangetypes depends on rangetypes
# multirangetypes shouldn't run concurrently with type_sanity
# ----------
test: strings md5 numerology point lseg line box path polygon circle date time timetz timestamp timestamptz interval inet macaddr macaddr8 multirangetypes
 
# ----------
# Another group of parallel tests
# geometry depends on point, lseg, line, box, path, polygon, circle
# horology depends on date, time, timetz, timestamp, timestamptz, interval
# ----------
test: geometry horology tstypes regex type_sanity rudb_oracle_scalar_types opr_sanity misc_sanity comments expressions unicode xid mvcc database stats_import pg_ndistinct pg_dependencies oid8 encoding euc_kr
 
# ----------
# Load huge amounts of data
# We should split the data files into single files and then
# execute two copy tests in parallel, to check that copy itself
# is concurrent safe.
# ----------
test: copy copyselect copydml copyencoding insert insert_conflict
 
# ----------
# More groups of parallel tests
# Note: many of the tests in later groups depend on create_index
# ----------
test: create_function_c create_misc create_operator create_procedure create_table create_type create_schema
test: create_index create_index_spgist create_view index_including index_including_gist
 
# ----------
# Another group of parallel tests
# ----------
test: create_aggregate create_function_sql create_cast constraints triggers select inherit typed_table vacuum drop_if_exists updatable_views roleattributes create_am hash_func errors infinite_recurse
 
# ----------
# sanity_check does a vacuum, affecting the sort order of SELECT *
# results. So it should not run parallel to other tests.
# ----------
test: sanity_check
 
# ----------
# Another group of parallel tests
# aggregates depends on create_aggregate
# join depends on create_misc
# ----------
test: select_into select_distinct select_distinct_on select_implicit select_having subselect union case join aggregates transactions random portals arrays btree_index hash_index update delete namespace prepared_xacts
 
# ----------
# Another group of parallel tests
# ----------
test: brin gin gist spgist privileges init_privs security_label collate matview lock replica_identity rowsecurity object_address tablesample groupingsets drop_operator password identity generated_stored join_hash
 
# ----------
# Additional BRIN tests
# ----------
test: brin_bloom brin_multi
 
# ----------
# Another group of parallel tests
# ----------
test: create_table_like alter_generic alter_operator misc async dbsize merge misc_functions nls sysviews tsrf tid tidscan tidrangescan collate.utf8 collate.icu.utf8 incremental_sort create_role without_overlaps generated_virtual
 
# collate.linux.utf8 and collate.icu.utf8 tests cannot be run in parallel with each other
# psql depends on create_am
# amutils depends on geometry, create_index_spgist, hash_index, brin
test: rules psql psql_crosstab psql_pipeline amutils stats_ext collate.linux.utf8 collate.windows.win1252
 
# ----------
# Run these alone so they don't run out of parallel workers
# select_parallel depends on create_misc
# ----------
test: select_parallel
test: write_parallel
test: vacuum_parallel
 
# Run this alone, because concurrent DROP TABLE would make non-superuser
# "ANALYZE;" fail with "relation with OID $n does not exist".
test: maintain_every
 
# no relation related tests can be put in this group
test: publication subscription
 
# ----------
# Another group of parallel tests
# select_views depends on create_view
# ----------
test: select_views portals_p2 portals_inflight foreign_key dependency guc bitmapops combocid tsearch tsdicts foreign_data window xmlmap functional_deps advisory_lock indirect_toast equivclass stats_rewrite alter_column_type
 
# ----------
# Another group of parallel tests (JSON related)
# ----------
test: json jsonb json_encoding jsonpath jsonpath_encoding jsonb_jsonpath sqljson sqljson_queryfuncs sqljson_jsontable
 
# ----------
# Another group of parallel tests
# with depends on create_misc
# NB: temp.sql does reconnects which transiently uses 2 connections,
# so keep this parallel group to at most 19 tests
# ----------
test: plancache limit plpgsql copy2 temp domain rangefuncs prepare conversion truncate alter_table sequence polymorphism rowtypes returning largeobject with xml
 
# rowtypes_alter relies on cached plans surviving across statements, which
# concurrent DDL can prevent, and on parallel workers being available, so run
# it by itself
test: rowtypes_alter
 
# ----------
# Another group of parallel tests
#
# The stats test resets stats, so nothing else needing stats access can be in
# this group.
# ----------
test: partition_join partition_prune reloptions hash_part indexing partition_aggregate partition_info tuplesort explain memoize stats predicate numa eager_aggregate planner_est attribute_version
 
# ----------
# Another group of parallel tests (compression)
# ----------
test: compression compression_lz4 compression_pglz cluster
 
# event_trigger depends on create_am and cannot run concurrently with
# any test that runs DDL
# oidjoins is read-only, though, and should run late for best coverage
test: oidjoins event_trigger
 
 
# event_trigger_login cannot run concurrently with any other tests because
# on-login event handling could catch connection of a concurrent test.
test: event_trigger_login
 
# this test also uses event triggers, so likewise run it by itself
test: fast_default
 
# 1C compatibility regression tests
test: rudb_oracle_core_types
test: one_c_index_reltype
test: one_c_multicolumn_analyze
test: one_c_multicolumn_selectivity
test: one_c_multicolumn_saop
test: one_c_multicolumn_join
test: one_c_planner_or_sort
test: one_c_planner_policy
test: one_c_executor_guaranteed_empty
test: one_c_temp_rd
test: one_c_temp_memory_catalog_basic
test: one_c_temp_memory_catalog_ddl
test: one_c_temp_memory_catalog_inplace
test: one_c_temp_memory_catalog_xact
test: one_c_temp_memory_catalog_index
test: one_c_temp_memory_catalog_toast
test: one_c_temp_memory_catalog_sequence
test: one_c_temp_memory_catalog_define_relation
test: one_c_temp_memory_catalog_lifecycle
test: one_c_temp_invalidation_locking
test: one_c_temp_storage_parallel
test: one_c_legacy_time_pseudotypes
 
# RuDB package compatibility regression test
# BEGIN QDB_DBMS_GEN PACKAGE_REGRESSION_TESTS
test: dbms_vector_chain
# END QDB_DBMS_GEN PACKAGE_REGRESSION_TESTS
test: utl_raw
test: utl_file
test: utl_compress utl_compress1
test: utl_ref
test: dbms_json dbms_json_schema dbms_network_acl_utility
test: dbms_soda_public_wrappers dbms_soda_collection_methods dbms_soda_document_cursor_methods dbms_soda_oracle_pg_differences
test: owa_cookie owa_cache htp htf owa_pattern
test: dbms_ddl dbms_metadata
test: dbms_aq
test: dbms_tns dbms_warning dbms_alert
test: dbms_ash
test: rudb_r04b_packages
test: dbms_describe dbms_file_transfer dbms_system utl_gdk
test: dbms_logrep
test: dbms_java_loadjava
test: dbms_java_loadjava_bounds
test: dbms_java_loadjava_errors
test: dbms_java_reg_catalog
test: dbms_java_methods
test: dbms_xmlstore dbms_xmlsave
test: utl_http
test: dbms_vector
test: dbms_crypto
test: dbms_lob
test: utl_tcp
test: utl_smtp
test: dbms_db_version dbms_sqlset dbms_stat_funcs dbms_trace
test: dbms_stats
test: dbms_pipe
 
# run tablespace test at the end because it drops the tablespace created during
# setup that other tests may use.
test: tablespace
test: dbms_blockchain_table dbms_blockchain_table_ext
test: rudb_identity
test: dbms_scheduler_reg_catalog dbms_scheduler_job dbms_scheduler_job_bounds dbms_scheduler_job_errors
test: dbms_scheduler_calendar
test: dbms_scheduler_attr
 
# Пачка 2.3: повтор по календарю, без ожидания координатора.
test: dbms_scheduler_repeat
 
# Пачка 2.4: очистка журнала, без ожидания.
test: dbms_scheduler_purge
 
# Пачка 2.5: остальные клаузы календаря, без ожидания координатора.
test: dbms_scheduler_calendar2
 
# Пачка 3.1: программа и STORED_PROCEDURE, без ожидания координатора.
test: dbms_scheduler_program
 
# Пачка 3.2: аргументы программы, без ожидания координатора.
test: dbms_scheduler_argument
 
# Пачка 3.3: расписание, задание на программу, COPY_JOB. Без ожидания координатора.
test: dbms_scheduler_schedule
test: acl_sdd_826321
test: acl_sdd_826322
 
# Пачка 4.1: класс заданий и уровень журнала. Без ожидания координатора.
test: dbms_scheduler_job_class
 
# Пачка 4.2: атрибуты планировщика. Без ожидания координатора.
test: dbms_scheduler_global
 
# Пачка 4.3: окна. Без ожидания координатора.
test: dbms_scheduler_window
 
# Пачка 5.1: каталог цепочки. Без ожидания координатора.
test: dbms_scheduler_chain
 
# Пачка 5.2: атрибуты шага и ошибки запуска. Без ожидания координатора.
test: dbms_scheduler_chain_run
 
# Пачка 6.1: учётные данные. Без ожидания координатора.
test: dbms_scheduler_credential
 
# Пачка 6.2: команда ОС. Каталог — пара со стендом. Запуск процесса — только rudb.
test: dbms_scheduler_executable
test: dbms_scheduler_rudb_executable
 
# Пачка 7.1: расписание по событию и подписчик. Без ожидания координатора.
test: dbms_scheduler_event
 
# Пачка 7.2. File watcher и шаг цепочки по событию. Координатор не ждёт.
test: dbms_scheduler_filewatch
 
# Пачка 7.3. Почтовое уведомление. Отправка письма не ждёт сеть.
test: dbms_scheduler_email
 
# Пачка 8.1. Группа и члены. Без ожидания координатора.
test: dbms_scheduler_group
 
# Пачка 8.2. Несовместимость. Без ожидания координатора.
test: dbms_scheduler_incompat
 
# Пачка 8.3. Ресурс. Без ожидания координатора.
test: dbms_scheduler_resource
 
# Пачка 10.1. Пакетное создание заданий. Без ожидания координатора.
test: dbms_scheduler_batch
 
# Пачка 10.3. Стиль задания. Без ожидания координатора.
test: dbms_scheduler_job_style
 
# Цепочка C.2. Журнал через синхронный RUN_JOB. Без ожидания координатора.
test: dbms_scheduler_chain_journal
 
# Цепочка C.4b. Смена расписания в каталоге. Без ожидания координатора.
test: dbms_scheduler_chain_reschedule
 
# Цепочка C.6. Имя задания. Без ожидания координатора.
test: dbms_scheduler_chain_name
 
# Волна 9. Назначение и агент. Без ожидания координатора.
test: dbms_scheduler_destination
 
# DBMS_AQADM, пачка 0.5. Каталог и совместимость позиционного вызова.
test: dbms_aqadm_reg_catalog
test: dbms_aqadm_reg_compat
 
# DBMS_AQADM, пачка 1.1. Таблица очередей и длинные имена.
test: dbms_aqadm_create_queue_table_hr
test: dbms_aqadm_reg_names
 
# DBMS_AQADM, пачка 1.2. Очередь: создать, запустить, остановить, изменить, удалить.
test: dbms_aqadm_create_queue
 
# DBMS_AQADM, пачка 1.3. Снятие таблицы очередей, в том числе с оставшейся очередью.
test: dbms_aqadm_drop_queue_table
 
# DBMS_AQADM, пачка 1.4. Изменение таблицы очередей.
test: dbms_aqadm_alter_queue_table
 
# DBMS_AQADM, пачка B.1. Права на очередь.
test: dbms_aqadm_grant_queue_privilege
test: dbms_aqadm_revoke_queue_privilege
 
# DBMS_AQADM, пачка B.2. Подписчики очереди.
test: dbms_aqadm_add_subscriber
test: dbms_aqadm_remove_subscriber
 
# DBMS_AQADM, пачка B.3. Агент AQ.
test: dbms_aqadm_aq_agent
 
# DBMS_AQADM, пачка 2.1. Непостоянная очередь.
test: dbms_aqadm_create_np_queue
 
# DBMS_AQADM, пачка 2.2. Очистка таблицы очередей.
test: dbms_aqadm_purge_queue_table
 
# DBMS_AQADM, пачка 2.3. Типы JMS.
test: dbms_aqadm_enable_jms_types
 
# DBMS_AQADM, пачка 2.4. Сверка типов очередей.
test: dbms_aqadm_verify_queue_types
 
# DBMS_AQADM, пачка 2.5. Миграция таблицы очередей.
test: dbms_aqadm_migrate_queue_table
 
# DBMS_AQADM, пачка 3.2. Изменение подписчика.
test: dbms_aqadm_alter_subscriber
 
# DBMS_AQADM, пачка 3.3. Список подписчиков.
test: dbms_aqadm_queue_subscribers
 
# DBMS_AQADM, пачка 5.2. Системные права от обычной роли.
test: dbms_aqadm_grant_system_privilege_hr
test: dbms_aqadm_revoke_system_privilege_hr
 
# DBMS_AQADM, пачка 5.3. Системные права от суперпользователя.
test: dbms_aqadm_grant_system_privilege_sys
 
# DBMS_AQADM, пачка 6.1. Сегментированные очереди.
test: dbms_aqadm_create_sharded_queue
test: dbms_aqadm_alter_sharded_queue
test: dbms_aqadm_drop_sharded_queue
 
# DBMS_AQADM, пачка 6.2. Параметры очереди.
test: dbms_aqadm_queue_parameter
 
# DBMS_AQADM, пачка 6.3. Очередь исключений сегментированной очереди.
test: dbms_aqadm_create_exception_queue
 
# DBMS_AQADM, пачка 7.1. Поиск расписания распространения.
test: dbms_aqadm_propagation_schedule
 
# DBMS_AQADM, пачка 7.2. Постановка расписания: проверки, транспорта нет.
test: dbms_aqadm_schedule_propagation
 
# DBMS_AQADM, пачка 8.1. Watermark: чтение всем, запись суперпользователю.
test: dbms_aqadm_watermark_hr
test: dbms_aqadm_watermark_sys
 
# DBMS_AQADM, пачка 8.2. Пул Streams: чтение всем, запись суперпользователю.
test: dbms_aqadm_streams_pool
 
# DBMS_AQADM, пачка 8.3. LDAP-алиас: проверка аргументов, без записи.
test: dbms_aqadm_ldap_alias
 
# DBMS_AQADM, пачка 8.4. Файлы от SYS: своя схема создаётся, HR не заводится.
test: dbms_aqadm_create_queue_table_sys
test: dbms_aqadm_create_sharded_queue_sys
 
# DBMS_AQADM, пачка 9.2. Предикаты словаря.
test: dbms_aqadm_queue_predicates
 
# DBMS_AQADM, пачка 9.2. Обёртки TEQ над сегментированной очередью.
test: dbms_aqadm_teq
 
# DBMS_AQADM, пачка 9.2. Схемные права.
test: dbms_aqadm_schema_privilege
 
# DBMS_AQADM, пачка 9.2. Перенос, восстановление таблицы и проверка очереди.
test: dbms_aqadm_queue_table_ops
 
# DBMS_AQADM, пачка 9.2. Номер распространения, восстановление и задание AQ$_PROPAQ.
test: dbms_aqadm_propagation_ops
 
# DBMS_AQADM, пачка 9.2. Соединение LDAP: проверка аргументов, без записи.
test: dbms_aqadm_ldap_connection
 
# DBMS_CREDENTIAL, пачка 1.3.
test: dbms_credential_catalog
test: dbms_credential_catalog_bounds
 
# DBMS_CREDENTIAL, пачка 2.1.
test: dbms_credential_update
 
# DBMS_CREDENTIAL, пачка 3.1.
test: dbms_credential_enable
 
# DBMS_NETWORK_ACL_ADMIN, пачка 1.3.
test: dbms_network_acl_admin_host
test: dbms_network_acl_admin_host_hr
test: dbms_network_acl_admin_port
 
# DBMS_NETWORK_ACL_ADMIN, пачка 2.1.
test: dbms_network_acl_admin_acl
 
# Возврат R.1. Планировщик пишет учётные данные в ядро DBMS_CREDENTIAL.
test: dbms_scheduler_credential_core
 
# Возврат R.3. Завершение задания открывает SMTP. Слушателя нет.
test: dbms_scheduler_email_open
 
# Возврат R.4. Внешнего назначения нет. GET_FILE файл не копирует.
test: dbms_scheduler_agent_file
 
# DBMS_NETWORK_ACL_ADMIN, пачка 3.1. Wallet: путь и привилегия. Запись кошелька не изображается.
test: dbms_network_acl_admin_wallet
 
# DBMS_SESSION, пачка 1.1. Идентификатор сеанса и освобождение памяти.
test: dbms_session_id
test: dbms_session_reg_catalog
 
# DBMS_SESSION, пачка 3.1. Живой идентификатор и пауза.
test: dbms_session_id_bounds
test: dbms_session_id_errors
test: dbms_session_sleep
test: dbms_session_sleep_bounds
test: dbms_session_sleep_errors
 
# DBMS_SESSION, пачка 4.1. Связь, издание и группа потребителей.
test: dbms_session_external
test: dbms_session_external_bounds
test: dbms_session_external_errors
 
# DBMS_SESSION, пачка 5.1. Трассировка сеанса. Файл трассировки не читается.
test: dbms_session_trace
test: dbms_session_trace_bounds
test: dbms_session_trace_errors
 
# DBMS_XPLAN, волна 1. Внешние источники: пустой набор или строка ошибки.
test: dbms_xplan_sources
test: dbms_xplan_sources_bounds
test: dbms_xplan_sources_errors
test: dbms_xplan_reg_catalog
 
# DBMS_XPLAN, волна 2. Курсор: строка про отсутствие права на V$SESSION.
test: dbms_xplan_cursor
test: dbms_xplan_cursor_bounds
test: dbms_xplan_cursor_errors
 
# DBMS_XPLAN, волна 3. DIFF_PLAN: нет привилегии ADVISOR, 42501.
test: dbms_xplan_diff
test: dbms_xplan_diff_bounds
test: dbms_xplan_diff_errors
 
# DBMS_XPLAN, волна 5. DISPLAY читает PLAN_TABLE. Волна 4 закрывается этими файлами.
test: dbms_xplan_display
test: dbms_xplan_display_bounds
test: dbms_xplan_display_format
test: dbms_xplan_display_errors
 
# DBMS_XPLAN, волна 6. DISPLAY_PLAN: TEXT — ORA-31011, HTML пуст, XML — report, ACTIVE — html.
test: dbms_xplan_display_plan
test: dbms_xplan_display_plan_bounds
test: dbms_xplan_display_plan_errors
test: dbms_xplan_chain_display
 
# DBMS_XPLAN, волна 7. COMPARE_PLANS: нет результата советника, 55000.
test: dbms_xplan_compare
test: dbms_xplan_compare_bounds
test: dbms_xplan_compare_errors
test: dbms_xplan_chain_compare
 
# DBMS_SESSION, пачка 6.1. Идентификатор клиента через sys_context.
test: dbms_session_client
test: dbms_session_client_bounds
test: dbms_session_client_errors
test: dbms_session_chain_client
 
# DBMS_SESSION, пачка 7.1. Включённая роль. CONNECT выдаётся сеансу.
test: dbms_session_role
test: dbms_session_role_bounds
test: dbms_session_role_errors
test: dbms_session_chain_role
 
# DBMS_SESSION, пачка 8.1. Контекст без доверенного пространства.
test: dbms_session_context
test: dbms_session_context_bounds
test: dbms_session_context_errors
 
# DBMS_SESSION, пачка 9.1. Формат даты сеанса.
test: dbms_session_nls
test: dbms_session_nls_bounds
test: dbms_session_nls_errors
 
# DBMS_SESSION, пачка 10.1. Состояние пакета через rss.pkg_n.
test: dbms_session_package
test: dbms_session_package_bounds
test: dbms_session_package_errors
test: dbms_session_memory
test: dbms_session_chain_package
 
# DBMS_SCHEDULER F.1. Имя очереди и пакет заданий. Без ожидания координатора.
test: dbms_scheduler_rudb_catalog_fix