0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

PostgreSQL実験室/OSユーザー初期設定

0
Last updated at Posted at 2025-11-03

PostgreSQL実験室/OSユーザー初期設定

設定ファイル

~/.psqlrc

posgresユーザーのホームディレクトリに, .psqlrcを新規作成します.
今回の検証作業における設定例です.

  • ファイル
    \set COMP_KEYWORD_CASE upper
    \echo COMP_KEYWORD_CASE=:COMP_KEYWORD_CASE
    \set AUTOCOMMIT off
    \echo AUTOCOMMIT=:AUTOCOMMIT
    \set PROMPT1 '%[%033[1;34m%]%n@%/%R%[%033[0m%]%# '
    \set PROMPT2 '%[%033[1;34m%]%n@%/%R%[%033[0m%]%# '
    \x auto
    \pset pager off
    \conninfo
    

~/.pgpass

posgresユーザーのホームディレクトリに, .pgpassを新規作成します.
今回の検証作業における設定例です.
********は実際のパスワードを設定します.

  • ファイル
    localhost:5432:postgres:postgres:********
    localhost:5432:dbx:dbxadmin::********
    localhost:5432:dbx:dbxowner1::********
    localhost:5432:dbx:dbxowner2::********
    localhost:5432:dbx:dbxuser1::********
    localhost:5432:dbx:dbxuser2::********
    
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?