Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can plugin wal2json #287

Open
tuan-dd opened this issue Nov 16, 2024 · 1 comment
Open

I can plugin wal2json #287

tuan-dd opened this issue Nov 16, 2024 · 1 comment

Comments

@tuan-dd
Copy link

tuan-dd commented Nov 16, 2024

my docker file:

FROM postgres:16.5-bullseye

# Install dependencies and wal2json
RUN apt-get update && \
    apt-get install -y gcc git make postgresql-server-dev-16 && \
    git clone https://github.com/eulerto/wal2json.git /wal2json && \
    cd /wal2json && make && make install && cd .. && \
    rm -rf /wal2json && \
    apt-get remove --purge -y gcc git make postgresql-server-dev-16 && \
    apt-get autoremove -y && \
    apt-get clean && \
    rm -rf /var/lib/apt/lists/*

# Expose PostgreSQL port
EXPOSE 5432

# Default command
CMD ["postgres"]

after that i run CREATE EXTENSION IF NOT EXISTS wal2json;

i have error Database error:
ERROR: extension "wal2json" is not available
DETAIL: Could not open extension control file "/usr/share/postgresql/16/extension/wal2json.control": No such file or directory.
HINT: The extension must first be installed on the system where PostgreSQL is running.

DbError { severity: "ERROR", parsed_severity: Some(Error), code: SqlState(E0A000), message: "extension "wal2json" is not available", detail: Some("Could not open extension control file "/usr/share/postgresql/16/extension/wal2json.control": No such file or directory."), hint: Some("The extension must first be installed on the system where PostgreSQL is running."), position: None, where_: None, schema: None, table: None, column: None, datatype: None, constraint: None, file: Some("extension.c"), line: Some(543), routine: Some("parse_extension_control_file") }

@Sryther
Copy link

Sryther commented Nov 24, 2024

Same issue with apt install postgresql-14-wal2json.

EDIT: Looks like you don't need to perform the CREATE EXTENSION query (not in the doc, and someone noticed it on SO).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants