!!!システム管理関数 - set_config(setting_name, new_value, is_local) *投稿者: みゅ *カテゴリ: PostgreSQL *優先度: 普通 *状態: 完了 *日時: 2010年06月02日 12時59分52秒 //{{bugstate}} !!内容 *管理人用メモ *http://www.postgresql.jp/document/8.0/html/functions-admin.html *http://www.postgresql.jp/document/8.0/html/runtime-config.html !!クライアントの文字コードを設定する postgres=# \encoding EUC_JP postgres=# \encoding utf-8 postgres=# \encoding UTF8 postgres=# \encoding UNICODE postgres=# \encoding UTF8 postgres=# \encoding EUC_JP postgres=# \encoding EUC_JP postgres=# \encoding EUC_JP postgres=# SELECT current_setting('client_encoding'); current_setting ----------------- EUC_JP (1 row) postgres=# SELECT set_config('client_encoding', 'UNICODE', false); !!コメント //{{comment}}