Skip to content

Instantly share code, notes, and snippets.

@simonvadee
Created November 28, 2020 00:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simonvadee/c4a60bbb86b51657707049d78d6b63a8 to your computer and use it in GitHub Desktop.
Save simonvadee/c4a60bbb86b51657707049d78d6b63a8 to your computer and use it in GitHub Desktop.
pg_dump schema zombodb
--
-- PostgreSQL database dump
--
-- Dumped from database version 12.5 (Debian 12.5-1.pgdg100+1)
-- Dumped by pg_dump version 13.1 (Ubuntu 13.1-1.pgdg18.04+1)
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SELECT pg_catalog.set_config('search_path', '', false);
SET check_function_bodies = false;
SET xmloption = content;
SET client_min_messages = warning;
SET row_security = off;
--
-- Name: zdb; Type: SCHEMA; Schema: -; Owner: arkhn
--
CREATE SCHEMA zdb;
ALTER SCHEMA zdb OWNER TO arkhn;
--
-- Name: zombodb; Type: EXTENSION; Schema: -; Owner: -
--
CREATE EXTENSION IF NOT EXISTS zombodb WITH SCHEMA zdb;
--
-- Name: EXTENSION zombodb; Type: COMMENT; Schema: -; Owner:
--
COMMENT ON EXTENSION zombodb IS 'ZomboDB: Making Postgres and Elasticsearch work together like it''s 2020';
SET default_tablespace = '';
SET default_table_access_method = heap;
--
-- Name: observations; Type: TABLE; Schema: public; Owner: arkhn
--
CREATE TABLE public.observations (
id text NOT NULL,
created_at timestamp with time zone,
updated_at timestamp with time zone,
deleted_at timestamp with time zone,
resource jsonb,
);
ALTER TABLE public.observations OWNER TO arkhn;
--
-- Name: observations observations_pkey; Type: CONSTRAINT; Schema: public; Owner: arkhn
--
ALTER TABLE ONLY public.observations
ADD CONSTRAINT observations_pkey PRIMARY KEY (id);
--
-- Name: idxobservation; Type: INDEX; Schema: public; Owner: arkhn
--
CREATE INDEX idxobservation ON public.observations USING zombodb ((observations.*)) WITH (url='http://elasticsearch:9200/');
--
-- PostgreSQL database dump complete
--
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment