Re: [GENERAL] Access & pgsql - Mailing list pgsql-general

From David Hartwig
Subject Re: [GENERAL] Access & pgsql
Date
Msg-id 362B56B1.38DA9592@insightdist.com
Whole thread Raw
In response to Access & pgsql  (Juan Carlos Castro y Castro <jcastro@pcshop.com.br>)
List pgsql-general

Juan Carlos Castro y Castro wrote:

> Hi! Let's start with a simple one:
>
> I created tables and fields in a pgsql database with mixed-case names.
> like: Teams, Pilots, Drivers, FullName etc.
> Then I linked a MS-Access database to the pgsql database, thru PsqlODBC
> (latest version).
> All table and field names appear in lowercase in Access. Why?

What you have described has nothing to do with the client side.
PostgreSQL is case in-sensitive unless the identifiers are double quoted.
To make it case in-sensitive, all unquoted identifiers as converted to
lower case.

FYI, if you double quote you may use spaces and other special characters.

Another, FYI, watch out for MS Excel.  If you create a table like:
    CREATE foo (
        "Bar" integer,
        "Bar None" integer
    );
Excel will not quote for the identifier "Bar".   It will, however, quote
"Bar None".   The moral is:   Do not use upper case identifiers with MS
Excel.  Most other ODBC tools (like Access) quote all identifiers. (i.e.
"foo"."Bar")


pgsql-general by date:

Previous
From: Anton de Wet
Date:
Subject: Re: your mail
Next
From: "Jackson, DeJuan"
Date:
Subject: RE: [GENERAL] Postgres speed