Skip to content

Extend postgres compatibility to enable golang migrate #2055

@sleepycat

Description

@sleepycat

What would you like to be added or enhanced

Golang migrate is a popular library for running migrations against a variety of databases, including postgres.
Despite recent work on improving postgres compatibility, attempting to use the migrate tool with immudb currently fails with the following error:

$ migrate -database "postgres://immudb:immudb@localhost:5432/defaultdb?sslmode=disable" -path migrations up
error: failed to open database: pq: illegal arguments: unknown function current_schema in line 0: SELECT CURRENT_SCHEMA()

Why is this needed

Targetting the postgres features needed for the migrate tool would enable immudb users to use migrate to manage schema evolution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions