Skip to content

Instantly share code, notes, and snippets.

@cbrachem
cbrachem / pubsub-coordinator.sql
Created October 18, 2018 20:20 — forked from marcocitus/pubsub-coordinator.sql
Prototype for PubSub on PG 10 with Citus 7
/* commands to run on the coordinator */
CREATE EXTENSION citus;
SELECT master_add_node('10.0.0.2', 5432);
SELECT master_add_node('10.0.0.3', 5432);
SELECT start_metadata_sync_to_node(nodename, nodeport) FROM pg_dist_node;
SET citus.replication_model TO 'streaming'
CREATE TABLE events (
event_id bigserial primary key,
namespace MCNPTreeCombinator
module Geom =
type PlaneX = PlaneX of decimal
type PlaneY = PlaneY of decimal
type PlaneZ = PlaneZ of decimal
type Plane = PlaneX | PlaneY | PlaneZ
type Point = decimal * decimal * decimal
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.