команде create создается. Она там есть?
$ cat unit.backup-create.sql — — PostgreSQL database dump — — Dumped from database version 9.6.3 — Dumped by pg_dump version 9.6.3 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; SET row_security = off; — — Name: unit; Type: DATABASE; Schema: -; Owner: postgres — CREATE DATABASE unit WITH TEMPLATE = template0 ENCODING = 'UTF8' LC_COLLATE = 'en_US.UTF-8' LC_CTYPE = 'en_US.UTF-8'; ALTER DATABASE unit OWNER TO postgres; \connect unit SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; SET row_security = off; — — Name: plpgsql; Type: EXTENSION; Schema: -; Owner: — CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog; — — Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner: — COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language'; — — PostgreSQL database dump complete —
\connect unit
Обсуждают сегодня