| 1 | --
|
|---|
| 2 | -- PostgreSQL database dump
|
|---|
| 3 | --
|
|---|
| 4 |
|
|---|
| 5 | -- Dumped from database version 10.4
|
|---|
| 6 | -- Dumped by pg_dump version 10.4
|
|---|
| 7 |
|
|---|
| 8 | SET statement_timeout = 0;
|
|---|
| 9 | SET lock_timeout = 0;
|
|---|
| 10 | SET idle_in_transaction_session_timeout = 0;
|
|---|
| 11 | SET client_encoding = 'SQL_ASCII';
|
|---|
| 12 | SET standard_conforming_strings = on;
|
|---|
| 13 | SELECT pg_catalog.set_config('search_path', '', false);
|
|---|
| 14 | SET check_function_bodies = false;
|
|---|
| 15 | SET client_min_messages = warning;
|
|---|
| 16 | SET row_security = off;
|
|---|
| 17 |
|
|---|
| 18 | --
|
|---|
| 19 | -- Name: plpgsql; Type: EXTENSION; Schema: -; Owner:
|
|---|
| 20 | --
|
|---|
| 21 |
|
|---|
| 22 | CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;
|
|---|
| 23 |
|
|---|
| 24 |
|
|---|
| 25 | --
|
|---|
| 26 | -- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner:
|
|---|
| 27 | --
|
|---|
| 28 |
|
|---|
| 29 | COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
|
|---|
| 30 |
|
|---|
| 31 |
|
|---|
| 32 | SET default_tablespace = '';
|
|---|
| 33 |
|
|---|
| 34 | SET default_with_oids = false;
|
|---|
| 35 |
|
|---|
| 36 | --
|
|---|
| 37 | -- Name: Boats; Type: TABLE; Schema: public; Owner: postgres
|
|---|
| 38 | --
|
|---|
| 39 |
|
|---|
| 40 | CREATE TABLE public."Boats" (
|
|---|
| 41 | bid integer NOT NULL,
|
|---|
| 42 | bname character varying,
|
|---|
| 43 | color character varying
|
|---|
| 44 | );
|
|---|
| 45 |
|
|---|
| 46 |
|
|---|
| 47 | ALTER TABLE public."Boats" OWNER TO postgres;
|
|---|
| 48 |
|
|---|
| 49 | --
|
|---|
| 50 | -- Name: Reserves; Type: TABLE; Schema: public; Owner: postgres
|
|---|
| 51 | --
|
|---|
| 52 |
|
|---|
| 53 | CREATE TABLE public."Reserves" (
|
|---|
| 54 | sid integer,
|
|---|
| 55 | bid integer,
|
|---|
| 56 | date date
|
|---|
| 57 | );
|
|---|
| 58 |
|
|---|
| 59 |
|
|---|
| 60 | ALTER TABLE public."Reserves" OWNER TO postgres;
|
|---|
| 61 |
|
|---|
| 62 | --
|
|---|
| 63 | -- Name: Sailors; Type: TABLE; Schema: public; Owner: postgres
|
|---|
| 64 | --
|
|---|
| 65 |
|
|---|
| 66 | CREATE TABLE public."Sailors" (
|
|---|
| 67 | sid integer NOT NULL,
|
|---|
| 68 | sname character varying NOT NULL,
|
|---|
| 69 | rating integer,
|
|---|
| 70 | age numeric(5,1) DEFAULT NULL::numeric
|
|---|
| 71 | );
|
|---|
| 72 |
|
|---|
| 73 |
|
|---|
| 74 | ALTER TABLE public."Sailors" OWNER TO postgres;
|
|---|
| 75 |
|
|---|
| 76 | --
|
|---|
| 77 | -- Data for Name: Boats; Type: TABLE DATA; Schema: public; Owner: postgres
|
|---|
| 78 | --
|
|---|
| 79 |
|
|---|
| 80 | COPY public."Boats" (bid, bname, color) FROM stdin;
|
|---|
| 81 | 101 Interlake blue
|
|---|
| 82 | 102 Interlake red
|
|---|
| 83 | 103 Clipper green
|
|---|
| 84 | 104 Marine red
|
|---|
| 85 | \.
|
|---|
| 86 |
|
|---|
| 87 |
|
|---|
| 88 | --
|
|---|
| 89 | -- Data for Name: Reserves; Type: TABLE DATA; Schema: public; Owner: postgres
|
|---|
| 90 | --
|
|---|
| 91 |
|
|---|
| 92 | COPY public."Reserves" (sid, bid, date) FROM stdin;
|
|---|
| 93 | 22 101 1998-10-10
|
|---|
| 94 | 22 102 1998-10-10
|
|---|
| 95 | 22 103 1998-10-08
|
|---|
| 96 | 22 104 1998-10-07
|
|---|
| 97 | 31 102 1998-11-10
|
|---|
| 98 | 31 103 1998-11-06
|
|---|
| 99 | 31 104 1998-11-12
|
|---|
| 100 | 64 101 1998-09-05
|
|---|
| 101 | 64 102 1998-09-08
|
|---|
| 102 | 74 103 1998-09-08
|
|---|
| 103 | \N 103 1998-09-09
|
|---|
| 104 | 1 \N 2001-01-11
|
|---|
| 105 | 1 \N 2002-02-02
|
|---|
| 106 | \.
|
|---|
| 107 |
|
|---|
| 108 |
|
|---|
| 109 | --
|
|---|
| 110 | -- Data for Name: Sailors; Type: TABLE DATA; Schema: public; Owner: postgres
|
|---|
| 111 | --
|
|---|
| 112 |
|
|---|
| 113 | COPY public."Sailors" (sid, sname, rating, age) FROM stdin;
|
|---|
| 114 | 22 Dustin 7 45.0
|
|---|
| 115 | 29 Brutus 1 33.0
|
|---|
| 116 | 31 Lubber 8 55.5
|
|---|
| 117 | 32 Andy 8 25.5
|
|---|
| 118 | 58 Rusty 10 35.0
|
|---|
| 119 | 64 Horatio 7 35.0
|
|---|
| 120 | 71 Zorba 10 16.0
|
|---|
| 121 | 74 Horatio 9 35.0
|
|---|
| 122 | 85 Art 4 25.5
|
|---|
| 123 | 95 Bob 3 63.5
|
|---|
| 124 | 101 Joan 3 \N
|
|---|
| 125 | 107 Johannes \N 35.0
|
|---|
| 126 | \.
|
|---|
| 127 |
|
|---|
| 128 |
|
|---|
| 129 | --
|
|---|
| 130 | -- Name: Boats Boats_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
|
|---|
| 131 | --
|
|---|
| 132 |
|
|---|
| 133 | ALTER TABLE ONLY public."Boats"
|
|---|
| 134 | ADD CONSTRAINT "Boats_pkey" PRIMARY KEY (bid);
|
|---|
| 135 |
|
|---|
| 136 |
|
|---|
| 137 | --
|
|---|
| 138 | -- Name: Sailors Sailors_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
|
|---|
| 139 | --
|
|---|
| 140 |
|
|---|
| 141 | ALTER TABLE ONLY public."Sailors"
|
|---|
| 142 | ADD CONSTRAINT "Sailors_pkey" PRIMARY KEY (sid);
|
|---|
| 143 |
|
|---|
| 144 |
|
|---|
| 145 | --
|
|---|
| 146 | -- PostgreSQL database dump complete
|
|---|
| 147 | --
|
|---|
| 148 |
|
|---|