2015-09-03から1日間の記事一覧

postgresのチートシート

ロングトランザクションの確認 SELECT procpid, waiting, (current_timestamp - xact_start)::interval(3) AS duration, current_query FROM pg_stat_activity WHERE procpid <> pg_backend_pid() AND (current_timestamp - xact_start)::interval(3) >= '3 …

AWSのインスタンスを作る際のおまじない

AWSのインスタンスを作る際のおまじない User data timezoneとlocaleを日本にする #cloud-config timezone: Asia/Tokyo locale: ja_JP.UTF-8