X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 476C4D1BB93 for ; Mon, 15 Dec 2003 15:34:04 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 60642-06 for ; Mon, 15 Dec 2003 11:33:40 -0400 (AST) Received: from astra.telenet-ops.be (astra.telenet-ops.be [195.130.132.58]) by svr1.postgresql.org (Postfix) with ESMTP id D78D5D1BB7B for ; Mon, 15 Dec 2003 11:33:20 -0400 (AST) Received: from localhost (localhost.localdomain [127.0.0.1]) by astra.telenet-ops.be (Postfix) with SMTP id AB96537EED for ; Mon, 15 Dec 2003 16:33:19 +0100 (MET) Received: from fransNew.atbib.be (D577CB83.kabel.telenet.be [213.119.203.131]) by astra.telenet-ops.be (Postfix) with ESMTP id 7C8C037F25 for ; Mon, 15 Dec 2003 16:33:19 +0100 (MET) Message-Id: <5.2.1.1.0.20031215163225.02a4c5b8@mail.atbib.be> X-Sender: fve@mail.atbib.be X-Mailer: QUALCOMM Windows Eudora Version 5.2.1 Date: Mon, 15 Dec 2003 16:33:21 +0100 To: pgsql-sql@postgresql.org From: van Elsacker Frans Subject: dump and schema Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/104 X-Sequence-Number: 16270 I have a problem with date default and schema's and don't know wether I am doing something wrong or not. All my tables (more than 100) have a field datumi of type date default today, as this example: CREATE TABLE tabel ( .... datumi date DEFAULT 'today', .... ); taking a dump or a schema of this table via pg_dump and restoring or using it went fine Now I am using postgres 7.4 and making a schema (and also the table in a dump gave this result) CREATE TABLE tabel( .... datumi date DEFAULT '2003-12-10'::date, .... ); which is not expected for a schema. Even worse by restoring a dump, all my new records have this fixed date in the field datumi. Something has changed? I do it in the wrong way? Is there a solution ? many thanks