【PostgreSQL】【設定】PostgreSQL のポート番号を変更する

手順

 [1] 「【自分のインストールしたパス】\PostgreSQL\9.3\data」配下にある「postgresql.conf」をエディタで開く
 [2] 「port = 【変更したいポート番号】」を修正し、PostgreSQL を再起動する

postgresql.conf

* 「★ここを修正★」の行を修正する
# ・・・略・・・
# - Connection Settings -

listen_addresses = '*'		# what IP address(es) to listen on;
					# comma-separated list of addresses;
					# defaults to 'localhost'; use '*' for all
					# (change requires restart)
port = 5432				# ★ここを修正★(change requires restart)
max_connections = 100			# (change requires restart)
# Note:  Increasing max_connections costs ~400 bytes of shared memory per
# ・・・略・・・