telemetry_postgresql.sql 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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. );
  42. -- Commented out the following line because it assumes the user of the speedtest server, @bplower
  43. -- ALTER TABLE speedtest_users OWNER TO speedtest;
  44. --
  45. -- Name: speedtest_users_id_seq; Type: SEQUENCE; Schema: public; Owner: speedtest
  46. --
  47. CREATE SEQUENCE speedtest_users_id_seq
  48. START WITH 1
  49. INCREMENT BY 1
  50. NO MINVALUE
  51. NO MAXVALUE
  52. CACHE 1;
  53. -- Commented out the following line because it assumes the user of the speedtest server, @bplower
  54. -- ALTER TABLE speedtest_users_id_seq OWNER TO speedtest;
  55. --
  56. -- Name: speedtest_users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: speedtest
  57. --
  58. ALTER SEQUENCE speedtest_users_id_seq OWNED BY speedtest_users.id;
  59. --
  60. -- Name: speedtest_users id; Type: DEFAULT; Schema: public; Owner: speedtest
  61. --
  62. ALTER TABLE ONLY speedtest_users ALTER COLUMN id SET DEFAULT nextval('speedtest_users_id_seq'::regclass);
  63. --
  64. -- Data for Name: speedtest_users; Type: TABLE DATA; Schema: public; Owner: speedtest
  65. --
  66. COPY speedtest_users (id, "timestamp", ip, ua, lang, dl, ul, ping, jitter, log) FROM stdin;
  67. \.
  68. --
  69. -- Name: speedtest_users_id_seq; Type: SEQUENCE SET; Schema: public; Owner: speedtest
  70. --
  71. SELECT pg_catalog.setval('speedtest_users_id_seq', 1, true);
  72. --
  73. -- Name: speedtest_users speedtest_users_pkey; Type: CONSTRAINT; Schema: public; Owner: speedtest
  74. --
  75. ALTER TABLE ONLY speedtest_users
  76. ADD CONSTRAINT speedtest_users_pkey PRIMARY KEY (id);
  77. --
  78. -- PostgreSQL database dump complete
  79. --