Исходный код СУБД RuDB — свободной СУБД с открытым исходным кодом на базе PostgreSQL
rudb
2026-10-06 6bac54b555d27f1a85c1e4f011a6e7bd9111b0d0
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
/*-------------------------------------------------------------------------
 *
 * queue.c
 *      Queue management and monitoring functions
 *
 * This file implements SQL-callable functions for managing and monitoring
 * the embedding queue.
 *
 * Copyright (c) 2025 - 2026, pgEdge, Inc.
 *
 *-------------------------------------------------------------------------
 */
#include "vectorizer/pgedge_vectorizer.h"
#include "funcapi.h"
#include "catalog/pg_type.h"
 
/*
 * Get queue status summary
 *
 * Returns a table showing the count of items in each status.
 */
PG_FUNCTION_INFO_V1(pgedge_vectorizer_queue_status);
 
Datum
pgedge_vectorizer_queue_status(PG_FUNCTION_ARGS)
{
    /* This will be implemented as a SQL view in the schema file */
    elog(ERROR, "pgedge_vectorizer_queue_status should be called via SQL view");
    PG_RETURN_NULL();
}
 
/*
 * Get worker statistics
 *
 * Returns statistics about worker activity.
 */
PG_FUNCTION_INFO_V1(pgedge_vectorizer_worker_stats);
 
Datum
pgedge_vectorizer_worker_stats(PG_FUNCTION_ARGS)
{
    /* This will be implemented as a SQL view in the schema file */
    elog(ERROR, "pgedge_vectorizer_worker_stats should be called via SQL view");
    PG_RETURN_NULL();
}