Skip to content

[BUG] deepflow server使用PostgreSQL报错 #10941

@tailerong

Description

@tailerong

Search before asking

  • I had searched in the issues and found no similar feature requirement.

DeepFlow Component

Server

What you expected to happen

deepflow server v7.0 使用PostgreSQL作为元数据库时,出现如下问题:

  1. rawsql/postgres/ddl_create_table中部分sql不符合PostgreSQL语法规范,执行报错
  2. gen_random_uuid()函数只能在public模式下使用,建议在dml_insert.sql和default_db_dml_insert.sql中使用到gen_random_uuid()函数的地方添加public.
  3. 不支持配置除 public 之外的 schema
  4. 在ch_device和ch_gprocess表中插入数据时,一个 insert 语句中多行更新同一个冲突目标,这在mysql中没问题,但是在postgres中是不允许的

deepflow v7.0 使用 postgres 数据库遇到的问题以及改造.pdf

How to reproduce

  1. 配置PostgreSQL数据库
  2. 使用除了public之外的schema

DeepFlow version

deepflow server v7.0

DeepFlow agent list

No response

Kubernetes CNI

No response

Operation-System/Kernel version

No response

Anything else

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions