Исходный код СУБД 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
-- Queue test
-- This test verifies queue table functionality
-- Verify queue is initially empty
SELECT COUNT(*) AS initial_queue_count FROM pgedge_vectorizer.queue;
 initial_queue_count 
---------------------
                   0
(1 row)
 
-- Test queue views exist and are accessible
SELECT COUNT(*) >= 0 AS queue_status_exists
FROM pgedge_vectorizer.queue_status;
 queue_status_exists 
---------------------
 t
(1 row)
 
SELECT COUNT(*) >= 0 AS pending_count_exists
FROM pgedge_vectorizer.pending_count;
 pending_count_exists 
----------------------
 t
(1 row)
 
SELECT COUNT(*) >= 0 AS failed_items_exists
FROM pgedge_vectorizer.failed_items;
 failed_items_exists 
---------------------
 t
(1 row)
 
-- Test utility functions
SELECT pgedge_vectorizer.retry_failed() >= 0 AS retry_works;
 retry_works 
-------------
 t
(1 row)
 
SELECT pgedge_vectorizer.clear_completed() >= 0 AS clear_works;
 clear_works 
-------------
 t
(1 row)