如何打开postgres命令行?

Dha*_*raj 3 windows postgresql command-line

我已经安装了postgres。如何打开postgres命令行?当我打开命令提示符时,我有

Microsoft Windows [Version 10.0.17134.590]
(c) 2018 Microsoft Corporation. All rights reserved.

C:\Users\dhanr>
Run Code Online (Sandbox Code Playgroud)

如何导航到 postgres 命令行,因为我的最终目标是运行pg_dump dbname > outfile命令。

gre*_*rep 7

您应该使用 psql 命令行工具。

您可以在安装目录中找到 psql。例子;

C:\Program Files\PostgreSQL\10\bin\psql.exe
Run Code Online (Sandbox Code Playgroud)