Thread: PsqlODBC and Qualified Table Names

PsqlODBC and Qualified Table Names

From
Neil Darlow
Date:
Hi,

I am using PsqlODBC (as part of unixODBC) with StarOffice 5.1 Pro
to manage PostgreSQL 6.4.2 databases and tables.

I can create and delete databases without difficulty but am having
trouble creating tables with StarOffice.

I have determined that the cause of the problem is that StarOffice
generates SQL to create a table in the following format:
 create databasename."TABLENAME" ( fieldname fieldtype, ... )

PostgreSQL appears to have difficulty with databasename."TABLENAME"
and will either not generate a table or generates a table with an
uppercase name that is reported as existing by \dt in psql. However,
any attempt to select from this table with SQL results in an error
message to the effect that the table doesn't exist.

Is this a known problem with PsqlODBC, or perhaps PostgreSQL itself,
and is there a work-around?

Regards,
Neil Darlow.