PostgreSQL実験室/OSユーザー初期設定
- 記事一覧 PostgreSQL実験室
設定ファイル
~/.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::********