Lists: | pgsql-bugs |
---|
From: | pgsql-bugs(at)postgresql(dot)org |
---|---|
To: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Bug #660: View name not stored in lowercase |
Date: | 2002-05-08 03:39:02 |
Message-ID: | 20020508033902.727FE475B6A@postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-bugs |
Jacob (jacobpage(at)hotmail(dot)com) reports a bug with a severity of 2
The lower the number the more severe it is.
Short Description
View name not stored in lowercase
Long Description
Somehow, the PGAccess client created a view in my database with the name "AlbumList". This view cannot be dropped or queried because view names are folded to lowercase when executing SQL statements, so it just sits as an unreferenceable object in the catalog.
Unfortunately, I don't know the commands PGAccess executes to generate this problem, but obviously PostgreSQL lets capital letters escape its attention when adding to the catalog.
P.S. I am new to Postgres but am very impressed with the product. Great job!
Additional Details
------------------
Vacuuming doesn't remove the offending view.
The version of PostgreSQL I'm using is 7.2.1 compiled with GCC 3.1. The server is started with the option -i. My host is an AMD Duron 750 running RedHat Linux 7.1 (kernel version 2.4.18-0).
The error generated when refering to the offending view is "ERROR: Relation "albumlist" does not exist." The commands tried to refer to the view were "DROP VIEW AlbumList;" and "SELECT * FROM AlbumList;"
Sample Code
No file was uploaded with this report
From: | Thomas Lockhart <lockhart(at)fourpalms(dot)org> |
---|---|
To: | jacobpage(at)hotmail(dot)com, pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: Bug #660: View name not stored in lowercase |
Date: | 2002-05-08 03:55:17 |
Message-ID: | 3CD8A1A5.4616940D@fourpalms.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-bugs |
> Unfortunately, I don't know the commands PGAccess executes to generate this problem, but obviously PostgreSQL lets capital letters escape its attention when adding to the catalog.
This doesn't help you much, but fwiw it is likely that pgAccess used
double-quotes when creating the view, but is not double-quoting the name
of the view when issuing the subsequent query.
- Thomas