안녕하세요.
그동안 디비 놓구 있다가..
이렇게 또 방문했습니다. (질문하러.. ^^--)
CREATE TABLE abc (
...
expire date DEFAULT 'infinity',
...
);
이런 식으로 테이블을 생성하려구 하는데요.
메뉴얼을 찾아보고 했어요..
Constant Description
-----------------------------------------------
epoch 1970-01-01 00:00:00+00 (Unix system time zero)
infinity Later than other valid times
-infinity Earlier than other valid times
invalid Illegal entry
now Current transaction time
today Midnight today
tomorrow Midnight tomorrow
yesterday Midnight yesterday
zulu, allballs, z 00:00:00.00 GMT
이렇게 설명이 되어있는데요..
그래서 전 무한정 기한이 필요해서..
"infinity"을 디폴트 값으로 잡았죠. ^^--
그런데.. --;;
이놈이
ERROR: Unrecognized date external representation 'infinity'
이런 에러를 내는 것입니다.
...
하기사.. 메뉴얼은
PostgreSQL 7.2.1 Documentation
Practical PostgreSQL
Progress SQL-92 Guide and Reference
을 보았습니다.
제가 사용하는 것은 리눅스 레드헷 8.0 에서
pgsql 7.3.2를 사용합니다.
그래서 그런지는 몰라두요..
'epoch' 이것은 잘 먹힙니다.
어떻게 하면 될까요.
그리고 날짜만 저장하는 것 이 필요해서 사용한 것인데..
날짜 처리하는데에서..
퍼포먼스 면에서 추천해 주실 것 혹시 있나요..
|