1
0

telemetry_postgresql.sql 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. --
  2. -- PostgreSQL database dump
  3. --
  4. -- Dumped from database version 9.6.3
  5. -- Dumped by pg_dump version 9.6.5
  6. SET statement_timeout = 0;
  7. SET lock_timeout = 0;
  8. SET idle_in_transaction_session_timeout = 0;
  9. SET client_encoding = 'UTF8';
  10. SET standard_conforming_strings = on;
  11. SET check_function_bodies = false;
  12. SET client_min_messages = warning;
  13. SET row_security = off;
  14. --
  15. -- Name: plpgsql; Type: EXTENSION; Schema: -; Owner:
  16. --
  17. CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;
  18. --
  19. -- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner:
  20. --
  21. COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
  22. SET search_path = public, pg_catalog;
  23. SET default_tablespace = '';
  24. SET default_with_oids = false;
  25. --
  26. -- Name: speedtest_users; Type: TABLE; Schema: public; Owner: speedtest
  27. --
  28. CREATE TABLE speedtest_users (
  29. id integer NOT NULL,
  30. "timestamp" timestamp without time zone DEFAULT now() NOT NULL,
  31. ip text NOT NULL,
  32. ispinfo text,
  33. extra text,
  34. ua text NOT NULL,
  35. lang text NOT NULL,
  36. dl text,
  37. ul text,
  38. ping text,
  39. jitter text,
  40. log text,
  41. uuid text
  42. );
  43. -- Commented out the following line because it assumes the user of the speedtest server, @bplower
  44. -- ALTER TABLE speedtest_users OWNER TO speedtest;
  45. --
  46. -- Name: speedtest_users_id_seq; Type: SEQUENCE; Schema: public; Owner: speedtest
  47. --
  48. CREATE SEQUENCE speedtest_users_id_seq
  49. START WITH 1
  50. INCREMENT BY 1
  51. NO MINVALUE
  52. NO MAXVALUE
  53. CACHE 1;
  54. -- Commented out the following line because it assumes the user of the speedtest server, @bplower
  55. -- ALTER TABLE speedtest_users_id_seq OWNER TO speedtest;
  56. --
  57. -- Name: speedtest_users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: speedtest
  58. --
  59. ALTER SEQUENCE speedtest_users_id_seq OWNED BY speedtest_users.id;
  60. --
  61. -- Name: speedtest_users id; Type: DEFAULT; Schema: public; Owner: speedtest
  62. --
  63. ALTER TABLE ONLY speedtest_users ALTER COLUMN id SET DEFAULT nextval('speedtest_users_id_seq'::regclass);
  64. --
  65. -- Data for Name: speedtest_users; Type: TABLE DATA; Schema: public; Owner: speedtest
  66. --
  67. COPY speedtest_users (id, "timestamp", ip, ua, lang, dl, ul, ping, jitter, log, uuid) FROM stdin;
  68. \.
  69. --
  70. -- Name: speedtest_users_id_seq; Type: SEQUENCE SET; Schema: public; Owner: speedtest
  71. --
  72. SELECT pg_catalog.setval('speedtest_users_id_seq', 1, true);
  73. --
  74. -- Name: speedtest_users speedtest_users_pkey; Type: CONSTRAINT; Schema: public; Owner: speedtest
  75. --
  76. ALTER TABLE ONLY speedtest_users
  77. ADD CONSTRAINT speedtest_users_pkey PRIMARY KEY (id);
  78. --
  79. -- PostgreSQL database dump complete
  80. --