提问人:Karen Kostanyan 提问时间:11/9/2023 更新时间:11/9/2023 访问量:42
psql 在简单选择时挂起或紧随其后
psql hangs on a simple select or immediately after that
问:
我正在使用 bitbucket 管道来运行 psql 迁移。迁移脚本在简单选择或之后立即挂起。这是我的 bitbucket 管道步骤
- step:
name: Run miggartion
script:
- pipe: atlassian/ssh-run:0.7.0
variables:
DEBUG: "true"
SSH_USER: $USERNAME
SERVER: $HOST
COMMAND: 'sudo su - postgres -c "psql -d test -f /tmp/test.sql && echo test"'
SSH_KEY: $KEY
我有这个输出
SET
SET
SET
SET
SET
=
set_config
------------
(1 row)
这是我的迁移脚本:
--
-- PostgreSQL database dump
--
-- Dumped from database version 15.3 (Debian 15.3-0+deb12u1)
-- Dumped by pg_dump version 15.3 (Debian 15.3-0+deb12u1)
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;
SET default_tablespace = '';
SET default_table_access_method = heap;
答: 暂无答案
评论