PostgreSQL
データ概要とやりたいこと 以下のようなテーブルがある id time(timestamp型) text ----------------- 2012-11-16 16:41:09+09 @minya2sen それじゃあ、適当な時間に呼んでおくれ (((o(*゚▽゚*)o))) ----------------- 2012-11-16 17:05:03+09 ★プロのパーソナ…
Psycopg2を使っていて、multiprocessingでデータベースに接続してデータを入れる処理を書こうとしていたんだが、↓のエラーで躓いた。 could not connect to server: Connection refused Is the server running on host "localhost" and accepting TCP/IP con…
Python2.7でpgdbライブラリ使ってPostgres9.1.3に時刻データ(timestamp with time zone)保存するときにハマったので、その備忘録。 旧データベース定義 datetime kind num comment trend timestamp without time zone text int text int SQLはこんな感じ↓ CR…
UbuntuにPostgreSQL9.1をインストールしてみた。 #apt-get install postgresqlインストールする際にユーザー(postgres)も作成されたようなので、パスワードを設定する #passwd postgresデータ保存場所を作成 #mkdir /home/postgres/datum #chown postgres:po…