Guest User

Untitled

a guest
Jan 25th, 2018
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 2.26 KB | None | 0 0
  1. mrbx:TWSTrader h4rr$ /Library/PostgreSQL/9.1/bin/pg_dump --username=postgres --password --host=localhost trifecta | head -n 100Password:
  2. --
  3. -- PostgreSQL database dump
  4. --
  5.  
  6. SET statement_timeout = 0;
  7. SET client_encoding = 'UTF8';
  8. SET standard_conforming_strings = ON;
  9. SET check_function_bodies = FALSE;
  10. SET client_min_messages = warning;
  11.  
  12. --
  13. -- Name: trifecta; Type: COMMENT; Schema: -; Owner: trifecta
  14. --
  15.  
  16. COMMENT ON DATABASE trifecta IS 'Trifecta database';
  17.  
  18.  
  19. --
  20. -- Name: plpgsql; Type: EXTENSION; Schema: -; Owner:
  21. --
  22.  
  23. CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;
  24.  
  25.  
  26. --
  27. -- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner:
  28. --
  29.  
  30. COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
  31.  
  32.  
  33. SET search_path = public, pg_catalog;
  34.  
  35. SET default_tablespace = '';
  36.  
  37. SET default_with_oids = FALSE;
  38.  
  39. --
  40. -- Name: historical_data; Type: TABLE; Schema: public; Owner: trifecta; Tablespace:
  41. --
  42.  
  43. CREATE TABLE historical_data (
  44.     id INTEGER NOT NULL,
  45.     stock_id INTEGER NOT NULL,
  46.     DATE DATE,
  47.     OPEN DOUBLE PRECISION,
  48.     high DOUBLE PRECISION,
  49.     low DOUBLE PRECISION,
  50.     close DOUBLE PRECISION,
  51.     volume BIGINT,
  52.     adj_close DOUBLE PRECISION,
  53.     adj_open DOUBLE PRECISION,
  54.     adj_high DOUBLE PRECISION,
  55.     adj_low DOUBLE PRECISION
  56. );
  57.  
  58.  
  59. ALTER TABLE public.historical_data OWNER TO trifecta;
  60.  
  61. --
  62. -- Name: historical_data_id_seq; Type: SEQUENCE; Schema: public; Owner: trifecta
  63. --
  64.  
  65. CREATE SEQUENCE historical_data_id_seq
  66.     START WITH 1
  67.     INCREMENT BY 1
  68.     NO MINVALUE
  69.     NO MAXVALUE
  70.     CACHE 1;
  71.  
  72.  
  73. ALTER TABLE public.historical_data_id_seq OWNER TO trifecta;
  74.  
  75. --
  76. -- Name: historical_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: trifecta
  77. --
  78.  
  79. ALTER SEQUENCE historical_data_id_seq OWNED BY historical_data.id;
  80.  
  81.  
  82. --
  83. -- Name: historical_data_id_seq; Type: SEQUENCE SET; Schema: public; Owner: trifecta
  84. --
  85.  
  86. SELECT pg_catalog.SETVAL('historical_data_id_seq', 679164, TRUE);
  87.  
  88.  
  89. --
  90. -- Name: stock_info; Type: TABLE; Schema: public; Owner: trifecta; Tablespace:
  91. --
  92.  
  93. CREATE TABLE stock_info (
  94.     id INTEGER NOT NULL,
  95.     symbol CHARACTER VARYING(25),
  96.     market CHARACTER VARYING(10),
  97.     url CHARACTER VARYING
  98. );
  99.  
  100.  
  101. ALTER TABLE public.stock_info OWNER TO trifecta;
Add Comment
Please, Sign In to add comment