Skip to content

Instantly share code, notes, and snippets.

@stephepush
Created January 23, 2020 16:07
Show Gist options
  • Save stephepush/9f3a9cc9f8042a02f169ff2268281f63 to your computer and use it in GitHub Desktop.
Save stephepush/9f3a9cc9f8042a02f169ff2268281f63 to your computer and use it in GitHub Desktop.
email-collector-pg-backup-dump
--
-- PostgreSQL database dump
--
-- Dumped from database version 11.6 (Ubuntu 11.6-1.pgdg19.04+1)
-- Dumped by pg_dump version 12.1 (Ubuntu 12.1-1.pgdg19.04+1)
-- Started on 2020-01-23 11:03:53 EST
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;
SET default_tablespace = '';
--
-- TOC entry 197 (class 1259 OID 25708)
-- Name: users; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.users (
id bigint NOT NULL,
first_name character varying NOT NULL,
last_name character varying NOT NULL,
email character varying NOT NULL,
"timestamp" timestamp without time zone NOT NULL
);
ALTER TABLE public.users OWNER TO postgres;
--
-- TOC entry 196 (class 1259 OID 25706)
-- Name: users_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE public.users_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.users_id_seq OWNER TO postgres;
--
-- TOC entry 3067 (class 0 OID 0)
-- Dependencies: 196
-- Name: users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE public.users_id_seq OWNED BY public.users.id;
--
-- TOC entry 2936 (class 2604 OID 25711)
-- Name: users id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.users ALTER COLUMN id SET DEFAULT nextval('public.users_id_seq'::regclass);
--
-- TOC entry 3061 (class 0 OID 25708)
-- Dependencies: 197
-- Data for Name: users; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY public.users (id, first_name, last_name, email, "timestamp") FROM stdin;
12 William Riker wRiker@starfleet.org 2020-01-08 15:39:05.519
13 George Jetson gjetson@ssprockets.com 2020-01-08 17:53:24.947
14 Bart Simpson bsimpson@fox.com 2020-01-08 19:01:17.057
15 Michael Porter mporter@school.org 2020-01-08 19:23:45.69
\.
--
-- TOC entry 3068 (class 0 OID 0)
-- Dependencies: 196
-- Name: users_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('public.users_id_seq', 15, true);
--
-- TOC entry 2938 (class 2606 OID 25716)
-- Name: users users_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.users
ADD CONSTRAINT users_pkey PRIMARY KEY (id);
-- Completed on 2020-01-23 11:03:54 EST
--
-- PostgreSQL database dump complete
--
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment