выходит такая ошибка:
ERROR: ОШИБКА: CREATE DATABASE не может выполняться внутри блока транзакции
SQL-состояние: 25001
А вот и сам код:
CREATE DATABASE "KATLA"
WITH
OWNER = postgres
ENCODING = 'UTF8'
LC_COLLATE = 'Russian_Russia.1251'
LC_CTYPE = 'Russian_Russia.1251'
TABLESPACE = pg_default
CONNECTION LIMIT = -1;
-- PostgreSQL database dump
--
-- Dumped from database version 14.3
-- Dumped by pg_dump version 14.2
-- Started on 2022-06-06 14:35:09
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SELECT pg_catalog.set_config('search_path', '', false);
SET check_function_bodies = false;
SET xmloption = content;
SET client_min_messages = warning;
SET row_security = off;
--
-- TOC entry 2 (class 3079 OID 16384)
-- Name: adminpack; Type: EXTENSION; Schema: -; Owner: -
--
CREATE EXTENSION IF NOT EXISTS adminpack WITH SCHEMA pg_catalog;
--
-- TOC entry 3239 (class 0 OID 0)
-- Dependencies: 2
-- Name: EXTENSION adminpack; Type: COMMENT; Schema: -; Owner:
--
COMMENT ON EXTENSION adminpack IS 'administrative functions for PostgreSQL';
SET default_tablespace = '';
SET default_table_access_method = heap;
--
-- TOC entry 213 (class 1259 OID 16427)
-- Name: prodagiDB; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public."prodagiDB" (
name character varying(255) NOT NULL,
id uuid NOT NULL,
prodaji integer NOT NULL
);
ALTER TABLE public."prodagiDB" OWNER TO postgres;
--
-- TOC entry 210 (class 1259 OID 16395)
-- Name: t1; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.t1 (
"Петров" character varying(255) NOT NULL,
id text NOT NULL
);
ALTER TABLE public.t1 OWNER TO postgres;
--
-- TOC entry 3240 (class 0 OID 0)
-- Dependencies: 210
-- Name: TABLE t1; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE public.t1 IS 'задачи пользователя';
--
-- TOC entry 211 (class 1259 OID 16398)
-- Name: test2; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.test2 (
);
ALTER TABLE public.test2 OWNER TO postgres;
--
-- TOC entry 212 (class 1259 OID 16401)
-- Name: test3; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.test3 (
);
ALTER TABLE public.test3 OWNER TO postgres;
--
-- TOC entry 3233 (class 0 OID 16427)
-- Dependencies: 213
-- Data for Name: prodagiDB; Type: TABLE DATA; Schema: public; Owner: postgres
--
INSERT INTO public."prodagiDB" (name, id, prodaji) VALUES ('Петров', '959416a1-92eb-4124-a951-a547c2df0d20', 25);
INSERT INTO public."prodagiDB" (name, id, prodaji) VALUES ('Иванов', '6c67fe46-94a4-4891-a7b4-c6041fee7bc6', 30);
--
-- TOC entry 3230 (class 0 OID 16395)
-- Dependencies: 210
-- Data for Name: t1; Type: TABLE DATA; Schema: public; Owner: postgres
--
--
-- TOC entry 3231 (class 0 OID 16398)
-- Dependencies: 211
-- Data for Name: test2; Type: TABLE DATA; Schema: public; Owner: postgres
--
--
-- TOC entry 3232 (class 0 OID 16401)
-- Dependencies: 212
-- Data for Name: test3; Type: TABLE DATA; Schema: public; Owner: postgres
--
--
-- TOC entry 3090 (class 2606 OID 16431)
-- Name: prodagiDB prodagiDB_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public."prodagiDB"
ADD CONSTRAINT "prodagiDB_pkey" PRIMARY KEY (id);
--
-- TOC entry 3088 (class 2606 OID 16418)
-- Name: t1 t1_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.t1
ADD CONSTRAINT t1_pkey PRIMARY KEY (id);
-- Completed on 2022-06-06 14:35:09
--
-- PostgreSQL database dump complete
--