pg_dump quoting bug - Mailing list pgsql-hackers

From Ross J. Reedstrom
Subject pg_dump quoting bug
Date
Msg-id 19990719172015.B30250@wallace.ece.rice.edu
Whole thread Raw
Responses Re: [HACKERS] pg_dump quoting bug
List pgsql-hackers
One last missing quoting bug in pg_dump:
now that sequence names are properly quoted for field defaults, mixed
case sequence names are generated. These are properly quoted in the
CREATE SEQUENCE lines, but not in the SELECT nextval lines, as per below:

CREATE SEQUENCE "Teams_TeamID_seq" start 10 increment 1 maxvalue
2147483647 minvalue 1  cache 1 ;
SELECT nextval ('Teams_TeamID_seq');

This needs to be:
SELECT nextval ('"Teams_TeamID_seq"');

Patch included below.
--
Ross J. Reedstrom, Ph.D., <reedstrm@rice.edu>
NSBRI Research Scientist/Programmer
Computer and Information Technology Institute
Rice University, 6100 S. Main St.,  Houston, TX 77005

Attachment

pgsql-hackers by date:

Previous
From: "Ross J. Reedstrom"
Date:
Subject: VIEW definitions broken in 6.5.0
Next
From: Uncle George
Date:
Subject: RedHat6.0 & Alpha