gpt4 book ai didi

Postgresql:日志:启动的 autovacuum 启动器挂起(显然)

转载 作者:行者123 更新时间:2023-11-29 12:38:06 25 4
gpt4 key购买 nike

我正在研究这个 Heroku tutorial我有一个关于 autovacuum 的问题过程。仍然没有表格或数据,autovacuum 启动器现在已挂起半个多小时。下面是cmd window 。

我找到了一个类似的 question here但找不到答案。有谁知道发生了什么事?

作为总结:在最后一行之后 LOG: autovacuum launcher started光标在最后一行下方闪烁,但半个多小时没有任何反应。

C:\Users\a>initdb pg
The files belonging to this database system will be owned by user "a".
This user must also own the server process.

The database cluster will be initialized with locale "English_United States.1252
".
The default database encoding has accordingly been set to "WIN1252".
The default text search configuration will be set to "english".

Data page checksums are disabled.

initdb: directory "pg" exists but is not empty
If you want to create a new database system, either remove or empty
the directory "pg" or run initdb
with an argument other than "pg".

C:\Users\a>postgres -D pg &
LOG: database system was interrupted; last known up at 2013-10-05 13:46:39 EDT
LOG: database system was not properly shut down; automatic recovery in progress

LOG: record with zero length at 0/17704F8
LOG: redo is not required
LOG: database system is ready to accept connections
LOG: autovacuum launcher started

编辑

bma 中的建议的评论,我删除了 pg目录和项目目录,我再次执行相同的步骤,得到相同的结果:LOG: autovacuum launcher started它挂起。我哪里出错了?


编辑

我打开了一个新的命令窗口并在那里启动了 repl,我能够执行

C:\Users\a\CLOJURE\shouter>lein repl

user=> (require '[clojure.java.jdbc :as sql])
nil

但是下一个命令给出了以下错误:

user=> (sql/with-connection (System/getenv "DATABASE_URL")
#_=> (sql/create-table :testing [:data :text]))


user=> IllegalArgumentException db-spec null is missing a required parameter cl
ojure.java.jdbc/get-connection (jdbc.clj:192)

我该如何解决这个问题?


编辑

事实证明,“export”适用于 unix,而在 Windows 中我需要使用“set”。看这个related question .

最佳答案

发生的事情是您直接启动 postgres,使用 pg 目录,并看到日志输出。最好将其作为服务安装在 Windows 上,并使用默认数据目录。这是普通安装程序所做的。

但是,您当前的方法将只运行数据库,直到您关闭终端窗口,此时它会死掉(因此在开始时进行恢复)。您没有挂起的进程。那只是日志输出。

关于Postgresql:日志:启动的 autovacuum 启动器挂起(显然),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19201133/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com