X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id F3C634762A2 for ; Thu, 3 Apr 2003 10:02:39 -0500 (EST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 426014761BC for ; Thu, 3 Apr 2003 10:02:39 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h33F2g2L028420; Thu, 3 Apr 2003 10:02:42 -0500 (EST) To: "A.Bhuvaneswaran" Cc: pgsql-admin@postgresql.org Subject: Re: 7.2.3 -> 7.3.2: timeofday(), server crashed In-reply-to: References: Comments: In-reply-to "A.Bhuvaneswaran" message dated "Thu, 03 Apr 2003 17:54:50 +0530" Date: Thu, 03 Apr 2003 10:02:42 -0500 Message-ID: <28419.1049382162@sss.pgh.pa.us> From: Tom Lane X-Spam-Status: No, hits=-32.5 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/36 X-Sequence-Number: 8191 "A.Bhuvaneswaran" writes: > Since in 7.3.2 the default timestamp is without timezone, the below > command fails: > # CREATE TABLE history_log (history_id text, ctime timestamp default > timeofday()); > ERROR: Column "ctime" is of type timestamp without time zone but default > expression is of type text > You will need to rewrite or cast the expression This is unrelated to the change in the with/without time zone default; it happens because we have tightened up the rules for implicit casting. > Further, due to the above reason, while restoring, the server is crashed. > ERROR: parser: parse error at or near "602869" at character 1 > LOG: server process (pid 31373) was terminated by signal 9 This is also unrelated. There is no scenario in which a parse error will lead to signal 9. I would guess that you have one of the versions of Linux in which the kernel will issue kill -9's against randomly-selected user processes anytime it starts feeling low on memory. Buying more RAM or increasing swap space is the best answer AFAIK. regards, tom lane