pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feed7.2.3 -> 7.3.2: timeofday(), server crashed
4+ messages / 3 participants
[nested] [flat]
* 7.2.3 -> 7.3.2: timeofday(), server crashed
@ 2003-04-03 12:24 A.Bhuvaneswaran <bhuvansql@myrealbox.com>
0 siblings, 1 reply; 4+ messages in thread
From: A.Bhuvaneswaran @ 2003-04-03 12:24 UTC (permalink / raw)
To: pgsql-admin
Hi,
In the first place, do we have any document which list the points to be
considered while upgrading to 7.3.2, other than HISTORY and
http://www.ca.postgresql.org/docs/momjian/upgrade_tips_7.3 ?
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
rather, i must try
# CREATE TABLE history_log (history_id text, ctime timestamp default
timeofday()::timestamp);
This is fine.
Further, due to the above reason, while restoring, the server is crashed.
FYI, i have included the server log.
<serverlog>
ERROR: Relation "history_log" does not exist
ERROR: parser: parse error at or near "INSERT_FROM_DBLINK_VIEW" at
character 1
LOG: recycled transaction log file 0000000000000012
LOG: recycled transaction log file 0000000000000013
LOG: recycled transaction log file 0000000000000014
LOG: recycled transaction log file 0000000000000015
LOG: recycled transaction log file 0000000000000016
ERROR: parser: parse error at or near "602869" at character 1
LOG: server process (pid 31373) was terminated by signal 9
LOG: terminating any other active server processes
LOG: statistics collector process (pid 31329) was terminated by signal 9
WARNING: Message from PostgreSQL backend:
The Postmaster has informed me that some other backend
died abnormally and possibly corrupted shared memory.
I have rolled back the current transaction and am
going to terminate your database system connection and exit.
Please reconnect to the database system and repeat your query.
LOG: database system was interrupted at 2003-04-03 16:20:17 IST
</serverlog>
regards,
bhuvaneswaran
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: 7.2.3 -> 7.3.2: timeofday(), server crashed
@ 2003-04-03 15:02 Tom Lane <tgl@sss.pgh.pa.us>
parent: A.Bhuvaneswaran <bhuvansql@myrealbox.com>
0 siblings, 1 reply; 4+ messages in thread
From: Tom Lane @ 2003-04-03 15:02 UTC (permalink / raw)
To: A.Bhuvaneswaran <bhuvansql@myrealbox.com>; +Cc: pgsql-admin
"A.Bhuvaneswaran" <bhuvansql@myrealbox.com> 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
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: 7.2.3 -> 7.3.2: timeofday(), server crashed
@ 2003-04-03 18:13 Will LaShell <will@lashell.net>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 4+ messages in thread
From: Will LaShell @ 2003-04-03 18:13 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: A.Bhuvaneswaran <bhuvansql@myrealbox.com>; pgsql-admin
<snip>
> > 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
As a side note it will show up in /var/log/messages if the kernel is
doing the killing like Tom suggested.
Sincerely,
Will LaShell
Attachments:
signature.asc (application/pgp-signature, 188B) download
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: 7.2.3 -> 7.3.2: timeofday(), server crashed
@ 2003-04-04 05:05 A.Bhuvaneswaran <bhuvansql@myrealbox.com>
parent: Will LaShell <will@lashell.net>
0 siblings, 0 replies; 4+ messages in thread
From: A.Bhuvaneswaran @ 2003-04-04 05:05 UTC (permalink / raw)
To: pgsql-admin
> As a side note it will show up in /var/log/messages if the kernel is
> doing the killing like Tom suggested.
Yes, /var/log/messages stated that it was killed due to out of memory.
Thank you.
regards,
bhuvaneswaran
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2003-04-04 05:05 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-04-03 12:24 7.2.3 -> 7.3.2: timeofday(), server crashed A.Bhuvaneswaran <bhuvansql@myrealbox.com>
2003-04-03 15:02 ` Tom Lane <tgl@sss.pgh.pa.us>
2003-04-03 18:13 ` Will LaShell <will@lashell.net>
2003-04-04 05:05 ` A.Bhuvaneswaran <bhuvansql@myrealbox.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox