Re: [HACKERS] pg_dump bugu

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: jose soares <jose(at)sferacarta(dot)com>
Cc: hackers <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: [HACKERS] pg_dump bugu
Date: 1999-11-19 12:35:14
Message-ID: 199911191235.HAA09653@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

[Charset iso-8859-1 unsupported, filtering to ASCII...]
> Hi,
>
> I think I found a bug in pg_dump:
> I created a table like:
>
> CREATE TABLE ut (
> Azienda CHAR(16) NOT NULL,
> ragione_sociale VARCHAR(45) NOT NULL,
> indirizzo CHAR(40),
> inizio_attivita DATE DEFAULT CURRENT_DATE,
> fine_attivita DATE
> );
>
> and pg_dump modify the structure table as:
>
> \connect - postgres
> CREATE TABLE "ut" (
> "azienda" character(16) NOT NULL,
> "ragione_sociale" character varying(45) NOT NULL,
> "indirizzo" character(40),
> "inizio_attivita" date DEFAULT date( 'current'::datetime + '0
> sec') NOT NULL,
> "fine_attivita" date);
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Strange, but the query looks fine, and creates fine here in the current
sources. We had a quoting bug in defaults at some point. What version
are you using?

--
Bruce Momjian | http://www.op.net/~candle
maillist(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 1999-11-19 12:36:30 Re: [HACKERS] Getting OID in psql of recent insert
Previous Message Oleg Bartunov 1999-11-19 12:30:14 Re: [HACKERS] pg_dump bug