pg_dump does not handle default dates correctly

From: "Bryan White" <bryan(at)arcamax(dot)com>
To: <pgsql-general(at)postgreSQL(dot)org>
Subject: pg_dump does not handle default dates correctly
Date: 1999-08-11 19:45:26
Message-ID: 003201bee432$0f925aa0$22d260d1@arcamax.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

If I use pg_dump to backup a database table (or just its schema) and the
table contains a date field defaulted to the current date then the resulting
table create statement is invalid.

These shell commands demonstarte the problem:
createdb db1
createdb db2
psql -c'create table t (d date default current_date)' db1
pg_dump -s db1 | psql db2

psql reports ERROR: parser: parse error at or near "'"

This is using Postgres 6.5.0

Bryan White

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bryan White 1999-08-11 20:01:09 Re: [GENERAL] pg_dump does not handle default dates correctly
Previous Message Héctor Morales 1999-08-11 19:24:15 Problem with compiled C