2009-08-17から1日間の記事一覧

PostgreSQL 8.3 の date_trunc を含む CREATE INDEX

今まで(<=7.4)大丈夫だったのに、8.3 になったら CREATE INDEX 時に "timestamp with time zone" なフィールドに対して、date_trunc 関数などを使うと、以下のエラーが発生してしまう。 ERROR: functions in index expression must be marked IMMUTABLEhttp:…