Re: [GENERAL] More details on Database corruption

From: Guido Piazzi <gpiazzi(at)nemo(dot)it>
To: George Kousi <g(dot)kousi(at)albourne(dot)com>
Cc: "pgsql-general(at)hub(dot)org" <pgsql-general(at)hub(dot)org>
Subject: Re: [GENERAL] More details on Database corruption
Date: 1998-08-14 09:36:57
Message-ID: Pine.LNX.3.96.980814112538.130A-100000@ik2gdx.ampr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

On Thu, 13 Aug 1998, George Kousi wrote:

> CREATE TABLE tasks (
> task INT4 NOT NULL,
> job INT4 NOT NULL,
> Version1 CHAR(6) DEFAULT '',
> Version2 CHAR(6) DEFAULT '',
> Version3 CHAR(6) DEFAULT '',
> Version4 CHAR(6) DEFAULT '',
> Version5 CHAR(6) DEFAULT ''
> );

A zero-length string ('') is not a valid default value for a CHAR(6).
I replaced it with ' ' (six blanks) and all runs fine.

I run 6.3.1 on Linux 2.0.27 and your script fails on the first insert
without corruption problems. I don't know why it only fails on update on
your system.

Regards - guido

------------------------------------------------------------------------
// Guido Carlo Piazzi Accompagnatore naturalistico
// gpiazzi(at)nemo(dot)it Visitate il sito WWW.ParcoDelTicino.Pmn.It
------------------------------------------------------------------------

In response to

Browse pgsql-general by date

  From Date Subject
Next Message James Oden 1998-08-14 11:22:43 Re: [GENERAL] getting the currval of a sequence
Previous Message Wim Ceulemans 1998-08-14 09:36:13 Re: [GENERAL] Unique key with nulls and copying databases across computers

Browse pgsql-hackers by date

  From Date Subject
Next Message Jan Wieck 1998-08-14 10:01:53 Re: non instead rule system
Previous Message Jan Wieck 1998-08-14 09:33:40 Re: [HACKERS] Rule system (trigger names)