Parser bug (?)

From: "Oliver Elphick" <olly(at)lfix(dot)co(dot)uk>
To: "Thomas G(dot) Lockhart" <lockhart(at)alumni(dot)caltech(dot)edu>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Parser bug (?)
Date: 1998-12-05 19:57:15
Message-ID: 199812051957.TAA23366@linda.lfix.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Tom,

This looks like a parser bug in 6.4. I found it while trying to run
pg_upgrade:

bray=> create table junk ("singleton" "char");
CREATE
bray=> drop table junk;
DROP
bray=> create table junk ("singleton" "char" default 'M');
ERROR: DEFAULT: const type mismatched
bray=> create table junk ("singleton" char default 'M');
CREATE

pg_dump puts all type names in double quotes, which triggers this bug
when pg_upgrade is run, with the result that the upgrade fails.

[Machine is i686 Linux 2.1.125 with glibc 2.0.7u]

--
Oliver Elphick Oliver(dot)Elphick(at)lfix(dot)co(dot)uk
Isle of Wight http://www.lfix.co.uk/oliver
PGP key from public servers; key ID 32B8FAA1
========================================
"Go ye therefore, and teach all nations, baptizing them
in the name of the Father, and of the Son, and of the
Holy Ghost; Teaching them to observe all things
whatsoever I have commanded you; and, lo, I am with
you alway, even unto the end of the world. Amen."
Matthew 28:19,20

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 1998-12-05 22:29:59 Re: [HACKERS] Patch for pg_dump (6.4) inheritance bug
Previous Message Constantin Teodorescu 1998-12-05 18:44:19 Re: [HACKERS] pg_dump - segfault with -z option