なんかORACLEが不穏な動きに出ており、
MySQLの先が見えづらくなってきたので
PostgreSQLに手を出してみる(;´Д`)
OpenSSLのライブラリが/usr/local/ssl/libであることが前提。
prefixは/usr/local/pgsql ./configure --with-includes=/usr/local/ssl/include \ --with-libs=/usr/local/ssl/lib \ --with-pam \ --with-openssl \ --with-libxml \ --with-libxslt \ --enable-nls=ja make make install 専用ユーザの作成。 ホームディレクトリを先のvarディレクトリにする。 groupadd postgres useradd -g postgres -d /usr/local/pgsql/var -s /bin/bash postgres passwd postgres ソケットは規定値で/tmpに作られるが、 インストールディレクトリ以下にruntimeディレクトリを作っておき そちらにソケットを作るようにする。 mkdir -p /usr/local/pgsql/var/run chown -R postgres.postgres /usr/local/pgsql/var
データベースクラスタと称する。
su postgres /usr/local/pgsql/bin/pg_ctl -D /usr/local/pgsql/data initdb