Linux-Mint

Postgresql 教程文件

  • March 16, 2018

與此類似:https ://stackoverflow.com/questions/23136670/where-can-i-find-tutorial-files-of-postgresql

但是我試圖找到文件夾 src/tutorial,開始 SQL 教程,甚至了解我是否下載了正確的發行版。

使用apt list --installed節目我有以下軟體包:

postgresql-10
postgresql-client-10
postgresql-client-common
postgresql-common
postgresql-server-dev-10

當我使用命令時:sudo find . -type d -name "tutorial它不會返回“src”中的任何文件夾“tutorial”子目錄。(我從根目錄執行這個命令)

任何人都可以提供一些關於從哪裡開始教程的指示嗎?

在這裡嘗試額外的包:https ://wiki.postgresql.org/wiki/Compile_and_Install_from_source_code

在我的 Debian “Buster” 安裝中,教程包含在postgresql-doc軟體包中。

sudo apt-get install postgresql-doc

教程安裝到以下目錄:

/usr/share/doc/postgresql-doc-10/tutorial

我正在執行 postgresql-10,因此文件與安裝的版本匹配。

由於Mint是基於 Debian 的,因此包和文件的位置很可能是相同的。這是來自“apt-cache”的包資訊:

$ apt-cache show postgresql-doc

Package: postgresql-doc
Source: postgresql-common (190)
Version: 10+190
Installed-Size: 62
Maintainer: Debian PostgreSQL Maintainers <pkg-postgresql-public@lists.alioth.debian.org>
Architecture: all
Depends: postgresql-doc-10
Description-en: documentation for the PostgreSQL database management system
This metapackage always depends on the currently supported PostgreSQL database documentation package.
.
PostgreSQL is a fully featured object-relational database management
system.  It supports a large part of the SQL standard and is designed
to be extensible by users in many aspects.  Some of the features are:
ACID transactions, foreign keys, views, sequences, subqueries,
triggers, user-defined types and functions, outer joins, multiversion
concurrency control.  Graphical user interfaces and bindings for many
programming languages are available as well.

請注意:

您可能需要安裝該build-essential軟體包才能編譯教程程序。

引用自:https://unix.stackexchange.com/questions/430252