Skip to content

Instantly share code, notes, and snippets.

@kizashi1122
Created October 20, 2015 05:45
Show Gist options
  • Save kizashi1122/29c895fa3b300b865edb to your computer and use it in GitHub Desktop.
Save kizashi1122/29c895fa3b300b865edb to your computer and use it in GitHub Desktop.
psql のプロンプトでタイムスタンプを表示するには ref: http://qiita.com/kizashi1122/items/f40ef45fe361de8e3f98
\set PROMPT1 '%[%033[1m%]%M %n@%/ %`date`\n%R%x%#%[%033[0m%] '
\set PROMPT2 '%R%x%# '
\pset border 1
\pset format wrapped
\pset linestyle unicode
\pset null <NULL>
\x auto
\set COMP_KEYWORD_CASE upper
[~]$ psql
境界線のスタイルは 1 です。
出力フォーマットは wrapped です。
境界線のスタイルは unicode です。
Null 表示は "<NULL>" です。
拡張表示が自動的に使用されます
psql (9.3.9)
"help" でヘルプを表示します.
[local] vagrant@vagrant 2015年 10月 20日 火曜日 14:26:56 JST
=#
[local] vagrant@vagrant 2015年 10月 20日 火曜日 14:26:56 JST
=#
[local] vagrant@vagrant 2015年 10月 20日 火曜日 14:26:57 JST
=#
[local] vagrant@vagrant 2015年 10月 20日 火曜日 14:26:58 JST
=#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment