Skip to content

A bunch of errors show up with postgres-direct/stat-logical-repl.sh script #26

@matixlol

Description

@matixlol

here's some:

SELECT
    active, inactive_since, invalidation_reason, wal_status,
    confirmed_flush_lsn, pg_wal_lsn_diff(pg_current_wal_lsn(), confirmed_flush_lsn)
    FROM pg_replication_slots WHERE slot_name = '_planetscale_import';
ERROR:  column "inactive_since" does not exist
LINE 2:     active, inactive_since, invalidation_reason, wal_status,
                    ^
###############
# TEST RECORD #
###############

++ date +%s
+ TS=1758815025
+ psql $PRIMARY -c 'INSERT INTO _planetscale_import VALUES (1758815025, '\''testing'\'');'
INSERT 0 1
+ sleep 1
+ psql '$REPLICA' -c 'SELECT * FROM _planetscale_import WHERE ts >= 1758815025;'
ERROR:  relation "_planetscale_import" does not exist
LINE 1: SELECT * FROM _planetscale_import WHERE ts >= 1758815025;
# script exits

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions