Re: BUG #5286: pgAdmin will put table and field names in apostrophes which then must be used for accessing them - Mailing list pgsql-bugs

From Alvaro Herrera
Subject Re: BUG #5286: pgAdmin will put table and field names in apostrophes which then must be used for accessing them
Date
Msg-id 20100118203820.GD3617@alvh.no-ip.org
Whole thread Raw
In response to BUG #5286: pgAdmin will put table and field names in apostrophes which then must be used for accessing them  ("G.Schaeffler" <scgn@sie.at>)
List pgsql-bugs
G.Schaeffler wrote:

> if i create a table by using the pgadmin gui, it will create statements
> like
> CREATE TABLE "t_test" (
> id integer,
> "val" character varying(1000) NOT NULL );
> after creation, i can only access the table again if i wrap the apostrophes
> around the table and field names as in the create table statement.

Does your table name have uppercase chars?  If it has, that's probably
the reason the name doesn't work unless quoted.  This is expected
behavior for identifiers.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

pgsql-bugs by date:

Previous
From: Robert Haas
Date:
Subject: Re: BUG #5284: Postgres CPU 100% and worker took too long to start; cancelled... Systemdown
Next
From: "Brian Carp"
Date:
Subject: BUG #5287: ispell dict erroneously returns lexeme on all prefix+suffix cross products