February 2020
Intermediate to advanced
734 pages
38h 13m
English
Assuming that we have two nodes in pgha1 and pgha2 and a BDR-enabled database named myapp, follow these steps to test the DDL replication:
CREATE TABLE event_log ( event_id BIGSERIAL PRIMARY KEY, event VARCHAR(100) NOT NULL, event_dt TIMESTAMPTZ NOT NULL DEFAULT now() );
CREATE INDEX idx_event_log_event_dt
ON event_log (event_dt);
\d event_log
Read now
Unlock full access