3

在本機用 pip 直接安裝 PostgreSQL server

 3 years ago
source link: https://blog.gslin.org/archives/2021/09/02/10304/%e5%9c%a8%e6%9c%ac%e6%a9%9f%e7%94%a8-pip-%e7%9b%b4%e6%8e%a5%e5%ae%89%e8%a3%9d-postgresql-server/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

在本機用 pip 直接安裝 PostgreSQL server

看到 PostgreSQL 官方站台上的介紹,可以直接用 Pythonpip 指令安裝 PostgreSQL server:「Install a local, non-root PostgreSQL Server with Python "pip"」,專案在「postgresql-wheel」這邊。

GitHub 上面的說明跑了一下,還真的可以惡搞... 這樣如果真的要在 CI 裡面跑的話也簡單很多了?只要能 pip 裝軟體就能跟你拼 XDDD

也省掉需要設定一些權限跑 Docker-in-Docker...

Related

DuckDB

看到篇有趣的介紹,在講 DuckDB:「DuckDB」。 [I]t uses the PostgreSQL parser but models itself after SQLite in that databases are a single file and the code is designed for use as an embedded library, distributed in a single amalgamation C++ file (SQLite uses a C amalgamation). 看起來是個以 OLAP 為中心而設計出來的資料庫,然後在 Python 下可以直接透過 pip 裝起來。 看起來像是個用單機拼…

September 20, 2020

In "Computer"

用 Semgrep 掃一些安全性的問題

在 Hacker News Daily 上看到「Semgrep」這個軟體,看名字本來還以為是 semantic grep,結果是個靜態分析工具: Static analysis at ludicrous speed Find bugs and enforce code standards 專案是用 Python 寫的,可以直接用 pip install semgrep 裝起來,然後直接下指令掃,像是在自己的專案裡面執行,這邊用的 ruleset 是 r2c-ci: semgrep --config=p/ci . 官方網站上的截圖看起來也整的不錯: 可以自己跑或是掛進 CI 裡面跑...

April 25, 2021

In "Computer"

PostgreSQL 筆記...

純粹是筆記... 對於架設 server 的文件可以參考 Ubuntu 這份「PostgreSQL - Community Ubuntu Documentation」,雖然 Debian 官方也有一份「PostgreSql - Debian Wiki」,不過沒講到遠端這塊... 官方有提供 Debian/Ubuntu 用的 apt repository,參考官方的 wiki 頁面「Apt - PostgreSQL wiki」。 Debian wheezy 的 postgresql-server 目前是 9.1,要用 9.2 可以透過 apt 版本安裝。 9.1 與 9.2 的差異可以參考「PostgreSQL: Documentation: 9.2: Release 9.2」,資料型態的部份多了 JSON,效率上多了 covered index,管理上多了多層 replication。 設定的部份: 要讓遠端可以存取有兩個地方要開,一個是 postgresql.conf…

July 29, 2013

In "Computer"

a611ee8db44c8d03a20edf0bf5a71d80?s=49&d=identicon&r=gAuthor Gea-Suan LinPosted on September 2, 2021Categories Computer, Database, Murmuring, PostgreSQL, Programming, SoftwareTags ci, continuous, database, db, docker, integration, local, pip, postgresql, python, rdbms, server, service, user

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Comment

Name *

Email *

Website

Notify me of follow-up comments by email.

Notify me of new posts by email.

Post navigation


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK